Re: [NV-L] set a value to a LIST_OF STRING in trapd.conf
2009-03-26 14:55:35
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/
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 AT lists.ca.ibm DOT com
03/26/2009 09:32 AM
Please respond to
Tivoli NetView Discussions <nv-l AT lists.ca.ibm DOT com> |
|
To
| Tivoli NetView Discussions <nv-l AT lists.ca.ibm DOT 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
Francois
Le Hir <flehir AT ca.ibm DOT com>
Francois Le Hir <flehir AT ca.ibm DOT com>
Sent by: nv-l-bounces AT lists.ca.ibm DOT com
03/26/2009 09:18 AM
Please respond to
Tivoli NetView Discussions <nv-l AT lists.ca.ibm DOT com> |
|
|
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 AT lists.ca.ibm DOT com
Unsubscribe:NV-L-leave AT lists.ca.ibm DOT com
http://lists.ca.ibm.com/mailman/listinfo/nv-l
(Browser access limited to internal IBM'ers only)
_______________________________________________
NV-L mailing list
NV-L AT lists.ca.ibm DOT com
Unsubscribe:NV-L-leave AT lists.ca.ibm DOT com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to
internal IBM'ers only)
_______________________________________________
NV-L mailing list
NV-L AT lists.ca.ibm DOT com
Unsubscribe:NV-L-leave AT lists.ca.ibm DOT com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to
internal IBM'ers only)
|
|
|