![]()
Scripts for Automating System ChecksDecember, 2007 This article provides three scripts that automate the process of checking system logs for messages, checking for available patches, and checking predictive disk failure. Community-Submitted Tech Tip How to Leave Comments or Tag Pages1. Register. |
|
Comments (2)
Dec 14, 2007
phips says:
You could do the check in only two commands, instead of a couple of greps and da...You could do the check in only two commands, instead of a couple of greps and date piped through cut...
egrep "^`date '+%b %d'`.*(emerg|alert|crit|error|warning)" /var/adm/messages
Dec 14, 2007
victorfeng1 says:
I had thought about using date so that it may be a little faster, but the script...I had thought about using date so that it may be a little faster, but the script is run once a day during evening. Piping is my original logic.
Thanks for your suggestion!
Victor Feng