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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

procedure to make a copy and restore the map database of netview

Status
Not open for further replies.

EAnnie

Programmer
Jul 30, 2001
17
CA
Hi

Do you know a (way/tool) to create and restore a copy of the map database .

tks
Annie
 
use /usr/OV/bin/nvhotbackup. This will create a file with the name /usr/OV/NVdatabases.tar.

Frank
 
To backup the netview directory "databases" within "/usr/OV", perform the following steps:
1. cd /usr/OV
2. tar -cvf /backupdirectory/backup.tar databases/
In this example "backup.tar" is the resulting tar file that is placed in the directory "backupdirectory" off the root directory.
To backup the netview directories "databases" and "conf" within "/usr/OV", issue the following:
tar -cvf /backupdirectory/backup.tar databases/ conf/

To restore databases, perform the following:
The tar'ed backups of the NetView databases are in the "/archive/databases" directory.
1. Stop all GUIs and the daemons.
2. rm -r /usr/OV/databases/*
3. cd /usr/OV/databases
4. pax -rvf /backupdirectory/backup.tar -pe
The pax command will properly handle sparse files which are used in NetView's databases.

Once the databases have been restored, run the "mapadmin" command to change the database's hostname (if extracting a customer's database) as it might be different from the host that is presently being run on.
mapadmin -u <mapname>:<hostname of NV system>

NOTE: Map names are normally &quot;default&quot;, but the &quot;ovwls&quot; command can be used to see what the name of the map is. The &quot;reset_ci&quot; command may also need to fix up hostname discrepancies. Start the necessary daemons but make sure netmon is not running. Start the GUI and let it synchronize, but netmon should still be stopped if using the customer's databases.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top