How To Remotely Back Up and Restore Configuration On A Lenovo Switch Running CNOS
How To Remotely Back Up and Restore Configuration On A Lenovo Switch Running CNOS
Backup Procedure
Multiple transfer methods can be used: FTP, HTTP, SCP, SFTP, TFTP. Choose the method
that best fits your environment. Command layouts along with examples are listed below.
o HTTP:
o SCP:
o SFTP:
o TFTP:
copy startup-config tftp tftp://[server ip]:[port (if
not default)]/[path]
o HTTP:
o SCP:
o SFTP:
o TFTP:
After choosing a transfer method, you can choose to either utilize the non-prompted
structure or use the prompted command structure. SFTP will be implemented in the
following examples to show the different command processes for this article.
Non-prompted method:
R6_Lab_NE1032_1#copy startup-config sftp
sftp://[email protected]/upload vrf managemen
[email protected]'s password:
sftp> progress
Progress meter enabled
sftp> put /usr/local/etc/nosx.conf upload
/usr/local/etc/nosx.conf
100% 1696 2.1MB/s 00:00 Copy Success
The Virtual Routing and Forwarding instance (VRF) is the virtual router you would like to
send the data from. By default, the default VRF comprises the front-facing data ports. VRF
management is the management port. Use the one that best fits your network design. The
VRF chosen requires an IP address along with a default gateway configured on the port.
Prompted Method:
Press enter after typing copy startup-config and the method (for example, copy startup-
config sftp). The CLI will prompt you to enter answers to individual inputs related to the full
command.
R6_Lab_NE1032_1#copy startup-config sftp
Enter vrf name [default]:management
Enter IP:10.10.10.1
Enter port [default]:
Enter Username:sftpuser1
Enter filename:nosx.conf<.span>
[email protected]'s password:
sftp> progress
Progress meter enabled
sftp> put /usr/local/etc/nosx.conf /upload
/usr/local/etc/nosx.conf
100% 1696 1.6MB/s 00:00
Copy Success
Restoration Procedure
Restoration can be carried out with the same methods as the backup. Choose the method
that best fits your environment. Command layouts along with examples are listed below.
o FTP:
o HTTP:
o SCP:
o SFTP:
copy sftp sftp://[username]@[server ip]/[path] startup-
config
o TFTP:
o HTTP:
o SCP:
o SFTP:
o TFTP:
Non-Prompted Method:
R6_Lab_NE1032_1#copy sftp sftp://[email protected]/nosx.conf
startup-config vrf management
[email protected]'s password:
sftp> progress
Progress meter enabled
sftp> get nosx.conf /tmp/ORCA/nosx.conf
/upload/nosx.conf
100% 1696 1.3MB/s 00:00
Warning: This operation will overwrite the startup configuration.
Do you want to continue (y/n)?[n]y
Copy Success
The VRF is the virtual router you would like to receive the data on. By default, the default
VRF comprises the front-facing data ports. VRF management is the management port. Use
the one that best fits your network design. The VRF chosen requires an IP address along
with a default gateway configured on the port.
Prompted Method:
Press enter after typing copy [transfer method] startup-config (for example copy sftp
startup-config). The CLI will prompt for individual inputs related to the full command. Text
inside brackets represents the default input, which will be used if the input is left blank:
R6_Lab_NE1032_1#copy sftp startup-config
Enter vrf name [default]:management
Enter IP:10.10.10.1
Enter port [default]:
Enter Username:sftpuser1
Enter filename:nosx.conf
[email protected]'s password:
sftp> progress
Progress meter enabled
sftp> get nosx.conf /tmp/ORCA/nosx.conf
/upload/nosx.conf
100% 1696 1.3MB/s 00:00
Warning: This operation will overwrite the startup configuration.
Do you want to continue (y/n)?[n]y
Copy Success