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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to put customized error report on errpt ?

Status
Not open for further replies.

amritjsr

IS-IT--Management
Mar 4, 2008
12
JP
Hi Gurus,

Here is a requirement from my side, i have a script root password expiary, means this script will examine if root password has been expired or not,
if it's expired then it will write into a file and mail to certain mail id till here everything is fine. But i want it to write to errpt,
I can put errpt through errlogger .. as below ...
#errlogger "Root Password Expired"

#errpt | head
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
AA8AB241 0123113914 T O OPERATOR OPERATOR NOTIFICATION
369D049B 0123113114 I O SYSPFS UNABLE TO ALLOCATE SPACE IN FILE SYSTEM

#errpt -aj AA8AB241 | head -25
---------------------------------------------------------------------------
LABEL: OPMSG
IDENTIFIER: AA8AB241

Date/Time: Thu Jan 23 11:39:53 2014
Sequence Number: 314118
Machine Id: 003F576C4C00
Node Id: db2testlpar
Class: O
Type: TEMP
WPAR: Global
Resource Name: OPERATOR

Description
OPERATOR NOTIFICATION

User Causes
ERRLOGGER COMMAND

Recommended Actions
REVIEW DETAILED DATA

Detail Data
MESSAGE FROM ERRLOGGER COMMAND
Root Password Expired

But i want message as below ....

#errpt | head
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
AA8AB241 0123113914 T O OPERATOR Root Password Expired ( earlier it was OPERATOR NOTIFICATION )

Thanks in advance,
Amrit
 
Maybe the "errmsg" command can help you ?!

Try "man errmsg" ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top