This command shuts down (unmounts) the specified CPM(s).
Use the no shutdown [active] [standby] command to enable one or both CPM.
Use the no shutdown [cflash-id] command to enable a compact flash (cf1:, cf2:, or cf3:) on the CPM/CFM/CCM. The no shutdown command can be issued for a specific slot when no compact flash is present. When a flash card is installed in the slot, the card will be activated upon detection.
In redundant systems, use the no shutdown command on cf3: on both SF/CPMs or CCMs in order to facilitate synchronization. See the synchronize command.
NOTE: The shutdown command must be issued prior to removing a flash card. If no parameters are specified, then the drive referred to by the current working directory will be shut down.
LED Status Indicators
Table 26 lists the possible states for the compact flash and their LED status indicators.
State | Description |
Operational | If a compact flash is present in a drive and operational (no shutdown), the respective LED is lit green. The LED flickers when the compact flash is accessed. NOTE: Do not remove the compact flash during a read/write operation. |
Flash defective | If a compact flash is defective, the respective LED blinks amber to reflect the error condition and a trap is raised. |
Flash drive shut down | When the compact flash drive is shut down and a compact flash present, the LED is lit amber. In this state, the compact flash can be ejected. |
No compact flash present, drive shut down | If no compact flash is present and the drive is shut down the LED is unlit. |
No compact flash present, drive enabled | If no compact flash is present and the drive is not shut down the LED is unlit. |
Ejecting a compact flash | The compact flash drive should be shut down before ejecting a compact flash card. The LED should turn to solid (not blinking) amber. This is the only mode to safely remove the flash card. If a compact flash drive is not shut down before a compact flash is ejected, the LED blinks amber for approximately 5 seconds before shutting off. |
The shutdown or no shutdown state is not saved in the configuration file. Following a reboot all compact flash drives are in their default state.
no shutdown — compact flash device administratively enabled
When both active and standby keywords are specified, then all drives on both CPM are shutdown.
This command sets or clears/resets the read-only attribute for a file in the local file system. To list all files and their current attributes enter attrib or attrib x where x is either the filename or a wildcard (*).
When an attrib command is entered to list a specific file or all files in a directory, the file’s attributes are displayed with or without an “R” preceding the filename. The “R” implies that the +r is set and that the file is read-only. Files without the “R” designation implies that the -r is set and that the file is read-write-all. For example:
local-url | remote-url | 255 chars max |
local-url | [cflash-id/][file-path] |
remote-url | [ftp://login:pswd@remote-locn/][file-path] |
cf1:,cf1-A:,cf1-B:,cf2:,cf2-A:,cf2-B:,cf3:,cf3-A:,cf3-B: |
This command displays or changes the current working directory in the local file system.
local-url | remote-url | 255 chars max |
local-url | [cflash-id/][file-path] |
remote-url | [ftp://login:pswd@remote-locn/][file-path] |
cf1:,cf1-A:,cf1-B:,cf2:,cf2-A:,cf2-B:,cf3:,cf3-A:,cf3-B: |
This command copies a file or all files in a directory from a source URL to a destination URL. At least one of the specified URLs should be a local URL. The optional wildcard (*) can be used to copy multiple files that share a common (partial) prefix and/or (partial) suffix. When a file is copied to a destination with the same file name, the original file is overwritten by the new file specified in the operation. The following prompt appears if the destination file already exists:
“Overwrite destination file (y/n)?”
For example:
To copy a file named srcfile in a directory called test on cf2 in slot B to a file called destfile in a directory called production on cf1 in slot A, the syntax is:
sr1>file cf2:\ # copy cf2-B/test/srcfile cf1-A/production/destfile
To FTP a file named 121201.cfg in directory mydir stored on cf1 in slot A to a network FTP server with IP address 131.12.31.79 in a directory called backup with a destination file name of 121201.cfg, the FTP syntax is:
copy cf1-A/mydir/121201.cfg 131.12.31.79/backup/121201.cfg
This command deletes the specified file.
The optional wildcard “*” can be used to delete multiple files that share a common (partial) prefix and/or (partial) suffix. When the wildcard is entered, the following prompt displays for each file that matches the wildcard:
“Delete file <filename> (y/n)?”
local-url | remote-url | 255 chars max |
local-url | [cflash-id/][file-path] |
remote-url | [ftp://login:pswd@remote-locn/][file-path] |
cf1:,cf1-A:,cf1-B:,cf2:,cf2-A:,cf2-B:,cf3:,cf3-A:,cf3-B: |
This command displays a list of files and subdirectories in a directory.
Use the file-url with the optional wildcard “*” to reduce the number of files to list.
The context to enter and perform file system operations. When entering the file context, the prompt changes to reflect the present working directory. Navigating the file system with the cd .. command results in a changed prompt.
The exit all command leaves the file system/file operation context and returns to the <root> CLI context. The state of the present working directory is maintained for the CLI session. Entering the file command returns the cursor to the working directory where the exit command was issued.
This command formats the compact flash. The compact flash must be shut down before starting the format.
This command creates a new directory in a file system.
Directories can only be created one level at a time.
This command moves a local file, system file, or a directory. If the target already exists, the command fails and an error message displays.
The following prompt appears if the destination file already exists:
“Overwrite destination file (y/n)?”
local-url | remote-url | 255 chars max |
local-url | [cflash-id/][file-path] |
remote-url | [ftp://login:pswd@remote-locn/][file-path] |
cf1:,cf1-A:,cf1-B:,cf2:,cf2-A:,cf2-B:,cf3:,cf3-A:,cf3-B: |
local-url | remote-url | 255 chars max |
local-url | [cflash-id/][file-path] |
remote-url | [ftp://login:pswd@remote-locn/][file-path] |
cf1:,cf1-A:,cf1-B:,cf2:,cf2-A:,cf2-B:,cf3:,cf3-A:,cf3-B: |
file move force executes the command without displaying a user prompt message.
If the directory is empty, the rd command is used to remove it. The force option executes the command without prompting the user to confirm the action.
If the directory contains files and/or subdirectories, the rf parameter must be used to remove the directory.
Example:
local-url | remote-url | |
local-url | [cflash-id/][file-path] 200 chars max, including cflash-id |
directory length 99 chars max each | |
remote-url | [ftp://login:pswd@remote-locn/][file-path] |
247 chars max | |
directory length 99 chars max each | |
remote-locn | [hostname | ipv4-address | [ipv6-address]] |
ipv4-address | a.b.c.d |
ipv6-address | x:x:x:x:x:x:x:x[-interface] |
x:x:x:x:x:x:d.d.d.d[-interface] | |
x - [0..FFFF]H | |
d - [0..255]D | |
interface - 32 chars max, for link local addresses | |
cflash-id | cf1:|cf1-A:|cf1-B:|cf2:|cf2-A:|cf2-B:|cf3:|cf3-A:|cf3-B: |
This command checks a compact flash device for errors and repairs any errors found.
This command copies a local file to a remote host file system. It uses ssh for data transfer, and uses the same authentication and provides the same security as ssh. The following prompt appears:
“Are you sure (y/n)?” The destination must specify a user and a host.
destination-file-* : user@hostname:file-path - [255 chars max] | |
user | 32 chars max |
hostname | [dns-name | ipv4-address | [ipv6-address]] |
ipv4-address | a.b.c.d |
ipv6-address | x:x:x:x:x:x:x:x[-interface] |
x:x:x:x:x:x:d.d.d.d[-interface] | |
x - [0..FFFF]H | |
d - [0..255]D | |
interface - 32 chars max, mandatory for link local addresses | |
dns-name | 128 chars max |
file-path | 200 chars max |
router-name | Base, management |
service-id | 1 to 2147483647 |
Displays the contents of a text file.
local-url | remote-url | |
local-url | [cflash-id/][file-path] |
200 chars max, including cflash-id | |
directory length 99 chars max each | |
remote-url | [{ftp://|tftp://}login:pswd@remote-locn/ [file-path] |
255 chars max | |
directory length 99 chars max each | |
remote-locn | [hostname | ipv4-address | ipv6-address] |
ipv4-address | a.b.c.d |
ipv6-address | x:x:x:x:x:x:x:x[-interface] |
x:x:x:x:x:x:d.d.d.d[-interface] | |
x - [0..FFFF]H | |
d - [0..255]D | |
interface - 32 chars max, for link local addresses | |
cflash-id | cf1:, cf1-A:, cf1-B: |
This command displays the version of an SR OS *.tim or iom.tim file. The iom.tim file is used for the XCM on the 7950 XRS.
local-url | remote-url | 255 characters maximum |
local-url | [cflash-id/][file-path] |
remote-url | [{ftp://|tftp://}login:pswd@remote-locn/][file-path] |
cflash-id | cf1:|cf1-A:|cf1-B:|cf2:|cf2-A:|cf2-B:|cf3:|cf3-A:|cf3-B: |
Edit files using the vi editor. Refer to VI Editor.