Technical data

26 ServerIron ADX Administration Guide
53-1002434-01
Using the USB port and USB flash drive
1
Use the following command to copy the file named “filexxx.bin” on the root level of the internal
USB drive (usb0) to a file of the same name on the first-level directory “dir1” of a USB drive
attached to the external USB port (usb1) on a ServerIron ADX switch.
ServerIronADX# copy usb0 usb1 filexxx.bin /dir1/filexxx.bin
Use the following command to copy the file named “filexxx.bin” on the second-level directory of
a USB drive attached to the USB port (usb1) on a ServerIron ADX switch to a file named
“myfile.bin” on the first-level directory of the same USB drive.
ServerIronADX# copy usb1 usb1 /dir1/dir2/filexxx.bin /dir1/myfile.bin
Syntax: copy <source-usb> <destination-usb> <src-full-path> <dest-full-path>
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).
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).
The <src-full-path> variable specifies the full directory path and name of the file that you want to
copy from the USB drive.
The <dest-full-path> variable specifies the full directory path and name of the file that you are
copying to on the USB drive.
Copying files between an tftp server, flash, and USB drives
Use the copy command to copy files between a Trivial File Transfer Protocol (tftp) server, a USB
drive (usb0 or usb1), and code flash (flash). You must obtain the IP address of the tftp server to use
the copy command for this situations,
Example 1: Use the following command to copy the file “filexxx.bin” from an tftp server with
address 1.1.1.1 to the “primary” code image in flash.
ServerIronADX# copy tftp flash 1.1.1.1 filexxx.bin primary
Syntax: copy tftp flash <tftp-server-ip-addr> <src-file> primary|secondary
The copy command copies the specified file.
tftp specifies that the file resides on the tftp server.
Flash specifies that the file resides on ServerIron ADX code flash.
The <tftp-server-ip-addr> parameter is the IP address of the tftp server. Note that this can be an
IPV6 address (X:X::X:X).
The <src-file> parameter specifies the source file name.
Copying to flash is restricted and allows image file names “primary” and “secondary”. All files are
located at the root level in code flash.
Example 2: Use the following command to copy the “primary” code image from flash to a file
named “file_abc” on an tftp server with address 1.1.1.1.
ServerIronADX# copy flash tftp 1.1.1.1 file_abc primary