Export a file from the switch to a server

You can upload (export) configuration (ASCII or log ASCII) and other types of files from the switch to a TFTP, SFTP, SCP, or FTP server on the network.

To export a file from the switch to a server:

  1. Open a web browser and log in to the switch. For more information, see Log in to the main UI with a known IP address.
    The System Information page displays.
  2. Select Maintenance > Export > File Export.

    The File Export page displays.

  3. From the File Type menu, select the type of file that must be exported:
    • Text Configuration: A text-based configuration file enables you to edit a configured text file (startup-config) offline as needed. The most common usage of text-based configuration is to upload a working configuration from a device, edit it offline to personalize it for another similar device (for example, change the device name or IP address), and download it to that device. This is the default setting.

    • Error Log: The switch error persistent log, also referred to as the event log.

    • Buffered Log: The system buffered (in-memory) log.

    • Trap Log: The trap log with the switch trap records.

    • Script File: The script file that you must specify in the Local File Name field.

    • CLI Banner: The CLI banner file.

    • Tech Support: The tech support file is a text-based file that contains a variety of hardware, software, and configuration information that can assist in device and network troubleshooting.

    • Crash Logs: The switch crash logs, if any are available.

    • Backup Configuration: The backup configuration file is a text-based file.

    • CPU Packets Capture File: The CPU packets capture file with the captured and stored CPU packets.

    • Factory Default Configuration: The factory default configuration file is a text-based file with the stored factory default configuration.

  4. From the Transfer Mode menu, specify the protocol that must be used to transfer the file to the server:
    • TFTP: Trivial File Transfer Protocol.

    • SFTP: Secure File Transfer Protocol. This selection requires you to specify a user name and password.

    • SCP: Secure Copy Protocol. This selection requires you to specify a user name and password.

    • FTP: File Transfer Protocol. This selection requires you to specify a user name and password.

  5. From the Server Address Type menu, select the format for the Server Address field:
    • IPv4: Indicates that the server address is an IPv4 address in dotted-decimal format. This is the default setting.

    • IPv6: Indicates that the server address is an IPv6 address in hexadecimal numbers using 16-bit values between colons.

    • DNS: Indicates that the server address is a host name.

  6. In the Server Address field, enter the IP address of the server in accordance with the format indicated by the server address type.

    The default is the IPv4 address 0.0.0.0.

  7. In the Remote File Path field, specify the path on the server where you want to save the file.

    The path name can include alphabetic, numeric, forward slash, dot, or underscore characters only. You can enter up to 160 characters.

  8. In the Remote File Name field, specify a destination file name for the file to be exported.

    You can enter up to 32 characters.

  9. If you select Script File from the File Type menu, specify the name of the script file in the Local File Name field.
  10. If you select SFTP, SCP, or FTP from Transfer Mode menu, specify the following settings:
    • User Name: Specify the user name for remote login to the server.

    • Password: Specify the password for remote login to the server.

  11. Click the Apply button.

    The file is exported (uploaded) to the server. The page displays information about the progress of the file transfer.