Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

When using errlogger cmd can you change the resource_name?

Status
Not open for further replies.

theramster

Technical User
Aug 18, 2003
45
GB
Hi,

Is there a way of changing the resource name when using the errlogger command?
 
Hi theramster
By using errlogger command and with the following syntax
only resource name for operated will be created...
eg; #errlogger <message>
The effect of this can be seen in the output of errpt command
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
AA8AB241 0826221403 T O OPERATOR OPERATOR NOTIFICATION

sushveer
IBM certified specialist-p-series AIX5L System Administration
AIX/SOLARIS/WEBSPHERE-MQ/TIVOLI Administrator
 
Thanks for that.

What I was trying to do is use errnotify to flag an event e.g. file system 90% full. The problem is I don't know how the errnotify will check for an event called e.g. FS_FULL90.

I would then get another script to send a message via e-mail.

Any help in this area would be a help.
 
Hi theramster

I got u...Please wait till evening...I will provide some input...As I am in office and bz with work...
I will post later...

sushveer
IBM certified specialist-p-series AIX5L System Administration
AIX/SOLARIS/WEBSPHERE-MQ/TIVOLI Administrator
 
Hi sushveer,

I wait with baited breath for your reply.

Cheers
 
Hi theramster...

The error notification object class specifies the conditions and actions to be taken when errors are recorded in the system error log.
The error notification object class resides in the path of:
/etc/objrepos/errnotify. But errnotify file is not a human readable file.Here is my step step approach...
step 1:creating a file /tmp/en_fsFull90.txt
with the follwing entries:

errnotify:
en_name = &quot;fsFull90
en_alertflg = &quot;TRUE&quot;
en_class = &quot;S&quot;
en_type = &quot;INFO&quot;
en_label = &quot;fs_full90&quot;
en_method = &quot;errpt -a -l $9 | mail -s 'file system 90%full' root@hostname

step 2:Adding the object to the error notification class
#odmadd /tmp/en_fsFull90.txt

Note: Also you can code en_method as follows
en_method = &quot;/usr/local/sbin/your_script_name $1&quot;
eg;en_method = &quot;/usr/local/sbin/fsFull90 $1

sushveer
IBM certified specialist-p-series AIX5L System Administration
AIX/SOLARIS/WEBSPHERE-MQ/TIVOLI Administrator
 
Hi Sushveer,

The information you have given me is exactly what I was looking for.

Another questions which I hope you can help me with is :

How / what command do I need to run to get an entry into the system error log witha name of fsfull90?

As I will have an entry in the crontab to check every <n> mins and when it finds a FS 90% full then issue command to log an entry into the system error log. Then from here the errnotfy will e-mail notification.

Thanks again for your assistance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top