Sponsored Content
Operating Systems AIX How to put customized error report on errpt ? Post 302885027 by linux.amrit on Thursday 23rd of January 2014 06:40:19 AM
Old 01-23-2014
How to put customized error report on errpt ?

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 ...
Code:
#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 ....
Code:
#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

Last edited by Franklin52; 01-23-2014 at 07:47 AM.. Reason: Please use code tags
 

10 More Discussions You Might Find Interesting

1. AIX

AIX 5.3 errpt full of message: DISK OPERATION ERROR

Hi All, Can anyone explain me the meanning of the following errors: LABEL: SC_DISK_ERR2 IDENTIFIER: B6267342 Description DISK OPERATION ERROR Probable Causes DASD DEVICE Failure Causes DISK DRIVE DISK DRIVE ELECTRONICS Recommended Actions PERFORM PROBLEM DETERMINATION... (1 Reply)
Discussion started by: gianlu
1 Replies

2. Shell Programming and Scripting

Customized copy.

HI guys, I'm working on a code with the following specs: 1. Retrieving files with a particular extensions from a location specified by the users. 2. Copying those files to user specified location i) but i need to pause copy if the network is busy ii) and the copy process must... (3 Replies)
Discussion started by: bill88
3 Replies

3. AIX

errpt - TTYHOG error

I am getting this temporary error on my errpt: IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION 0873CF9F 0623104510 T S pts/0 TTYHOG OVER-RUN LABEL: TTY_TTYHOG IDENTIFIER: 0873CF9F Date/Time: Tue Jun 22 02:00:53 GMT+08:00 2010 Sequence Number: 76... (3 Replies)
Discussion started by: famasutika
3 Replies

4. Shell Programming and Scripting

Can nmon be customized?

Hi, my name is Steve Ngai from Malaysia. This is my first post. Hope to learn more about Unix from this forum. My first question is can nmon be customized? When I run nmon, I need to manually type c to see CPU usage, then m for memory usage. Can I pass it some nmon option to automatically see... (2 Replies)
Discussion started by: ngaisteve1
2 Replies

5. Forum Support Area for Unregistered Users & Account Problems

customized username?

Hi i have registered but my username is set to default value ( my email). can i change this ? (2 Replies)
Discussion started by: customizeemai
2 Replies

6. AIX

I am getting the following error when I do an errpt. What do I need to do to fix it.

Hi Team, I am getting the following error when I do an errpt. What do I need to do to fix it. LABEL: LVM_SA_STALEPP IDENTIFIER: EAA3D429 Date/Time: Sat 12 Jan 01:10:56 2013 Sequence Number: 880 Machine Id: 00C57B904C00 Node Id: spg-lplaw-01... (1 Reply)
Discussion started by: ranjithm
1 Replies

7. Shell Programming and Scripting

./CARE_SM_SFTP.sh[27]: put: not found error while doing sftp

Hi, I am getting the below error while doing sftp in a script file but the same is getting executed when i run from command prompt ./CARE_SM2_SFTP.sh: put: not found Code :- sftp ${USER_ID}@${FTPHOST4}:/opt/path put <Filename with path> chmod 777 <FileName with Path>... (2 Replies)
Discussion started by: satishmallidi
2 Replies

8. Shell Programming and Scripting

Need to develop a bash script to create customized report from the server log

Hi, I need to develop a bash script to create customized report from the server log (red hat 5.8 64 bit Operating system). The following is one of the log for our internal application task. <2015.03.03 20:09:52 274 +0800><I><DSCTH01><http-0.0.0.0-443-2><security> GUI request succeeded for... (1 Reply)
Discussion started by: pugazhendhi_r
1 Replies

9. Shell Programming and Scripting

Customized command excution

Hi, The below commands will be inside a KSH script and SOLARIS machine. Command-1 //Executes in 10s,5s,..5mins,etc TIMER = Look for Command-1 execution status - IF finished in 25secs move to next command in the script IF NOT kill above command and move to next command. Command-2 Any... (9 Replies)
Discussion started by: penqueen
9 Replies

10. Shell Programming and Scripting

Customized text searches by using grep

I tried to ease text searches so made a customized grep: g () { if then i= for s in $2 do i="$i --include=*.$s" done else i='--include=*.txt --include=*.ini --include=*.*sh --include=*.c* --include=*.h --include=*.js --include=*.reg' fi grep -P -e \'$1\' -r "$i" } but I... (3 Replies)
Discussion started by: abdulbadii
3 Replies
DROP 
OPERATOR(7) PostgreSQL 9.2.7 Documentation DROP OPERATOR(7) NAME
DROP_OPERATOR - remove an operator SYNOPSIS
DROP OPERATOR [ IF EXISTS ] name ( { left_type | NONE } , { right_type | NONE } ) [ CASCADE | RESTRICT ] DESCRIPTION
DROP OPERATOR drops an existing operator from the database system. To execute this command you must be the owner of the operator. PARAMETERS
IF EXISTS Do not throw an error if the operator does not exist. A notice is issued in this case. name The name (optionally schema-qualified) of an existing operator. left_type The data type of the operator's left operand; write NONE if the operator has no left operand. right_type The data type of the operator's right operand; write NONE if the operator has no right operand. CASCADE Automatically drop objects that depend on the operator. RESTRICT Refuse to drop the operator if any objects depend on it. This is the default. EXAMPLES
Remove the power operator a^b for type integer: DROP OPERATOR ^ (integer, integer); Remove the left unary bitwise complement operator ~b for type bit: DROP OPERATOR ~ (none, bit); Remove the right unary factorial operator x! for type bigint: DROP OPERATOR ! (bigint, none); COMPATIBILITY
There is no DROP OPERATOR statement in the SQL standard. SEE ALSO
CREATE OPERATOR (CREATE_OPERATOR(7)), ALTER OPERATOR (ALTER_OPERATOR(7)) PostgreSQL 9.2.7 2014-02-17 DROP OPERATOR(7)
All times are GMT -4. The time now is 09:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy