Scripts for Automating System Checks

Scripts for Automating System Checks

December, 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.

Read Full Document

Community-Submitted Tech Tip


How to Leave Comments or Tag Pages

1. Register.
2. Log in. Use the link at top right, just below the Search box.
3. To leave comments on this page, select "Add Comment" on the lower left hand corner of this page. Additional instructions here.
4. To tag pages using labels, read these instructions.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. 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

    1. 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

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact