You can automatically forward all error report entries to your email. This next part describes how to do that.
Create a file like this:
Add this to the ODM:# cat /tmp/mailgeorge errnotify: en_name="mailgeorge" en_persistenceflg=1 en_method="errpt -a -l $1|mail -s \"errpt: $9\" george@email.com"
# odmadd /tmp/mailgeorgeNow log an entry in the error report:
# errlogger "My coffee is cold"You will see in the error report:
Clear the error log again (because we logged a fake test-entry in the error report):# errpt -a ---------------------------------------------------- LABEL: OPMSG IDENTIFIER: AA8AB241 Date/Time: Tue Oct 6 15:57:58 CDT 2009 Sequence Number: 585 Machine Id: 0004D6EC4C00 Node Id: hostname Class: O Type: TEMP Resource Name: OPERATOR Description OPERATOR NOTIFICATION User Causes ERRLOGGER COMMAND Recommended Actions REVIEW DETAILED DATA Detail Data MESSAGE FROM ERRLOGGER COMMAND My coffee is cold
# errclear 0Watch your email. You should receive the same error report entry in your email.
By the way, you can delete this from the ODM like this:
# odmdelete -q 'en_name=mailgeorge' -o errnotify
If you found this useful, here's more on the same topic(s) in our blog:
- Proper vmstat output
- Processor speed and more system information
- RAC OCR and VOTE LUNs
- Change the PuTTY title
- Too many open files
UNIX Health Check delivers software to scan Linux and AIX systems for potential issues. Run our software on your system, and receive a report in just a few minutes. UNIX Health Check is an automated check list. It will report on perfomance, capacity, stability and security issues. It will alert on configurations that can be improved per best practices, or items that should be improved per audit guidelines. A report will be generated in the format you wish, and the report includes the issues discovered and information on how to solve the issues as well.
Interested in learning more?
Interested in learning more?