[no
] shutdown
[active
] [standby
]
[no
] shutdown
[cflash-id]
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 SF/CPM card. 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 in order to facilitate synchronization. See the
synchronize command on
page 386.
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.
NOTE: Do not remove the compact flash during a read/write operation.
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
If active is selected, then all drives on the active CPM are shutdown or enabled.
If standby is selected, then all drives on the standby CPM are shutdown or enabled.
Note: When both
active and
standby keywords are specified, then all drives on both CPM are shutdown.
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:
ALA-1>file cf3:\ # attrib
cf3:\bootlog.txt
cf3:\bof.cfg
cf3:\boot.ldr
cf3:\sr1.cfg
cf3:\test
cf3:\bootlog_prev.txt
cf3:\BOF.SAV
Values
|
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:
|
Syntax: [local-url |
remote-url (255 chars max)
local-url - [
cflash-id/][
file-path]
remote-url - [{ftp://|tftp://}
login:
pswd@
remote-locn/][
file-path]
cf1,cf1-A:,cf1-B:,cf2:,cf2-A:,cf2-B:,cf3:,cf3-A:,cf3-B:
copy source-file-url dest-file-url [force
]
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
file copy force executes the command without displaying a user prompt message.
Values
|
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 delete * force deletes all the wildcard matching files without displaying a user prompt message.
dir [file-url] [sort-order { d | n | s}] [reverse]
Use the file-url with the optional wildcard (*) to reduce the number of files to list.
A:cses-E12>file cf3:\ # dir
- dir [<file-url>] [sort-order { d | n | s}] [reverse]
<file-url> : <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>]
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:|cf2:|cf2-A:|
cf2-B:|cf3:|cf3-A:|cf3-B:
< d | n | s> : Sort order: d - date, n - name, s - size
<reverse> : keyword - reverse order
A:cses-E12>file cf3:\ # dir
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.
cf1:, cf1-A:,cf1-B:,cf2:,cf2-A:,cf2-B:,cf3:,cf3-A:,cf3-B:reliable
Values
|
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:
|
move old-file-url new-file-url [force
]
Values
|
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:
|
Values
|
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.
The rd command is used to delete a directory.
If a directory has files and no sub-directories, the force option must be used to force delete the directory and files it contains.
If a directory has sub-directories, then the force option will fail and the
rf parameter should be used instead to force delete that directory including the sub-directories.
A:nE1>file cf1:\ # rd alcateltest
Are you sure (y/n)? y
Deleting directory cf1:\alcateltest ..MINOR: CLI Cannot delete cf1:\alcateltest.
A:nE1>file cf1:\ # rd alcateltest force
Deleting directory cf1:\alcateltest .MINOR: CLI Cannot delete cf1:\alcateltest.
A:nE1>file cf1:\ # rd hussein rf
Deleting all subdirectories and files in specified directory. y/n ?y
Deleting directory cf1:\hussein\hussein1 ..OK
Deleting directory cf1:\alcateltest .OK
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:rf
scp local-file-url destination-file-url [router
router-instance] [force
]
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:
Values
|
[cflash-id/][ file-path]: Up to 256 characters.
|
Values
|
router-name: Base , management service-id: 1 — 2147483647
|
file scp local-file-url destination-file-url [
router]
force executes the command without displaying a user prompt message.
A:Redundancy>file cf3:\ # version ftp://test:1234@xxx.xxx.xxx.xx/usr/global/images/6.1/R4/cpm.tim
TiMOS-C-6.1.R4 for 7750
Thu Oct 30 14:21:09 PDT 2008 by builder in /rel6.1/b1/R4/panos/main
A:Redundancy>file cf3:\ # version check ftp://test:1234@xxx.xxx.xxx.xx/usr/global/images/6.1/R4/cpm.tim
TiMOS-C-6.1.R4 for 7750
Thu Oct 30 14:21:09 PDT 2008 by builder in /rel6.1/b1/R4/panos/main
Validation successful
A:Redundancy>file cf3:\ #
Values
|
[cflash-id>/] file-path
cflash-id: cf1:, cf2:, cf3:
|