Exporting Configurations Using Secure Copy Protocol (SCP)
The SCP is a network protocol based on the BSD RCP protocol supporting file transfers between hosts on a network. SCP uses Secure Shell (SSH) for data transfer and uses the same mechanisms for authentication, and ensures the authenticity and confidentiality of the data in transit. A client can upload files to a server, optionally including basic attributes such as permissions or timestamps. Clients can also download files or directories from a server. SCP runs over TCP port 22 by default. Like RCP, there is no RFC that defines the specifics of the protocol.
In Netvisor One, you are prompted for a password when the upload-server option is provided in the CLI.
CLI (network-admin@Leaf1) > switch-config-export upload-server 10.1.1.1
server password:
During the software upgrade process, Netvisor One exports the switch configuration and moves it to a shared directory. The exported configuration archive is accessible from all boot environments. Netvisor One exports the configuration before the start of the software upgrade. Netvisor One stores a maximum of three configuration archives on the switch. Older configurations are deleted.
New parameters in Netvisor One support this feature:
CLI (network-admin@Leaf1) > switch-config-export
export-file export a nvOS config file
upload-server upload config file to server via scp
CLI (network-admin@Leaf1) > switch-config-export
Specify any of the following options: |
|
export-file switch-config export-file |
Exports the specified nvOS configuration file. |
upload-server upload-server-string |
Uploads the config file to server via SCP |
For example,
CLI (network-admin@Leaf1) > switch-config-export upgrade-location-mappings 0xb001a48=1 export-file switch-config-reset-backup.2019-10-15T02.12.40.tar.gz upload-server root@ursa-scale-leaf1:/root
server password:
Uploaded configuration to server at /root
CLI (network-admin@Leaf1) >
CLI (network-admin@aries-test-1) > switch-config-export export-file switch-config-reset-backup.2019-10-15T02.12.40.tar.gz upload-server root@ursa-scale-leaf1:/root
server password:
Uploaded configuration to server at /root
CLI (network-admin@aries-test-1) >