Users Guide

Table Of Contents
Prevent configuration changes
You can prevent configuration changes that are made on the switch in sessions other than the current CLI session using the
lock command. To prevent and allow configuration changes in other sessions, use the lock and unlock commands in EXEC
mode.
When you enter the lock command, users in other active CLI sessions cannot make configuration changes. When you close the
CLI session in which you entered the lock command, configuration changes are automatically allowed in all other sessions.
OS10# lock
OS10# unlock
Copy running configuration
The running configuration contains the current OS10 system configuration and consists of a series of OS10 commands. Copy the
running configuration to a remote server or local directory as a backup or for viewing and editing. The running configuration is
copied as a text file that you can view and edit with a text editor.
Copy running configuration to local directory or remote server
OS10# copy running-configuration {config://filepath | home://filepath |
ftp://userid:passwd@hostip/filepath | scp://userid:passwd@hostip/filepath |
sftp://userid:passwd@hostip/filepath | tftp://hostip/filepath}
OS10# copy running-configuration scp://root:calvin@10.11.63.120/tmp/qaz.txt
Copy file to running configuration
To apply a set of commands to the current running configuration and execute them immediately, copy a text file from a
remote server or local directory. The copied commands do not replace the existing commands. If the copy command fails, any
commands that were successfully copied before the failure occurred are maintained.
OS10# copy {config://filepath | home://filepath |
ftp://userid:passwd@hostip/filepath | scp://userid:passwd@hostip/filepath |
sftp://userid:passwd@hostip/filepath | tftp://hostip/filepath | http://userid@hostip/
filepath}
running-configuration
OS10# copy scp://root:calvin@10.11.63.120/tmp/qaz.txt running-configuration
Copy running configuration to startup configuration
To display the configured settings in the current OS10 session, use the show running-configuration. To save new
configuration settings across system reboots, copy the running configuration to the startup configuration file.
OS10# copy running-configuration startup-configuration
Restore startup configuration
The startup configuration file, startup.xml, is stored in the config system folder. To create a backup version, copy the
startup configuration to a remote server or the local config: or home: directories.
To restore a backup configuration, copy a local or remote file to the startup configuration and reload the switch. After
downloading a backup configuration, enter the reload command, otherwise the configuration does not take effect until you
reboot.
NOTE:
A non-default switch-port profile is not automatically restored. If the downloaded startup configuration you want to
restore contains a non-default switch-port profile, you must manually configure and save the profile on the switch, and then
CLI Basics 67