Technical data
ServerIron ADX Administration Guide 25
53-1002434-01
Using the USB port and USB flash drive
1
copy flash usb1 primary /abc/dir1/my_file
Syntax: copy flash <destination-usb> primary|secondary <dest-full-path>
The copy command copies the specified file.
Flash specifies that the file resides in ServerIron ADX code flash.
The <destination-usb> variable specifies the USB drive that the file will be copied to. The value can
be either usb0 (the internal USB drive) or usb1 (a USB drive attached to the USB port on the
ServerIron ADX).
Use primary or secondary when copying from a USB drive to flash. Copying to flash is restricted and
allows image file names “primary” and “secondary”. All files are located at the root level in code
flash.
The <dest-full-path> variable specifies the full directory path and name of the file that you are
copying to on the USB drive.
Following are examples of copying files from a USB drive to code flash:
• Use the following command to copy the file named “asm12000.bin” from the root-level of a
drive attached to the USB port (usb1) on the ServerIron ADX to the secondary code file in code
flash on the ServerIron ADX switch.
ServerIronADX# copy usb1 flash asm12000.bin secondary
• Use the following command to copy the file named “filexxx.bin” from the second-level directory
“dir2” on a USB drive attached to the USB port (usb1) on the ServerIron ADX to the secondary
code file in code flash on the ServerIron ADX.
ServerIronADX# copy usb1 flash /dir1/dir2/filexxx.bin secondary
Syntax: copy <source-usb> flash <src-full-path> primary|secondary
The copy command copies the specified file.
The <source-usb> variable specifies the USB drive that the file will be copied from. The value can
be either usb0 (the internal USB drive) or usb1 (a USB drive attached to the USB port on the
ServerIron ADX).
Flash specifies that the file resides on ServerIron ADX code flash.
The <src-full-path> variable specifies the full directory path and name of the file that you want to
copy from the USB drive.
Use primary or secondary when copying from a USB drive to flash. Copying to flash is restricted and
allows image file names “primary” and “secondary”. All files are located at the root level in code
flash.
Copying files between USB drives
Following are examples of using the copy command to copy files from a USB drive to another USB
drive and copying files on a USB drive to another file on the same USB drive.
• Use the following command to copy the file named “asm12000.bin” on the root level of the
Internal USB drive (usb0) to a file of the same name on the root level of a USB drive attached to
the USB port (usb1) on a ServerIron ADX switch.
ServerIronADX# copy usb0 usb1 asm12000.bin asm12000.bin










