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@switch-1) > 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@switch-1) > switch-config-export


export-file               export a nvOS config file

upgrade-location-mappings hostid=locationid comma separated list to upgrade old config.

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.

upgrade-location-mappings
upgrade-location-mappings-string

Specify the upgrade location mappings by specifying the hostid=locationid comma separated list to upgrade old configuration file.

upload-server upload-server-string

Uploads the  config file to server via SCP