Chapter 5. Special topics 141
server must be completely installed and configured by the administrator in advance; the
csmrestore command does not install any CSM code on the management server.
The csmrestore command only restores the nodes, node groups, devices, device groups,
conditions and responses, and condition and response associations on the management
server. Customization scripts and DCEM scripts are also restored.
To restore data using the csmrestore command, CSM must be installed on the replacement
or upgraded management server in the same manner that CSM was installed on the
management server that ran the csmbackup command.
To restore information from the default backup directory /var/opt/csm/csmdata, enter:
csmrestore
To restore data from any other directory, use the -d flag (see Example 5-2):
csmrestore -d /work/csmbackup
Example 5-2 The csmrestore command
[p5570lp01]#csmrestore -d /work/csmbackup
Restoring node definitions backed up on AIX 6.1.6 CSM version 1.7.1.6...
Remove all existing nodes to restore saved nodes? (Y/N): y
Defining CSM Nodes:
p6lp02: Changing Mode from: "Managed" to: "PreManaged".
p6lp03: Changing Mode from: "Managed" to: "PreManaged".
2 nodes have been defined successfully.
Restoring nodegroups backed up on AIX 6.1.6 CSM version 1.7.1.6...
Remove all existing nodegroups to restore saved nodegroups? (Y/N): y
Restoring hardware device definitions backed up on AIX 6.1.6 CSM
Remove all existing hardware devices to restore saved hardware devices? (Y/N): y
Restoring hardware device groups backed up on AIX 6.1.6 CSM version 1.7.1.6...
Remove all existing hardware device groups to restore saved groups? (Y/N): y
Restoring condition information backed up on AIX 6.1.6 CSM version 1.7.1.6...
Restoring Event Response information backed up on AIX 6.1.6 CSM
Restoring sensor information backed up on AIX 6.1.6 CSM version 1.7.1.6...
Restoring condition/response association backed up on AIX 6.1.6 CSM
Restoring least-privilege (LP) information backed up on AIX 6.1.6 CSM
Restoring CSM user customization scripts...
Restoring csmconfig information backed up on AIX 6.1.6 CSM version 1.7.1.6...
Restore of CSM data completed.
There are several files in the /work/csmbackup directory that contain
information on the state of the system when it was backed up.
You may find it useful to look at these files. They include:
/work/csmbackup/config.csmbak
/work/csmbackup/tasks.csmbak
[p5570lp01]#