Technical data

24 ServerIron ADX Administration Guide
53-1002434-01
Using the USB port and USB flash drive
1
Use the following command to remove the first-level directory dirA from the USB drive
connected to the external USB port (usb1).
ServerIronADX# rd usb1/dirA
Syntax: rmdir <dir-full-path>
or
Syntax: rd <dir-full-path>
The rmdir or rd command removes a directory.
The <dir-full-path> parameter specifies the internal USB drive (usb0) or the external USB port
(usb1) on the ServerIron ADX connected to a USB drive and full path of the directory. For example,
the full path for a second-level directory “dir2” on usb0 could be usb0/dir1/dir2. You must use the
full path when creating a directory using “/” or “\” as directory delimiters.
Displaying contents of USB drive directories
Using the dir command, you can display the contents of a the root level of code flash, usb0, or usb1
or display contents of specific directories created in usb0 and usb1.
Following are examples of using this command:
Use the dir command without parameters, as in the following example, displays the contents of
the root level of code flash, sub0, and usb1.
ServerIronADX# dir
Use the following command to display the contents of the root level of usb0. You can use usb0
(internal USB drive) or usb1 (external USB port on the ServerIron ADX where a USB drive can
connect).
ServerIronADX# dir usb0
Use the following command to display the contents of “abcd” in the path “usb1/abcd”.
ServerIronADX# dir usb1/abcd
Use the following command to display the contents of “dir2” in the path “usb0/dir1/dir2”.
ServerIronADX# dir usb0/dir1/dir2
Syntax: dir <dir-full-path>
The dir command displays the contents of the specified directory.
The <dir-full-path> parameter specifies the internal USB drive (usb0) or the external USB port
(usb1) on the ServerIron ADX connected to a USB drive and full path of the directory. For example,
the full path for a second-level directory “dir2” on usb0 could be usb0/dir1/dir2. You must use the
full path when creating a directory using “/” or “\” as directory delimiters.
Copying files between flash and USB drives
Using the copy command, you can copy a file from code flash to a USB drive or from a USB drive
(internal or external) to code flash.
The following command copies the primary image file from flash to “my_file” in a second-level
directory (dir1) of usb1.