Save a File to an External USB Device

Use the following procedure to save the configuration file or log file to an external USB device.

Caution

Caution

Always use the usb-stop command to safely unplug the USB drive from the USB slot.

Procedure

  1. Enter Privileged EXEC mode:

    enable

  2. Save the file to an external USB device:
    1. To save the configuration file to an external USB device, enter:

      save config file WORD<1–99>

    2. To save the log file to an external USB device, enter:

      save log file WORD<1–99>

Example

Switch:1#save config file /usb/test.cfg
CP-1: Save config to file /usb/test.cfg successful.
WARNING: Choice Primary Node Config file is "/intflash/soak.cfg".

Switch:1#
Switch:1#save log file /usb/test.log

Save log to file /usb/test.log successful.
Save log to file /usb/test.log successful.
Switch:1#

Variable definitions

The following table defines parameters for the save command.

Variable

Value

config file WORD<1–99>

Specifies the software configuration device and configuration file name in one of the following formats:

  • a.b.c.d:<file>

  • /intflash/<file>

  • /usb/<file>

The file name, including the directory structure, can include up to 99 characters.

log file WORD<1–99>

Specifies the software configuration device and log file name in one of the following formats:

  • a.b.c.d:<file>

  • /intflash/<file>

  • /usb/<file>

The file name, including the directory structure, can include up to 99 characters.