Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I delete old nodes from NNM cleanly? 4

Status
Not open for further replies.

enttoobad

Programmer
Jan 20, 2002
14
When servers have been replaced or removed, I am often the last to hear! If I want to go through NNM and delete old servers from the database so I no longer get messages on OpenView, what is the procedure?
I have been looking for relevant manuals on hp.com but no luck as yet!
Thanks in advance for any advice.
 
enttoobad,

Unfortunately(1) I don't think that there is a way to do this without manually going into the GUI and deleting the nodes you want to be rid of. However once that is done, there are a few other steps that will need to be executed that Unfortunately(2)is not documented in one location, they are quite scattered.....

1) Manually delete the node using the GUI{highlight node and delete from all submaps}( :-( don't know a way around that)
2) ovstop -c netmon
3) ovw -mapcount -uv (this will check the consistency between the object and map database)
4) ovtopofix -chsv (this will detect and clean any inconsistnecies if they exist; if none exist it will clean the database of lingering IP segments, hostnames, etc,(referred to as hints),that have since been deleted)
5) ovstart -c netmon
If there is a lot of addition and deletion of nodes to the database for NNM, you might want to put this into a cron job to ensure the database is kept clean and does not become corrupt. If the database becomes corrupt, deleting it and starting from scratch may be the only option you're left with.

Hope this helps.

<cag>
 
Thank you very much cgainey, that's just the information I needed. Brilliant!
 
entoobad,

In the discover options window (I believe it is options>>polling or something like that) there is a radio button that tells HPOV to delete a node if down for more than two weeks. Sorry I do ot have more detail but I am not working with OV at the moment.
 
Be sure to remove any node from NNM polling list BEFORE deleteing the from the GUI. We ran into a problem with NMM after a node was deleted from our GUI that pointed into another districts area. Several weeks later we received a security message wondering why we were polling a their network device that no longer existed.
We looked at NNM polling list and it was not there but we could see NNM polling the device. Created the offending ICON with the suspect IP address a low and behold it now appeard in the NNM polling list.
Maybe the database clean up actions listed in previous messages would have cleaned up this mess but we didn't know abut such things at the time.
Hope this is helpfull
 
Thanks for all the advice - this is becoming quite comprehensive!

Cotton9 - can you tell me where I can find the polling list and how I can edit it? This may solve another problem I am having...
 
Hi there, I´ve just joined tek-tips, hope I can be of help for you, BTW, we all are the last ones to find out about changes in any company ;)...

If they are only nodes under NNM:

Just like cgainey mentioned, first, select every node you want to delete, go ahead and delete it with:
Edit
Delete
From All Submaps

After doing this, just do the following:
ovstop -c netmon
ovtopofix -a
ovtopofix -n
ovw -mapcount -ruD (takes care of removal of every node you just selected at the beginnig and efectiveky deletes them and updated ther object database)

MAKE SURE ALL THE MAPS ARE CLOSED, the above steps resolve your problems

Now, if you want to modify nodes / servers under VPO or IT/O or OV-O:
Perform the steps mentioned above + if you have troubles under VPO, you should use the opcchgadd utility which allows you to modifiy attributes on the Vpo´s database.

My two cents,
C.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top