In-order to change the status of the icon you created on the map, you must
create a ruleset to look for the specific event and have the ruleset
execute the status change using the snmptrap via the 589168711 trap
specific. An example of a Korn shell script is provided below.
#!/bin/ksh
set -x
NAME=$1 # Name of Icon
STATE=$2 # Up, Down, Unknown, User1, or User2
HOSTNAME=$3 # Name of NetView Machine
/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 "$NAME report status" \
.1.3.6.1.4.1.2.6.3.1.1.5.0 OctetString $STATE
Please respond to NV-L@UCSBVM.ucsb.edu
To: NV-L@UCSBVM.ucsb.edu
cc: (bcc: Isaak Pham/State of NE)
Subject: Status events
Hi all
I am running Netview/AIX 4.1.2.0.U449573
I have encountered a problem with the event configuration. I discovered
a NT machine
and I have configured specific events to make the status make the icon
red or green,
I specified enterprise Specific 1 (application down) status event, down
, critical
because if the application is down it must go red on the map.
The event card comes up red but the icon does not change colour , so I
ran a sent snmp trap(netview Diagnose) and it also does not go red.
How do I get Netview to change colours on the map?
Thanks
Vynita P
|