nv-l
[Top] [All Lists]

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

To: nv-l@lists.us.ibm.com
Subject: Re: Re: [nv-l] printf in addtrap
From: Paqui Martinez Moreno/OPENSOLUTIONS <Paqui.Martinez@opensolutions.es>
Date: Tue, 14 Dec 2004 13:58:13 +0100
Delivery-date: Tue, 14 Dec 2004 12:57:32 +0000
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
Importance: Normal
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com
Thanks James for you help.
 
Now , it works fine .
Paqui Martinez Moreno
E-mail: paqui.martinez@opensolutions.es
Tfno.914160562

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

Para: nv-l@lists.us.ibm.com
De: James Shanks <jshanks@us.ibm.com>
Enviado por: owner-nv-l@lists.us.ibm.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@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