switch
This command is used to login remotely to another switch in the fabric.
Syntax switch switch-name name-string id switch-id command
switch-name name-string |
Specify the name of the switch in the fabric. |
id switch-id |
Specify the identifier of the switch. |
command |
Specify the command and arguments to execute on the remote switch. |
Defaults None.
Access CLI
History Command introduced in nvOS Version 1.2.1.
Usage The Command Line Interface (CLI) can be used to login remotely from any switch to another switch in the fabric. Use this command to remotely log into another switch and execute commands on it.
Examples To log into switch-ops from switch-eng, use the following command:
CLI (network-admin@switch-eng)> switch name switch-ops
To log into switch-ops and execute the command node-info, use the following command:
CLI (network-admin@switch-eng) > switch name switch-ops node-info
Name: switch-ops
fab-name: pn-fab
mgmt-ip: 10.10.10.7/16
mgmt-vlan: 0
out-port: 0
version: 1.2.2633,pn-nvos-b144a-kvm
state: enabled
ports: 72
switch-config-copy-to-import
This command is used to create a configuration file to import onto another switch.
Syntax switch-config-copy-to-import export-file switch-config name-string
export-file switch-config name-string |
Specify a name for the exported configuration file. |
Defaults None.
Access CLI
History Command introduced in nvOS Version 1.2.1.
Usage Use this command to copy a configuration and export it to another switch.
Examples To copy the configuration, use the following command:
CLI network-admin@switch > switch-config-copy-to-import export-file conf080113
switch-config-export
This command is used to create a configuration file to import onto another switch.
Syntax switch-config-copy-export
Specify any of the following options: |
|
export-file name-string |
Specify a name for the exported configuration file. |
upgrade-location-mappings upgrade-location-mappings- |
Specify hostid=locationid comma separated list to upgrade the old configuration. |
upload-server upload-server-string |
Specify if you want to upload the configuration file to a server using Secure Copy Protocol (SCP). |
Defaults None.
Access CLI
History .
Version 1.2 |
Command introduced. |
Version 2.6.0 |
The parameters, upgrade-location-mappings, added. |
Version 3.0.0 |
The parameters, upload-server and server-password added to support SCP. |
Version 3.1.0 |
The parameter, server-password, deprecated. |
Usage Use this command to export a configuration file.
Examples To export a file, use the following command:
CLI network-admin@switch > switch-config-copy-export export-file config800113
switch-config-import
This command is used to import a configuration file.
Syntax switch-config-import
import-file name-string |
Specify a name for the exported configuration file. |
Specify any of the following options: |
|
apply-system-config| |
Specify to apply the imported configuration or ignore the imported file and keep the current configuration. |
upgrade-location-mappings upgrade-location-mappings-string |
Specify hostid=locationid comma separated list to upgrade old config. |
Defaults None.
Access CLI
History Command introduced in nvOS Version 1.2.1.
Usage Use this command to import a configuration file.
Examples To import a copy of the existing configuration, use this command:
CLI network-admin@switch > switch-config-import import-file switch10
switch-config-reset
This command is used to reset the configuration on a switch.
Syntax switch-config-reset
Defaults None.
Access CLI
History Command introduced in Version 2.0.1.
Usage Use this command to reset the configuration on the switch.
Examples To reset the configuration, use the following command:
CLI network-admin@switch > switch-config-reset
Caution!Using this command resets the configuration back to default settings.
switch-config-show
This command is used to display configuration information about a switch.
Syntax switch-config-show
import-file name-string |
Specifies the name of the imported configuration file. |
export-file name-string |
Specifies the name of the exported configuration file. |
replace-switch| |
Specifies if replacing a current switch. |
upgrade-location-mappings upgrade-location-mappings-string |
Specify hostid=locationid comma separated list to upgrade old config. |
upload-server upload-server-string |
Specify if you want to upload the configuration file to a server using Secure Copy Protocol (SCP). |
Defaults None.
Access CLI
History
Version 1.2 |
Command introduced. |
Version 2.6.0 |
The parameters, upgrade-location-mappings, added. |
Version 3.0.0 |
The parameters, upload-server and server-password added to support SCP. |
Version 3.1.0 |
The parameter, server-password, deprecated. |
Usage Use this command to display information about import and export file settings on the switch.
Examples To display the configuration, use the following command:
CLI network-admin@switch > switch-config-show
switch export-file
-------- -----------------------------------------------------
pubdev01 switch-config-reset-backup.2014-10-22T13.14.53.tar.gz
pubdev01 test.2014-02-24T09.06.51.tar.gz
pubdev01 switch-config-reset-backup.2014-06-30T12.23.10.tar.gz
pubdev01 ext13base.2013-12-11T06.50.40.tar.gz
pubdev02 switch-config-reset-backup.2014-06-30T13.11.43.tar.gz
pubdev02 switch-config-reset-backup.2014-10-22T13.39.18.tar.gz
pubdev02 mantis-switch-config.2013-10-10T10.13.23.tar.gz
pubdev02 switch-config-reset-backup.2015-01-21T10.55.14.tar.gz
pubdev03 switch-config-reset-backup.2014-12-08T16.35.58.tar.gz
pubdev03 switch-config-reset-backup.2014-12-08T17.30.42.tar.gz