复制{running-config | startup-config}

Syntax

复制{running-config | startup-config}{cli | json}

描述

Copies the running configuration or a startup configuration to a USB drive.

Command context

Manager (#)

Parameters

{running-config | startup-config}

Selects the running configuration or the startup configuration to be copied to the switch USB drive.

Specifies a remote file with the following syntax:usb:/

{cli | json}

Selects the format of the remote file: CLI or JSON.

Authority

Administrators or local user group members with execution rights for this command.

Usage

The switch supports JSON and CLI file formats when copying the running or starting configuration to the USB drive. The USB drive must be formatted with the FAT file system.

The USB drive must be enabled and mounted with the following commands:

switch(config)#usbswitch(config)#endswitch#usb mount

Examples

Copying a running configuration to a file namedrunCLIon the USB drive:

switch#copy running-config usb:/runCLI cliSuccess

Copying a startup configuration to a file namedstartCLIon the USB drive:

switch#copy startup-config usb:/startCLI cliSuccess