×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How to put customized error report on errpt ?

How to put customized error report on errpt ?

How to put customized error report on errpt ?

(OP)
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

RE: How to put customized error report on errpt ?

Hi,

Was exactly is your question? You seem to have done what you want to do already?

Thanks

-----
Cheers,
Henrik Morsing
http://www.aixperts.co.uk/
http://www.seaholme.co.uk/
Join us on irc://chat.freenode.net channel ##aix

RE: How to put customized error report on errpt ?

Maybe the "errmsg" command can help you ?!

Try "man errmsg" ...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close