copy {running-config | startup-config}
Syntax
copy {running-config | startup-config} {cli | json} [vrf ]
Description
Copies the running configuration or the startup configuration to a remote file in either CLI or JSON format.
Command context
Manager (#
)
Parameters
-
{running-config | startup-config}
-
Selects whether the running configuration or the startup configuration is copied to a remote file.
-
-
Specifies the remote file using the syntax:
{tftp | sftp}://
[: ][;blocksize= ]/
-
{cli | json}
-
Selects the remote file format: P: CLI or JSON.
-
vrf
-
Specifies the name of a VRF. Default: default.
Authority
Administrators or local user group members with execution rights for this command.
Examples
Copying a running configuration to a remote file in CLI format:
switch#copy running-config tftp://192.168.1.10/runcli cli######################################################################### 100.0% Success
Copying a running configuration to a remote file in JSON format:
switch#copy running-config tftp://192.168.1.10/runjson json######################################################################### 100.0% Success
Copying a startup configuration to a remote file in CLI format:
switch#copy startup-config sftp://root@192.168.1.10/startcli cliroot@192.168.1.10's password: sftp> put /tmp/startcli startcli Uploading /tmp/startcli to /root/startcli Connected to 192.168.1.10. Success
Copying a startup configuration to a remote file in JSON format:
switch#copy startup-config sftp://root@192.168.1.10/startjson jsonroot@192.168.1.10's password: sftp>put /tmp/startjson startjson上传/ tmp / startjson /root/startjson Connected to 192.168.1.10. Success