nv-l

Re: [nv-l] printf in addtrap

2004-12-03 09:24:49
Subject: Re: [nv-l] printf in addtrap
From: James Shanks <jshanks AT us.ibm DOT com>
To: nv-l AT lists.us.ibm DOT com
Date: Fri, 3 Dec 2004 09:24:10 -0500
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 AT opensolutions DOT es> 
Sent by: owner-nv-l AT lists.us.ibm DOT com
12/03/2004 04:33 AM
Please respond to
nv-l


To

nv-l AT lists.us.ibm DOT 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 AT opensolutions DOT es
Tfno.914160562



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