C-3
Cisco Intrusion Prevention System Sensor CLI Configuration Guide for IPS 7.2
OL-29168-01
Appendix C Troubleshooting
Preventive Maintenance
To back up your current configuration, follow these steps:
Step 1
Log in to the CLI using an account with administrator privileges.
Step 2
Save the current configuration. The current configuration is saved in a backup file.
sensor# copy current-config backup-config
Step 3
Display the backup configuration file. The backup configuration file is displayed.
sensor# more backup-config
Step 4
You can either merge the backup configuration with the current configuration, or you can overwrite the
current configuration:
Merge the backup configuration into the current configuration.
sensor# copy backup-config current-config
Overwrite the current configuration with the backup configuration.
sensor# copy /erase backup-config current-config
Backing Up and Restoring the Configuration File Using a Remote Server
Note
We recommend copying the current configuration file to a remote server before upgrading.
Use the copy [/erase] source_url destination_url keyword command to copy the configuration file to a
remote server. You can then restore the current configuration from the remote server. You are prompted
to back up the current configuration first.
The following options apply:
/erase—Erases the destination file before copying.
This keyword only applies to the current-config; the backup-config is always overwritten. If this
keyword is specified for destination current-config, the source configuration is applied to the system
default configuration. If it is not specified for the destination current-config, the source
configuration is merged with the current-config.
source_url—The location of the source file to be copied. It can be a UR L or keyword.
destination_url—The location of the destination file to be copied. It can be a URL or a keyword.
current-config—The current running configuration. The configuration becomes persistent as the
commands are entered.
backup-config—The storage location for the configuration backup.
The exact format of the source and destination URLs varies according to the file. Here are the valid
types:
ftp:—Source or destination URL for an FTP network server. The syntax for this prefix is:
ftp://[[username@]location][/relativeDirectory]/filename
ftp://[[username@]location][//absoluteDirectory]/filename