nv-l
[Top] [All Lists]

Re: playing with colors

To: nv-l@lists.tivoli.com
Subject: Re: playing with colors
From: James Shanks <James_Shanks@TIVOLI.COM>
Date: Tue, 1 Feb 2000 08:34:49 -0500
Perhaps you would do well to review the material in the Programmer's Guide about
objects, statuses, and fields.
You cannot get the current state (IP Status) of your object because, technically
speaking, it does not have one.  It is not an IP object discovered and managed
by netmon, so it has no IP Status.  If you want to give it a status, fine, but
that is not going to be an IP status.  You could opt to use one of the four
correlation status fields, and have your ruleset set one of those with a
setstate node.  But remember you are in control of this thing and netmon and
ovtopmd have no knowledge of it.   It is just a map item you created.

As for the other one you changed, what kind of object is it?  A node with one
interface? A router with more than one?  It makes a big difference.  If it is
just a node, then it will have a status source of "symbol".   And nvevents can
change the status of that for you when the 58916871 status trap is sent.  But if
the object is a router, with more than one interface, then it will have a status
source of "compound propagated", which means it has no status of its own.  If
you have customized the Nvevents app-defaults to allow your status trap to
override this situation, then the status source of the router would become
"symbol" also rather than "compound propagated" and  then merely pinging the
interfaces will no longer make it change color.


James Shanks
Tivoli (NetView for UNIX) L3 Support



Alejandro Mechoulam <amechoul@BMA.COM.AR> on 02/01/2000 08:11:53 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:  playing with colors




Hello all,
I have a question about object managed by netmon and not.
I created an object inside of a router, the type is software:operating
system. I use a ruleset capturing two traps created adhoc, lets say 1001
1002 to make an override of the state of the object to change the color on
the map. That works ok. Now I try to get the object status using
nvdbformat. I inspected the /usr/OV/fields/C and the only fields that have
status of the format normal,critical, etc are IP Status and XXMAP Status,
but they always return -1. The object does not belong to the ip topology
(ovtopodump does not know anything about the id returned by nvdbformat).
The problem is, I can change the color of an object, but can not get his
current state.
I do not have a compiler to develope a C program. That's why I am using
scripts. ( a compiled GNU C is wellcome).
In oder words I want to recreate something like nvsniffer of NT Netview.
Help is apreciated.

Another question, I tried to change colors of an ip object with a script
posted in this list and worked ok, I noteced the netmon does not change
color again to the state it has to be when he polls (every 5'). Only if I
demandpoll the object. that is ok?


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

Archive operated by Skills 1st Ltd

See also: The NetView Web