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