ITEM: AT8959

NetView - Is there a way to assign a user color to a specific symbol?


Question:

Problem:
Hi, we are using NV4AIX 3.1 and I wounder if there is a awy to assigne
a user color (1/2) to a specific interface. The purpose behind this,
is that we would like to enable more visibility for the operator
in order to distinguish between an acknowledged interface, due to some
maintanance that need to be done, and an interface that is just used
as a standby interface, activated whenever to much load is on an other
one.
Is it possible to have an menu item, like Options -> Acknowledge,
but with Option -> UserColor?

Answer:
One way to change the color of a symbol is to issue a status trap.
I have included below a shell script that you can use to send
the status trap (change the SELECTION_NAME variable to the selection
name of an object on your map).

I do not know of a way to change the color of a symbol from the user
interface (other than to write your own OVw application with the OVw API).
--------------------
echo $SELECTION_NAME

if [ $\# -eq 1 ]; then
  status=$1
else
  PS3="Enter Status values for $SELECTION_NAME: "
  select status in Up Down Unknown Marginal Normal Critical User1 User2
  do
    if [ $status ]
    then
      break
    fi
  done
fi

/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 $SELECTION_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 $status
************************************************************************


Support Line: NetView - Is there a way to assign a user color to a specific symbol? ITEM: AT8959
Dated: January 1996 Category: N/A
This HTML file was generated 99/06/24~13:30:25
Comments or suggestions? Contact us