Displaying Files
To display a list of the files stored on your card, including configuration and policy files, use the
following command:
ls {memorycard}
Output from this command includes the file size, date and time the file was last modified, and the file
name.
Moving or Renaming Files
To move or rename an existing configuration or policy file in the system, use the following command:
mv {memorycard} <old-name> {memorycard} <new-name>
Where the following is true:
—Specifies the removable external compact flash memory card
●
memorycard
—Specifies the current name of the configuration or policy file
●
old-name
—Specifies the new name of the configuration or policy file
●
new-name
Configuration files have a .cfg file extension; policy files have a .pol file extension.
When you rename a file, make sure the renamed file uses the same file extension as the original file. If
you change the file extensions, the file may be unrecognized by the system. For example, if you have an
existing configuration file named test.cfg, the new filename must include the .cfg file extension.
Copying Files
The copy function allows you to make a copy of an existing file before you alter or edit the file. By
making a copy, you can easily go back to the original file if needed.
To copy an existing configuration or policy file on your card, use the following command:
cp {memorycard} <old-name> {memorycard} <new-name>
Where the following is true:
—Specifies the removable external compact flash memory card
●
memorycard
—Specifies the name of the configuration or policy file that you want to copy
●
old-name
—Specifies the name of the copied configuration or policy file
●
new-name
Configuration files have a .cfg file extension; policy files have a .pol file extension.
When you copy a configuration or policy file from the system, make sure you specify the appropriate
file extension. For example, if you want to copy a policy file, specify the filename and .pol.
Deleting Files
To delete a configuration or policy file from your card, use the following command:
rm {memorycard} <file-name>
ExtremeWare XOS 11.1 Concepts Guide
Saving Debug Information to the External Memory Card
445