You can back up and restore the ncp_store
cache, so that you have a copy
of the topology.
About this task
When backups are configured, the RunCacheCopy.stch
stitcher is called as part of
the discovery. This stitcher runs the RunCacheCopy.pl
script, which backs up the
cache files. You do not need to modify the stitcher or the script.
Cache files are copied from $NCHOME/var/precision/
to $NCHOME/var/precision/backup/StoreCacheBackup/. Within this directory, a subdirectory is
created called Full_domain_timestamp.
Procedure
-
Backups are off by default. To enable and configure backups, edit the
EventGatewaySchema.cfg file.
-
Back up and edit the $NCHOME/etc/precision/EventGatewaySchema.cfg file.
-
Locate the insert into the
config.defaults
database table and edit the
values.
-
Set
backupDiscoveryCaches
to 1
to enable the backups, or
0
to disable them.
-
Set
numberOfBackupsToKeep
to the number of backups to keep. After this number
of backups have been made, older ones are deleted.
-
Restart the core components using the
itnm_stop ncp
and itnm_start
ncp
commands.
-
To restore the backups:
-
Shut down the core components using the
itnm_stop ncp
command.
-
Copy the cache files from $NCHOME/var/precision/backup/StoreCacheBackup/ back to $NCHOME/var/precision/.
-
Restart the core components using the
itnm_start ncp
command.