My experience with 'changing' Object and Symbol statuses are somewhat
limited. However, I have done some 'interesting' things with it. What I
did find undesireable was in the API routine OVwSetStatusOnObjects the only
permitted statuses were Unknown, Normal, Marginal, and Critical. It made
things a little more difficult than anticipated.
If I were tasked with what needing to programtically Manage and Unmanage
Objects, I would probably delete the object and then only 'facilitate'
Netview discovering that object. The problem, IMO, with creating IP nodes
in netview is that if you do not do it 100% correctly, you are up creek (no
paddle). The worst part about being up creek, is that it is no fun
'fishing' the OVw DB for an Object or Symbol you created incorrectly. Maybe
if there were more routines into netmon and the DB, it could be easier
(feeding info to tickle the discovery).
Getting back to your questions, my -guess- is that polling interval is for
an Object is stored in OVwFieldBindList. However, this is just a guess and
it maybe more internal to OVw, I dont know. On that note, I have not found
an easy way to programatically list and interpret all of the field_values
for a given Object. Hopefully someone will have more information on this.
Good luck and let us know how you make out,
Jason Allison
Principal Engineer
ARINC Incorporated
Office: (410) 266-2006
FAX: (410) 573-3026
-----Original Message-----
From: Davis, Donald [mailto:donald.davis@firstcitizens.com]
Sent: Wednesday, May 22, 2002 4:27 PM
To: IBM NetView Discussion (E-mail)
Subject: [nv-l] [CLI] Manage/Unmanage
I know this question has been asked here before, but ......
I also am aware that official answer is that there is NO command line
interface for Unmanage/Manage.
Has anyone written any home grown code using the NetView API to
Unmanage/Manage objects?
I have tried these work-around scenarios without success.
1. I created a MAINT SmartSet with a polling interval of 1/year
when a node becomes a member of the SmartSet, it still uses original 5
minute polling interval.
This does not immediately change the polling interval and I get false
positives (node downs).
2. I have run xnmsnmpconf -update to change the polling interval to 1/year,
followed by -clearCache and -event.
This does not immediately change the polling interval and I get false
positives (node downs).
This method also causes netmon to get backed up while rebuilding the
cache.
If repeated several times, netmon can be backed up for hours!
Any suggestions?
Thanks,
Don
=======================
Donald Davis
First Citizens Bank
Raleigh, NC.
----------------------------------------------------------------------------
--
This electronic mail and any files transmitted with it are confidential and
are intended solely for the use of individual or entity to whom they are
addressed. If you are not the intended recipient or the person responsible
for delivering the electronic mail to the intended recipient, be advised
that you have received this electronic mail in error and that any use,
dissemination, forwarding, printing, or copying of this electronic mail is
strictly prohibited. If you have received this electronic mail in error,
please immediately notify the sender by return mail.
============================================================================
==
|