Command Reference File System Commands
Command
Mode
Privileged EXEC mode.
Usage Guide
This command is used to copy the files among various storage media in the local and to transmit the
files between the network servers:
The following table lists the URL prefix for the specified file system:
Prefix Description
flash:
Flash storage media. This prefix can be used in all devices. The default is
flash if the prefix is not used for the URL. In general, the bootstrap main
program is stored in the flash.
tftp: TFTP network server
xmodem: Use the xmodem protocol to transmit the file to the network device.
slave: Flash on the slave board from the chassis device.
usb0: The first USB device.
usb1: The second USB device.
sd0: The first SD card.
sw1-m1-disk0: Flash memory of the management board in the M1 slot of the chassis with
switch id 1, in VSU mode.
sw1-m2-disk0: Flash memory of the management board in the M2 slot of the chassis with
switch id 1, in VSU mode.
sw2-m1-disk0: Flash memory of the management board in the M1 slot of the chassis with
switch id 2, in VSU mode.
sw2-m2-disk0: Flash memory of the management board in the M1 slot of the chassis with
switch id 2, in VSU mode.
This command does not support the wildcard.
Without the specified URL prefix configured, the current file system is used by default.
Configuration
Examples
Example 1: Download the file from the TFTP server:
Ruijie# copy tftp://192.168.201.54/rgos.bin flash:/
Example 2: Upload the file to the TFTP server:
Ruijie# copy flash:/rgos.bin tftp://192.168.201.54/rgos.bin
Example 3: Use the xmodem to download the file:
Ruijie# copy xmodem: flash:/config.text
Example 4: Copy the file to the U disk:
Ruijie#copy flash:/config.text usb0:/config.text
Example 5: Copy the file to the slave management board:
Ruijie#copy flash:/config.text slave:/config.text