nv-l
[Top] [All Lists]

Re: Customizing Traps - Variable for Hostname on Generic SNMP Trap

To: nv-l@lists.tivoli.com
Subject: Re: Customizing Traps - Variable for Hostname on Generic SNMP Trap
From: James Shanks <James_Shanks@TIVOLI.COM>
Date: Wed, 24 Nov 1999 11:29:20 -0500
Generic SNMP traps do not contain a hostname as a variable.

You might be able to use the agent address, which would be an IP address, sent
as part of the trap.  And as I just appended this morning, you can reference
that value in your slot mapping in trapd.conf as $AGENT_ADDR.  I think you
should still be able to use the PRINTF function in the slot map to combine this
with another variable, but I have not tried that, so perhaps not.

James Shanks
Tivoli (NetView for UNIX) L3 Support



"Mull, John" <jmull@HERSHEYS.COM> on 11/24/99 11:04:26 AM

Please respond to Discussion of IBM NetView and POLYCENTER Manager on NetView
      <NV-L@UCSBVM.UCSB.EDU>

To:   NV-L@UCSBVM.UCSB.EDU
cc:    (bcc: James Shanks/Tivoli Systems)
Subject:  Customizing Traps - Variable for Hostname on Generic SNMP Trap




Hi Netview Admins,

Environment : Tivoli Netview for Unix V5.1.1 (Solaris 2.6)
                 Tivoli Enterprise Console V3.6.1 (Solaris 2.6)
*NOTE* - Separate Servers

We pass Netview events using the internal adapter to TEC.  Using the TEC
rulebase engine we send events to our trouble ticket system for 2nd level
support if certain conditions are met.  The problem I am trying to solve is
with the generic SNMP traps (Link_Down/Link_UP) for our enterprise switches

In the case where I know a device such as a Server connected to the switch
will be down for maintenance, it is nice to have a "maintenance rule" in
place to ignore the events for the switch port.  In order to place the
switch port under maintenance it is necessary to create a slot value that is
unique which will be used to identify the global variable in the Tivoli
rule.  When we were using Netview V4.1.2 sending events with the external
adapter (tecad_nv6k) I was able to use the PRINTF function in the
tecad_snmp.cds file to create a new slot value which I called hostport.  I
then appended hostname and interface_index to the slot which in all cases
created the unique port which I could use to put under maintenance.

Using the Event Configuration panels now to do the same work in v5.1.1,   I
am having difficulty getting the append to work for the new slot value.  For
the generic class Link Down the variable for the port index is nv_var1.  I
can't seem to determine what the hostname variable is in the SNMP trap.  For
the netmon events hostname  is nv_var2, but this does not hold true for the
SNMP trap.
Any suggestions or ideas are appreciated.

Thanks,






John Mull
Information Technology & Integration
Process Technologist, Enterprise Systems Management
Hershey Foods Corp.
(717)534-7959
email:jmull@hersheys.com

Any comments or statements made are not
necessarily those of Hershey Foods Corporation


<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web