Commands for Managing the ExtremeWare XOS Software
cp
cp {memorycard} <old-name> {memorycard} <new-name>
Description
Copies an existing configuration or policy file in the system.
Syntax Description
memorycard
old-name
new-name
Default
N/A.
Usage Guidelines
Use this command 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.
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.
When you copy a file on the switch, the switch displays a message similar to the following:
Copy config test.cfg to config test1.cfg on switch? (y/n)
Enter
to copy the file. Enter
y
If you enter
, the switch copies the file with the new name and keeps a backup of the original file with
y
the original name. After the switch copies the file, use the
files. In this example, the switch displays the original file named test.cfg and the copied file named
test_rev2.cfg.
The following is sample output from the
...
-rw-r--r--
-rw-r--r--
...
If you enter
n
Copy cancelled.
240
Specifies the removable external compact flash memory card.
NOTE: This parameter is available only on modular switches.
Specifies the name of the configuration or policy file that you want to copy.
Specifies the name of the copied configuration or policy file.
to cancel this process and not copy the file.
n
1 root
root
1 root
root
, the switch displays a message similar to the following:
command to display a complete list of
ls
command:
ls
100980 Sep 23 09:16 test.cfg
100980 Oct 13 08:47 test_rev2.cfg
ExtremeWare XOS 11.3 Command Reference
Need help?
Do you have a question about the ExtremeWare XOS and is the answer not in the manual?
Questions and answers