Bulk testing syslog

Or use the script below to that a whole bunch of machines to make sure remote sysloging is working.

# Written By: BAB
#Purpose: to make sure syslog is working properly

echo “starting to test syslog”

for server in `cat /opt/scripts/machine list` # file with only one machine per a line resoveable via DNS

ssh root@$server logger -p local3.alert “Hello World”
echo “done testing syslog”

So if you don’t see the machine’s name in your syslog file then there is something wrong.