nv-l
[Top] [All Lists]

Re: [NV-L] set a value to a LIST_OF STRING in trapd.conf

To: Tivoli NetView Discussions <nv-l@lists.ca.ibm.com>
Subject: Re: [NV-L] set a value to a LIST_OF STRING in trapd.conf
From: Leslie Clark <lclark@us.ibm.com>
Date: Thu, 26 Mar 2009 14:54:58 -0400
Delivery-date: Thu, 26 Mar 2009 18:55:44 +0000
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
In-reply-to: <OF8805FF4B.BCCC3483-ON85257585.0049D461-85257585.004A58D9@us.ibm.com>
List-help: <mailto:nv-l-request@lists.ca.ibm.com?subject=help>
List-id: Tivoli NetView Discussions <nv-l.lists.ca.ibm.com>
List-post: <mailto:nv-l@lists.ca.ibm.com>
List-subscribe: <http://lists.ca.ibm.com/mailman/listinfo/nv-l>, <mailto:nv-l-request@lists.ca.ibm.com?subject=subscribe>
List-unsubscribe: <http://lists.ca.ibm.com/mailman/listinfo/nv-l>, <mailto:nv-l-request@lists.ca.ibm.com?subject=unsubscribe>
Reply-to: Tivoli NetView Discussions <nv-l@lists.ca.ibm.com>
Sender: nv-l-bounces@lists.ca.ibm.com

For assistance using the PRINTF function to add things to slot mappings in xnmtrap, here's an append from a while back.
You might do some searching in there.  http://lists.skills-1st.co.uk/mharc/html/nv-l/
To:
nv-l@lists.tivoli.com
Subject:
Re: [nv-l] trap variables to TEC slot mapping
From:
"Leslie Clark" <lclark@us.ibm.com>
Date:
Fri, 17 May 2002 13:18:04 -0400

The printf business is tricky, but it works.  For example, the Node Up and
Node Down events have $3 which just says 'Node Up' or 'Node Down'.
Further, the $3 variable is mapped to the TEC slot 'msg'.  I wanted to add
the nodename to the msg variable. So, in xnmtrap, in the little side dialog
for 'TEC Slot mapping' I changed the one for 'msg' from '$V3' to

  PRINTF( "%s : %s", $V2, $V3 )

This works great, and the tec now gets, in the msg variable,
   Nodename: Node Up

In trapd.conf, it ends up looking like:

EVENT_CLASS OV_Node_Down
BEGIN_SLOT_MAPPING
msg PRINTF( "%s : %s", $V2, $V3 )
OV_status 1
END_SLOT_MAPPING

Cordially,

Leslie A. Clark
IBM Global Services - Systems Mgmt & Networking
Detroit



Cordially,

Leslie A. Clark
IT Services Specialist, Network Mgmt
Information Technology Services Americas
IBM Global Services
(248) 552-4968 Voicemail, Fax, Pager



James Shanks/Raleigh/IBM@IBMUS
Sent by: nv-l-bounces@lists.ca.ibm.com

03/26/2009 09:32 AM
Please respond to
Tivoli NetView Discussions <nv-l@lists.ca.ibm.com>

To
Tivoli NetView Discussions <nv-l@lists.ca.ibm.com>
cc
Subject
Re: [NV-L] set a value to a LIST_OF STRING in trapd.conf





Unless you can figure out how to do it with PRINTF, probably not.

Complex event enhancement is best done on the TEC server with TEC rules.

James Shanks
Tivoli Network Availability Management Level Three
Network Availability Management
Tivoli Software, IBM Corp
1-919-224-1642 | T/L 687-1642 | ITN 26871642
Inactive hide details for Francois Le Hir <flehir@ca.ibm.com>Francois Le Hir <flehir@ca.ibm.com>

Francois Le Hir <flehir@ca.ibm.com>
Sent by: nv-l-bounces@lists.ca.ibm.com

03/26/2009 09:18 AM
Please respond to
Tivoli NetView Discussions <nv-l@lists.ca.ibm.com>



To

Tivoli NetView Discussions <nv-l@lists.ca.ibm.com>

cc

Subject

[NV-L] set a value to a LIST_OF STRING in trapd.conf




Hi List,

Using Netview 7.1.5 on AIX
Is it possible in trapd.conf to set a value to a slot defined in TEC as a LIST_OF STRING ?
either adding a value to a list with an existing default value or setting the whole list would be fine. I could not find any reference or example of this.

Thanks
Salutations, / Regards,

Francois Le Hir
Network Projects & Consulting Services
IBM Global Technology Services


"Do not go where the path may lead; go instead where there is no path and leave a trail." - Ralph Waldo Emerson.
_______________________________________________
NV-L mailing list
NV-L@lists.ca.ibm.com
Unsubscribe:NV-L-leave@lists.ca.ibm.com

http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to internal IBM'ers only)
_______________________________________________
NV-L mailing list
NV-L@lists.ca.ibm.com
Unsubscribe:NV-L-leave@lists.ca.ibm.com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to internal IBM'ers only)

_______________________________________________
NV-L mailing list
NV-L@lists.ca.ibm.com
Unsubscribe:NV-L-leave@lists.ca.ibm.com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to 
internal IBM'ers only)
<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web