From: Patrick B. O'Brien (pobrien@DOIT.NV.GOV)
Date: Fri Mar 19 2004 - 14:47:15 EST
Here is mine. I can test this by creating permanent error. It appears to me, you're missing a few values in your errnotify entry?
errnotify:
en_pid = 0
en_name = "perm"
en_persistenceflg = 1
en_label = ""
en_crcid = 0
en_class = "H"
en_type = "PERM"
en_alertflg = ""
en_resource = ""
en_rtype = ""
en_rclass = ""
en_symptom = ""
en_method = "errpt -a -l $1 > /var/adm/ras/errlog.out"
-----Original Message-----
From: Bill Zhang [mailto:aicc_us@YAHOO.COM]
Sent: Friday, March 19, 2004 11:27 AM
To: aix-l@Princeton.EDU
Subject: how to verify error log direction to syslog
Dear all,
I need to direct error log messages to syslog.
AIX 4.3.3.10
this is what I did:
1. created file /tmp/syslog.add with the following
contents
errnotify:
en_name = "syslog1"
en_persistenceflg = 1
en_method = "logger Msg from Error Log:
`errpt -l $1 | grep -v 'ERROR_ID TIMESTAMP'`"
2. odmadd /tmp/syslog.add
3. odmget -q"en_name = 'syslog1'" errnotify
4. errlogger test message from error log
Are these all I need to do? if yes, how to verify the
test message has gone to syslog?
Thanks a lot!
Bill
__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:43 EDT