read command
This command restores the CMM configuration, including users and permission groups, that was previously saved to a file. It can also be used to unmanage the CMM after a failed or incomplete unmanage operation.
Configurations are saved to a file using the write command.
- To successfully restore all settings using the read command, a user must have permission to modify any settings controlled by individual commands in the configuration being restored.
- Restoring the CMM overwrites all existing user accounts and passwords on the CMM and the CMM IP address with the values in the backup file.
- When a CMM is managed by an external management device, user management for CMM accounts is performed by that management device. User accounts and certificates on the CMM are locked, and the necessary certificates are not included in the CMM backup image, which will cause communications between the management device and the CMM to fail. See Remanaging CMM for information about re-managing a restored CMM.
- When the CMM is set to
Secure
security mode, only secure file transfer methods, such as HTTPS and SFTP, can be used for tasks involving file transfer when the CMM is acting as a server. Unsecure file transfer protocols, such as HTTP, FTP, and TFTP, are disabled when the CMM is acting as a server when the security mode is set toSecure
. Unsecure file transfer protocols remain available for a CMM acting as a client for all commands when the security mode is set toSecure
. - For information about how to specify a URL for file transfer, see Specifying a URL for file transfer.
If command syntax is not correctly entered, or if a command fails to run, an error message is returned. See Common errors for a list of error messages that apply to all commands or read command errors for a list of error messages that are specific to the read command.
Function | What it does | Command | Target (see paths in Command targets) |
---|---|---|---|
Restore CMM configuration from file | Restores the CMM configuration from an image that was previously saved to a file. Note
| read -u URL -p passphrase where:
This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Restore CMM configuration from file (verbose) | Restores the CMM configuration from an image that was previously saved to a file, showing the log file generated while doing the restore. The log file is not shown until the restore is complete, which might take several minutes. Note
| read -u URL -p passphrase -v where:
This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Restore CMM configuration from file and reset CMM | Restores the CMM configuration from an image that was previously saved to a file and then reset the CMM. Note
| read -u URL -p passphrase -r where:
This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Restore CMM configuration from file (verbose) and reset CMM | Restores the CMM configuration from an image that was previously saved to a file, showing the log file generated while doing the restore. The log file is not shown until the restore is complete, which might take several minutes, and displays for several seconds until the CMM resets. Note
| read -u URL -p passphrase -v -r where:
This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Unmanage CMM (forced) | Unmanages the CMM after a failed or incomplete unmanage operation. | read -f unmanage This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Example:
read -u tftp://9.37.177.215/temp/cmm1.cfg -p "backuplock" -T mm[p]
The following example shows the information that is returned from this command:
system> read -u tftp://9.37.177.215/temp/cmm1.cfg -p "backuplock" -T mm[p]
OK
Configuration restore was successful
Restart the MM for the new settings to take effect
system>
read -u sftp://userid:password@300.370.640.310/tftpboot/backup/cfg.bkp
-p "Passphaase" -T mm[p]
The following example shows the information that is returned from this command:
system> read -u sftp://userid:password@300.370.640.310/tftpboot/backup/cfg.bkp
-p "Passphaase" -T mm[p]
OK
Configuration restore was successful
Restart the MM for the new settings to take effect
system>