nv-l
[Top] [All Lists]

Re: [nv-l] printf in addtrap

To: nv-l@lists.us.ibm.com
Subject: Re: [nv-l] printf in addtrap
From: James Shanks <jshanks@us.ibm.com>
Date: Fri, 3 Dec 2004 09:24:10 -0500
Delivery-date: Fri, 03 Dec 2004 14:24:49 +0000
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com
Sensitivity:
Well, this works fine for me, so I am not sure what to tell you.
But I customized my trap directly, with xnmtrap, rather than addtrap. 
Perhaps the addtrap was incorrectly coded?

I added a new slot on the NetView NodeUp event called "printf" rather than 
modify the msg, so that it would easier to delete later
It looks like this in the trapd.conf file when you browse it:
        printf PRINTF("aot%s",$V2)

The result is 
        printf="aot<hostname>", 
among the normal NodeUp fields.

What exactly does you trapd.conf entry for this trap look like?

James Shanks
Level 3 Support  for Tivoli NetView for UNIX and Windows
Tivoli Software / IBM Software Group



Paqui Martinez Moreno/OPENSOLUTIONS <Paqui.Martinez@opensolutions.es> 
Sent by: owner-nv-l@lists.us.ibm.com
12/03/2004 04:33 AM
Please respond to
nv-l


To

nv-l@lists.us.ibm.com
cc





Subject
[nv-l] printf in addtrap






 
Hi All:
Netview 7.1.4 FixPack1 
AIX 5.2
I'd like to insert a custom string  to TEC slot.
I use :
-V 'PRINTF( "aot %s.", $V2)' But in the tec console the text appears  the 
same text :
 
 
'PRINTF( "aot %s.", $V2)' . I'd like appears "aothostname".
 
Thanks.
 
 
Paqui Martinez Moreno
E-mail: paqui.martinez@opensolutions.es
Tfno.914160562



<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web