I am using the xnmtrap GUI where everything gets configured. The middle
boxes specify the TEC class to map a TRAP to and the TEC slot mapping.
It is the TEC slot mapping where I want access to a hostname variable.
I know I can use $COMMUNITY, $ENTERPRISE, $SOURCE_TIME, $TYPE, $SPECIFIC
and $V1 - 15 . NetView enterprise TRAPs generally have the second TRAP
varbind as the hostname so for that I could use $V2 but many TRAPs don't
include the "host with the problem" as a TRAP varbind - it's part of the
SNMP/UDP/IP header after all and NetView obviously knows where it came
from because he always displays it in the event workspace and make it
available as the $A variable if you want to configure an action in the
bottom box of the xnmptrap application.
Does that make sense?
Cheers,
Jane
James Shanks wrote:
I'm confused Jane.
Where are you trying to specify the variable? In trapd.conf? In the
ruleset itself?
James Shanks
Level 3 Support for Tivoli NetView for UNIX and Windows
Tivoli Software / IBM Software Group
*Jane Curry <jane.curry@skills-1st.co.uk>*
Sent by: owner-nv-l@lists.us.ibm.com
04/21/2004 03:33 PM
Please respond to
nv-l
To
NetView mailing list <nv-l@lists.us.ibm.com>
cc
Subject
[nv-l] How to populate hostname in TEC slot mapping
NetView 7.1.4 for Unix.
I want be able to populate the hostname TEC slot for any generic TRAP
that NetView is configured to forward to TEC. Default events in
TEC_ITS.rs seem to get hostname populated automatically. If I wsa
configuring a NetView TRAP for automatic action, I'd use $A for the
machine that sent the TRAP. Is there an equivalent environment variable
to use for slot mapping. I've tried $HOSTNAME and $A to no avail.
Cheers,
Jane
--
Tivoli Certified Consultant & Instructor
Skills 1st Limited, 2 Cedar Chase, Taplow, Bucks, SL6 0EU, UK
Tel: +44 (0)1628 782565
Copyright (c) 2004 Jane Curry <jane.curry@skills-1st.co.uk>. All
rights reserved.
--
Tivoli Certified Consultant & Instructor
Skills 1st Limited, 2 Cedar Chase, Taplow, Bucks, SL6 0EU, UK
Tel: +44 (0)1628 782565
Copyright (c) 2004 Jane Curry <jane.curry@skills-1st.co.uk>. All rights
reserved.
|