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
|