nv-l

Re: Re: [nv-l] printf in addtrap

2004-12-14 07:57:32
Subject: Re: Re: [nv-l] printf in addtrap
From: Paqui Martinez Moreno/OPENSOLUTIONS <Paqui.Martinez AT opensolutions DOT es>
To: nv-l AT lists.us.ibm DOT com
Date: Tue, 14 Dec 2004 13:58:13 +0100
Thanks James for you help.
 
Now , it works fine .
Paqui Martinez Moreno
E-mail: paqui.martinez AT opensolutions DOT es
Tfno.914160562

-----owner-nv-l AT lists.us.ibm DOT com escribió: -----

Para: nv-l AT lists.us.ibm DOT com
De: James Shanks <jshanks AT us.ibm DOT com>
Enviado por: owner-nv-l AT lists.us.ibm DOT com
Fecha: 03/12/2004 15:24
Asunto: Re: [nv-l] printf in addtrap

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",
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
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>