nv-l
[Top] [All Lists]

Re: modify object status?

To: nv-l@lists.tivoli.com
Subject: Re: modify object status?
From: James_Shanks@tivoli.com
Date: Wed, 7 Mar 2001 06:45:35 -0500
Paul -

You still haven't told us why you are doing this.  Basically you should
not  try to manage the same objects that netmon does.  You cannot do this
and have things work out well.   The idea behind those APIs if for you to
add objects to the map that netmon does not handle and set their status
accordingly.  Is that what you are planning to do?

I am very concerned here because from your comments it is clear that you
are very new to NetView and that you do not have a good understanding of
how the product works, yet you have already decided to go off on your own
and design your own complicated application to mimic it.  Before I advise
you, and my advice will be very brief, because I cannot be responsible for
designing your application for you, I want to know exactly why you are
doing this.  What problem are you trying to solve?

There is a status change trap, 58916871, but it is of limited use.  It will
not change status in the databases, only the color on the map.  To use it
you must have a read-write map open when the event comes in.  I have posted
detailed instructions about how to override status using this mechanism on
this list before and you can search the archives and find it.  But it is
probably not suitable for what you want.  NetView internally does not cause
a status update to occur by using a trap.  netmon changes the status in the
object and topology databases and issues the trap to indicate that it has
done so.  ipmap receives the trap and pulls the new status from the
topology database and changes the map.  Neither process relies on the trap
to be anything more than a signaling or synchronization mechanism.


James Shanks
Team Leader, Level 3 Support
 Tivoli NetView for UNIX and NT



"Paul Kretek" <p.kretek@web.de>@tkg.com on 03/06/2001 03:27:35 AM

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

Sent by:  owner-nv-l@tkg.com


To:   "IBM NetView Discussion" <nv-l@tkg.com>
cc:
Subject:  Re: [NV-L] modify object status?



Sorry for my unclear question.
My main purpose is to change an object status according to my trigger input
event instead of using NetView to poll the status of the object.
According to my research, I think that I have to change the statuses on the
Object database that consists of Object IP status and map database that
consists of object status and symbol statuses after reading the
programmer's
Guide.
I think that I can use the OVwDB api calls to modify the object IP statuses
and use OVwSetStatusOnObject(s) and OVwSetStatusOnSymbols(s) to set the new
status on the map(s).  I do not know if this is the correct way to do it.
That is why I was wondering how NetView handles this.  It will be nice that
if you can give some advices if my approach to the problem is correct.

You also mentioned about sending my own snmp trap to NetView that interests
me a lot but not yet researches on it much.  I know that NetView has
defined
a set of NetView events or traps and display them on the event browse
whenever a particular event is met???  Could that be possible that I use
OVSnmp Api  to send a trap that contains the status change action to change
the status of an object?

I hope that I explain my problem more clear this time and thank you for
your
kindness supports.

Best Regards,

P. Kretek

----- Original Message -----
From: <James_Shanks@tivoli.com>
To: "IBM NetView Discussion" <nv-l@tkg.com>
Sent: Monday, March 05, 2001 3:08 PM
Subject: Re: [NV-L] modify object status?


Why don't you explain what it is you are trying to do, rather than us
trying to explain to you how NetView works internally?  It is hard to know
where to start with your answers.  Basically, everything you need to know
about writing your own NetView application is in the Programmer's Guide and
I highly recommend you read the relevant sections there before trying to
code anything.  As far as sending events, you can do that with snmptrap,
which is a command line executable or you can use the OVsnmp functions
(OVsnmpCreatePDU, OVsnmpSend, etc) to create your trap PDU and send it
yourself within your C /C++ program.

To answer your questions as best as I can, NeView, that is netmon, makes
changes to the topology database and the object database when nodes are
discovered or status changes.   These topology changes are read by ipmap
when the GUI is running and he changes the status of the symbols on the
map.    That in a nutshell is how it works.    But depending on what you
want to do, you may require a different mechanism.


James Shanks
Team Leader, Level 3 Support
 Tivoli NetView for UNIX and NT



"Paul Kretek" <p.kretek@web.de>@tkg.com on 03/02/2001 01:30:17 PM

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

Sent by:  owner-nv-l@tkg.com


To:   nv-l@tkg.com
cc:
Subject:  [NV-L] modify object status?



Hello,

can anyone tell me how NetView changes the status of an object on a map
when there is a change on the status of a physical object?

Does NetView only change the object status?  or Does it change all the
symbol status corresponding to this object?
Are the child objects on the submap of the object got changed as well?

Can I simulate this behaviour with NetView OVw Api calls,
OVwSetStatusOnObject(s) and OVwSetStatusOnSymbol(s)?  However, how can I
generate a log event for the change?

Thank you for helps in advance.

P. Kretek
____________________________________________________________________________

___

Alles unter einem Dach: Informationen, Fun, E-Mails. Bei WEB.DE:
http://web.de
Die große Welt der Kommunikation: E-Mail, Fax, SMS, WAP:
http://freemail.web.de

_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l


_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l

_________________________________________________________________________
NV-L List information and 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