Cisco Cisco Prime Network Registrar 8.3 故障排查指南
Cisco Prime Network Registrar IPAM 8.3 Disaster Recovery Guide
4
2.3 Replication of data from Production to DR Executive
2.3.1 Database replication
For installations which use the MySQL database provided with IPAM,
replication is accomplished using a custom script that dumps the IPAM
database from the Production Executive and copies the exported data to the
replication is accomplished using a custom script that dumps the IPAM
database from the Production Executive and copies the exported data to the
DR Executive. This data is then loaded into the separate instance of
MySQL running on the DR Executive.
MySQL running on the DR Executive.
For installations which use Oracle, please contact your Oracle database administrator
for information regarding Oracle database replication.
for information regarding Oracle database replication.
2.3.1.1 $INCHOME/etc/default.dbmover
This file contains the default options for the DBMover script, including
the IP address of the Production Executive, login credentials, and the
the IP address of the Production Executive, login credentials, and the
name of the MySQL database to be copied.
Note that the MySQL user defined in this file must have sufficient privileges to
remotely access the Production IPAM database. This can be accomplished via the
following commands on the Production IPAM Executive:
Note that the MySQL user defined in this file must have sufficient privileges to
remotely access the Production IPAM database. This can be accomplished via the
following commands on the Production IPAM Executive:
> $INCHOME/mysql/bin/mysql –uroot –pincr00t
mysql> GRANT SELECT on incontrol.* to
‘incadmin’;
Where the name preceding the at (@) symbol is the mysql
user configured in the default.dbmover file,
‘backupexec.company.com’ is the fully-qualified hostname or
IP address of the DR Executive, and ‘incadmin’ is the
password corresponding to the mysql user configured in the
default.dbmover file.
Where the name preceding the at (@) symbol is the mysql
user configured in the default.dbmover file,
‘backupexec.company.com’ is the fully-qualified hostname or
IP address of the DR Executive, and ‘incadmin’ is the
password corresponding to the mysql user configured in the
default.dbmover file.
2.3.1.2 $INCHOME/etc/dbmover.sh
This script remotely retrieves a database from a primary system and
loads it into a local database. Either this script or the dbmover-
wrapper.sh script should be configured to run periodically on the DR
Executive using the ‘cron’ utility available on supported platforms. The
loads it into a local database. Either this script or the dbmover-
wrapper.sh script should be configured to run periodically on the DR
Executive using the ‘cron’ utility available on supported platforms. The
frequency in which the script should be run is dependent upon the
frequency in which the Production Executive’s IPAM database is
frequency in which the Production Executive’s IPAM database is
changed. It is recommended that the DBMover script is run at least
once daily.
Note the dbmover-wrapper.sh script must be updated w/ valid email addresses for
the ‘to’ and ‘from’ sections and a smtp domain name.
once daily.
Note the dbmover-wrapper.sh script must be updated w/ valid email addresses for
the ‘to’ and ‘from’ sections and a smtp domain name.