0% found this document useful (0 votes)
6 views5 pages

How To Remotely Back Up and Restore Configuration On A Lenovo Switch Running CNOS

This document discusses procedures for backing up and restoring configuration on a Lenovo switch using CNOS. It describes multiple transfer methods for backup including FTP, HTTP, SCP, SFTP and TFTP. It also provides examples of commands for both non-prompted and prompted backup and restoration methods using SFTP.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views5 pages

How To Remotely Back Up and Restore Configuration On A Lenovo Switch Running CNOS

This document discusses procedures for backing up and restoring configuration on a Lenovo switch using CNOS. It describes multiple transfer methods for backup including FTP, HTTP, SCP, SFTP and TFTP. It also provides examples of commands for both non-prompted and prompted backup and restoration methods using SFTP.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

How to remotely back up and restore

configuration on a Lenovo switch running


CNOS
Description
This article introduces the different procedures used to back up and restore configuration.
With these procedures, it is assumed the switch is configured correctly to communicate
with the server receiving the backup.

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.

• Backup Transfer methods


o FTP:

copy startup-config ftp ftp://[username]@[server


ip]/[path]

o HTTP:

copy startup-config http http://[server ip]:[port (if


not default)]/[path]

o SCP:

copy startup-config scp scp://[username]@[server


ip]/[path]

o SFTP:

copy startup-config sftp sftp://[username]@[server


ip]/[path]

o TFTP:
copy startup-config tftp tftp://[server ip]:[port (if
not default)]/[path]

• Examples (Assuming transfer protocol port number is default)


o FTP:

copy startup-config ftp ftp://[email protected]/upload

o HTTP:

copy startup-config http http://10.10.10.1/upload

o SCP:

copy startup-config scp scp://[email protected]/upload

o SFTP:

copy startup-config sftp


sftp://[email protected]/upload

o TFTP:

copy startup-config tftp tftp://10.10.10.1/upload

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.

• Backup Transfer methods

o FTP:

copy ftp ftp://[username]@[server ip]/[path] startup-


config

o HTTP:

copy http http://[server ip]:[port (if not


default)]/[path] startup-config

o SCP:

copy scp scp://[username]@[server ip]/[path] startup-


config

o SFTP:
copy sftp sftp://[username]@[server ip]/[path] startup-
config

o TFTP:

copy tftp tftp://[server ip]:[port (if not


default)]/[path] startup-config

• Example (Assuming port# is default)


o FTP:

copy ftp ftp://[email protected]/upload startup-config

o HTTP:

copy http http://10.10.10.1/upload startup-config

o SCP:

copy scp scp://[email protected]/upload startup-config

o SFTP:

copy sftp sftp://[email protected]/upload startup-


config

o TFTP:

copy tftp tftp://10.10.10.1/upload startup-config

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

You might also like