SHOW_ALL_LOGS.sh 1.41 KB
nblinestoshow=50
path=config/logs/
day=`date +%Y%m%d`

echo
echo
echo
echo
echo
echo
echo
echo
echo
echo
echo


echo
echo
echo "*****************************************************************************************************************************"
echo
echo
file=$path/pyros2_last.log
echo "CHRONO LAST LOG ($file):"
nblines=`wc -l $file`
echo "Nb lines = $nblines"
echo
cat $file

echo
echo
echo "*****************************************************************************************************************************"
echo
echo
file=$path/pyros2_$day.log
echo "CHRONO FULL LOG ($file):"
tail -n $nblinestoshow $file


agent=AgentDeviceGemini
path=$path/$agent/
echo
echo
echo "*****************************************************************************************************************************"
echo
echo
file=$path/${agent}_last.log
echo "$agent LAST LOG ($file):"
nblines=`wc -l $file`
echo "Nb lines = $nblines"
echo
cat $file

echo
echo
echo "*****************************************************************************************************************************"
echo
echo
file=$path/${agent}_$day.log
echo "$agent FULL LOG ($file):"
tail -n $nblinestoshow $file


echo
echo
echo "*****************************************************************************************************************************"
echo
echo
path=config/logs/
file=$path/pyros_warn.log
echo "WARNING/ERRORS LOG ($file):"
echo
cat $file