cp
ExtremeWare XOS 11.5 supports only the Summit X450 family of switches and the BlackDiamond 8800 series switch.
ExtremeWare XOS 11.5 Command Reference Guide
255
●
Policy files have the .pol file extension.
●
Core dump files have the .gz file extension. See “
Internal Memory and Core Dump Files
” for more
information.
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
y
to copy the file. Enter
n
to cancel this process and not copy the file.
If you enter
y
, the switch copies the file with the new name and keeps a backup of the original file with
the original name. After the switch copies the file, use the
ls
command to display a complete list of
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
ls
command:
...
-rw-r--r-- 1 root root 100980 Sep 23 09:16 test.cfg
-rw-r--r-- 1 root root 100980 Oct 13 08:47 test_rev2.cfg
...
If you enter
n
, the switch displays a message similar to the following:
Copy cancelled.
Case-sensitive Filenames.
Filenames are case-sensitive. In this example, you have a configuration file
named Test.cfg. If you attempt to copy the file with the incorrect case, for example test.cfg, the switch
displays a message similar to the following:
Error: cp: /config/test.cfg: No such file or directory
Since the switch is unable to locate test.cfg, the file is not copied.
Local Filename Character Restrictions.
This section provides information about the characters supported
by the switch for local filenames.
When specifying a local filename, the switch permits only the following characters:
●
Alphabetical letters, upper case and lower case (A-Z, a-z)
●
Numerals (0-9)
●
Period ( . )
●
Dash ( - )
●
Underscore ( _ )
When naming a local file, remember the requirements listed above.
Internal Memory and Core Dump Files.
Core dump files have a .gz file extension. The filename format is:
core.<process-name.pid>.gz
where
process-name
indicates the name of the process that failed and
pid
is the numerical identifier of that process. If you have a modular switch and save core dump files to
the external memory card, the filename also includes the affected MSM: MSM-A or MSM-B.