Technical data

28 ServerIron ADX Administration Guide
53-1002434-01
Using the USB port and USB flash drive
1
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).
tftp specifies that the file resides on a tftp server.
The <src-full-path> variable specifies the full directory path and name of the file that you want to
copy to the USB drive.
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 <dest-file> parameter specifies the destination file name.
Deleting files on USB drives and code flash
Use the delete or del commands to delete specified files from either the internal USB drive (usb0)
or a USB drive attached to the external USB port (usb1).
Following are examples of deleting files on a USB drive and in code flash:
Use the following command to delete the file named “asm12000.bin“from the root level of a
USB drive attached to the USB (usb1) port of the ServerIron ADX.
ServerIronADX# delete usb1/asm12000.bin
Use the following command to delete the file name “asm1000.bin” from the first-level directory
“dir1” on the internal USB drive.
ServerIronADX# delete usb0/dir1/asm12000.bin
Use the following command to delete a file named “primary” located in code flash.
ServerIronADX# delete primary
Use the following command to delete the file named “filexxx.bin” from the second-level
directory “dir2” on the external drive attached to the USB port (usb1) on the ServerIron ADX.
ServerIronADX# delete usb1/dir1/dir2/filexxx.bin
Syntax: delete <file-full-path>
or
Syntax: del <file-full-path>
The delete or del command deletes the specified file.
The <file-full-path> parameter specifies the full directory path and name of the file that you want to
delete. The <file-full-path> must start with usb0 or usb1, otherwise the file is assumed to be in
code flash.
Renaming files on USB drives and code flash
Use the rename command to rename a specific file on either the internal USB drive (usb0), a USB
drive attached to the external USB port (usb1), or in code flash.
Following are examples of renaming files on USB drives or in code flash:
Use the following command to rename the file “filexxx.bin“in the first-level directory”dir1” of
the internal USB drive (usb0) to the name “fileyyy.bin“.