nv-l
[Top] [All Lists]

Re: Changing status of an Object

To: nv-l@lists.tivoli.com
Subject: Re: Changing status of an Object
From: James_Shanks@tivoli.com
Date: Wed, 24 May 2000 12:49:50 -0400

With the 58916871 status trap.  That's what it for.  For a description, see the
trap list at the end of the Admin Guide.
You can generate the trap with snmptrap.  But in order for it to work to you
must have the GUI up with a read-write map and the event window started by the
GUI.  Your trap must specify the selection name of the object you want changed.

Here are some details on overriding status using the 58916871 trap.

If you look at the description of this trap in Event Configuration, you
will see that this trap is not issued by netmon but is in fact designed for
customer use to change status (and therefore color) on a map.  It doesn't
affect true status in the object database.  Below is a shell script which
will issue this trap via the snmptrap command. You pass it two variables --
(1) the name of the object from object database, and (2) the status you
want this changed to on the map(s).
Here's the script:

#!/bin/ksh
set -x
NAME=$1
STATE=$2
/usr/OV/bin/snmptrap `hostname` .1.3.6.1.4.1.2.6.3.1 \
`hostname` 6 58916871 1 \
.1.3.6.1.4.1.2.6.3.1.1.2.0 Integer 14 \
.1.3.6.1.4.1.2.6.3.1.1.3.0 OctetString $NAME \
.1.3.6.1.4.1.2.6.3.1.1.4.0 OctetString "Object status is" \
.1.3.6.1.4.1.2.6.3.1.1.5.0 OctetString $STATE

Obviously you can make this script more elaborate if you like.
The permissable status values are Unknown, Normal, Marginal, Critical, Up,
Down, User1, and User2.

You can obtain the name of the object by highlighting the icon on the map
and clicking with the RIGHT mouse button to get to Edit ==>Modify/Describe
==> Object and the name is in the Set Selection Name field.

Typically, a host is known by its hostname and an interface by
hostname:interfacename, where the interface name is the IFdescription
from the MIB (such as "nv6ktst5.raleigh.ibm.com:tr0" for example).
You can always verify you have a correct object name by doing
ovobjprint -s <name>.  If the object is not found, then you have a bad
name.


Hope this helps



James Shanks
Tivoli (NetView for UNIX and NT) L3 Support


Terry_E_Simpson@tivoli.com on 05/24/2000 12:31:24 PM

Please respond to IBM NetView Discussion <nv-l@tkg.com>

To:   nv-L@tkg.com
cc:    (bcc: James Shanks/Tivoli Systems)
Subject:  [NV-L] Changing status of an Object




Have anyone ever manually change the status of an object or symbol on NetView
UNIX V6.0? If I add my own object, how can I control its status?

Terry



_________________________________________________________________________

NV-L List information (unsubscribing, policies, posting, digest version,
searchable archives): http://www.tkg.com/nv-l


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

Archive operated by Skills 1st Ltd

See also: The NetView Web