file commands

See “File management” in the 7705 SAR Gen 2 Basic System Configuration Guide for more information.

file 
change-directory 
router-instance string
[url] (sat-url | cflash-url | string-not-all-spaces | ftp-url | sftp-url)
checksum 
router-instance string
[type] keyword
[url] (sat-url | cflash-url | string-not-all-spaces | ftp-tftp-url | sftp-url)
copy 
client-tls-profile string
[destination-url] (sat-url | cflash-url | string-not-all-spaces | ftp-tftp-url | http-url-loose | scp-url | sftp-url)
direct-http 
force 
proxy http-url
recursive 
router-instance string
[source-url] (sat-url | cflash-url | string-not-all-spaces | ftp-tftp-url | http-url-loose | sftp-url)
disable 
active 
cflash-id cflash-id
standby 
edit 
[url] (sat-url | cflash-url | string-not-all-spaces)
enable 
active 
cflash-id cflash-id
standby 
format 
[cflash-id] cflash-id
list 
reverse 
router-instance string
[sort-order] keyword
[url] (sat-url | cflash-url | string-not-all-spaces | ftp-url | sftp-url)
make-directory 
router-instance string
[url] (sat-url | cflash-url | string-not-all-spaces | ftp-url | sftp-url)
move 
client-tls-profile string
[destination-url] (sat-url | cflash-url | string-not-all-spaces | ftp-url | http-url-loose | sftp-url)
direct-http 
force 
proxy http-url
router-instance string
[source-url] (sat-url | cflash-url | string-not-all-spaces | ftp-url | http-url-loose | sftp-url)
permission 
[attribute] keyword
[url] (sat-url | cflash-url | string-not-all-spaces)
remove 
client-tls-profile string
direct-http 
force 
proxy http-url
router-instance string
[url] (sat-url | cflash-url | string-not-all-spaces | ftp-url | http-url-loose | sftp-url)
remove-directory 
force 
recursive 
router-instance string
[url] (sat-url | cflash-url | string-not-all-spaces | ftp-url | sftp-url)
repair 
[cflash-id] cflash-id
secure-erase 
[cflash-id] cflash-id
show 
client-tls-profile string
direct-http 
proxy http-url
router-instance string
[url] (sat-url | cflash-url | string-not-all-spaces | ftp-tftp-url | http-url-loose | sftp-url)
unzip 
create-destination 
[destination-url] (sat-url | cflash-url | string-not-all-spaces)
force 
list 
router-instance string
[source-url] (sat-url | cflash-url | string-not-all-spaces | ftp-tftp-url | http-url-loose | sftp-url)
version 
[url] (sat-url | cflash-url | string-not-all-spaces | ftp-tftp-url)

file command descriptions

file

Synopsis Perform file operations
Context file
Tree file

Description

Commands in this context execute file management operations.

Introduced25.3.R2

Platforms

7705 SAR-1

change-directory

Synopsis Change the working directory
Context file change-directory
Treechange-directory
Introduced25.3.R2

Platforms

7705 SAR-1

[url] (sat-url | cflash-url | string-not-all-spaces | ftp-url | sftp-url)
Synopsis New working directory URL
Context file change-directory [url] (sat-url | cflash-url | string-not-all-spaces | ftp-url | sftp-url)
Tree[url]

String length

1 to 200 (sat-url, cflash-url, string-not-all-spaces)

1 to 180 (ftp-url, sftp-url)

Default.
Introduced 25.3.R2

Platforms

7705 SAR-1

checksum

Synopsis Compute and display checksums
Context file checksum
Treechecksum

Description

This command computes and displays an image file or a checksum for a file.

Introduced25.3.R2

Platforms

7705 SAR-1

[type] keyword
Synopsis Checksum option type
Context file checksum [type] keyword
Tree[type]
Optionsimage, md5, sha256

Notes

This element is mandatory.

Introduced25.3.R2

Platforms

7705 SAR-1

[url] (sat-url | cflash-url | string-not-all-spaces | ftp-tftp-url | sftp-url)
Synopsis File URL
Contextfile checksum [url] (sat-url | cflash-url | string-not-all-spaces | ftp-tftp-url | sftp-url)
Tree[url]

String length

1 to 200 (sat-url, cflash-url, string-not-all-spaces)

1 to 199 (ftp-tftp-url)

1 to 180 (sftp-url)

Notes

This element is mandatory.

Introduced25.3.R2

Platforms

7705 SAR-1

copy

Synopsis Copy files
Contextfile copy
Treecopy
Introduced25.3.R2

Platforms

7705 SAR-1

[destination-url] (sat-url | cflash-url | string-not-all-spaces | ftp-tftp-url | http-url-loose | scp-url | sftp-url)
Synopsis Destination URL or '.' for the working directory
Contextfile copy [destination-url] (sat-url | cflash-url | string-not-all-spaces | ftp-tftp-url | http-url-loose | scp-url | sftp-url)
Tree[destination-url]

String length

1 to 200 (sat-url, cflash-url, string-not-all-spaces)

1 to 199 (ftp-tftp-url)

1 to 180 (http-url-loose, scp-url, sftp-url)

Notes

This element is mandatory.

Introduced25.3.R2

Platforms

7705 SAR-1

direct-http
Synopsis Allow direct HTTP connection, do not follow redirects
Contextfile copy direct-http
Treedirect-http
Introduced25.3.R2

Platforms

7705 SAR-1

force
Synopsis Force copy without prompting before overwriting
Contextfile copy force
Treeforce
Introduced25.3.R2

Platforms

7705 SAR-1

proxy http-url
Synopsis Connect over HTTP with a proxy
Context file copy proxy http-url
Treeproxy
String length1 to 255
Introduced25.3.R2

Platforms

7705 SAR-1

recursive
Synopsis Copy sub-directories encountered at the source URL
Contextfile copy recursive
Treerecursive

Description

This command recursively copies files and directories. If files or directories already exist, the operator is prompted to overwrite them. When the force command is enabled, a positive response to the overwrite prompts is assumed, and the operator is not prompted for confirmation. The existing files or directories are overwritten.

Introduced25.3.R2

Platforms

7705 SAR-1

[source-url] (sat-url | cflash-url | string-not-all-spaces | ftp-tftp-url | http-url-loose | sftp-url)
Synopsis Source URL
Contextfile copy [source-url] (sat-url | cflash-url | string-not-all-spaces | ftp-tftp-url | http-url-loose | sftp-url)
Tree[source-url]

String length

1 to 200 (sat-url, cflash-url, string-not-all-spaces)

1 to 199 (ftp-tftp-url)

1 to 180 (http-url-loose, sftp-url)

Notes

This element is mandatory.

Introduced25.3.R2

Platforms

7705 SAR-1

disable

Synopsis Disable storage devices
Context file disable
Treedisable
Introduced25.3.R2

Platforms

7705 SAR-1

active
Synopsis Disable all devices on the active CPM
Contextfile disable active
Treeactive

Notes

The following elements are part of a choice: active, cflash-id, or standby.

Introduced25.3.R2

Platforms

7705 SAR-1

cflash-id cflash-id
Synopsis Disable the storage device
Context file disable cflash-id cflash-id
Treecflash-id
String length4 to 6

Notes

The following elements are part of a choice: active, cflash-id, or standby.

Introduced25.3.R2

Platforms

7705 SAR-1

standby
Synopsis Disable all devices on the standby CPM
Contextfile disable standby
Treestandby

Notes

The following elements are part of a choice: active, cflash-id, or standby.

Introduced25.3.R2

Platforms

7705 SAR-1

edit

Synopsis Edit files with the text editor
Context file edit
Treeedit

Description

This command allows users to edit files with the text editor.

See "Text editor" in the 7705 SAR Gen 2 Basic System Configuration Guide for more information.

Introduced25.3.R2

Platforms

7705 SAR-1

[url] (sat-url | cflash-url | string-not-all-spaces)
Synopsis File URL
Contextfile edit [url] (sat-url | cflash-url | string-not-all-spaces)
Tree[url]
String length1 to 200

Notes

This element is mandatory.

Introduced25.3.R2

Platforms

7705 SAR-1

enable

Synopsis Enable storage devices
Context file enable
Treeenable
Introduced25.3.R2

Platforms

7705 SAR-1

active
Synopsis Enable all devices on the active CPM
Context file enable active
Treeactive

Notes

The following elements are part of a choice: active, cflash-id, or standby.

Introduced25.3.R2

Platforms

7705 SAR-1

cflash-id cflash-id
Synopsis Enable the compact flash device
Context file enable cflash-id cflash-id
Treecflash-id
String length4 to 6

Notes

The following elements are part of a choice: active, cflash-id, or standby.

Introduced25.3.R2

Platforms

7705 SAR-1

standby
Synopsis Enable all devices on the standby CPM
Contextfile enable standby
Treestandby

Notes

The following elements are part of a choice: active, cflash-id, or standby.

Introduced25.3.R2

Platforms

7705 SAR-1

format

Synopsis Format a storage device
Context file format
Treeformat

Description

This command formats a storage device with a new file system without erasing the data. The device must be administratively disabled first.

Introduced25.3.R2

Platforms

7705 SAR-1

[cflash-id] cflash-id
Synopsis Format a storage device
Context file format [cflash-id] cflash-id
Tree[cflash-id]
String length4 to 6
Introduced25.3.R2

Platforms

7705 SAR-1

list

Synopsis List directory contents
Context file list
Treelist
Introduced25.3.R2

Platforms

7705 SAR-1

reverse
Synopsis List files in reverse sort order
Context file list reverse
Treereverse
Introduced25.3.R2

Platforms

7705 SAR-1

[sort-order] keyword
Synopsis Sort order for the directory
Context file list [sort-order] keyword
Tree[sort-order]
Optionsdate, name, size
Introduced25.3.R2

Platforms

7705 SAR-1

[url] (sat-url | cflash-url | string-not-all-spaces | ftp-url | sftp-url)
Synopsis Location of the directory to be listed
Contextfile list [url] (sat-url | cflash-url | string-not-all-spaces | ftp-url | sftp-url)
Tree[url]

String length

1 to 200 (sat-url, cflash-url, string-not-all-spaces)

1 to 180 (ftp-url, sftp-url)

Default.
Introduced 25.3.R2

Platforms

7705 SAR-1

make-directory

Synopsis Make a directory
Context file make-directory
Treemake-directory
Introduced25.3.R2

Platforms

7705 SAR-1

[url] (sat-url | cflash-url | string-not-all-spaces | ftp-url | sftp-url)
Synopsis Directory location
Context file make-directory [url] (sat-url | cflash-url | string-not-all-spaces | ftp-url | sftp-url)
Tree[url]

String length

1 to 200 (sat-url, cflash-url, string-not-all-spaces)

1 to 180 (ftp-url, sftp-url)

Notes

This element is mandatory.

Introduced25.3.R2

Platforms

7705 SAR-1

move

Synopsis Move or rename files or directories
Context file move
Treemove
Introduced25.3.R2

Platforms

7705 SAR-1

[destination-url] (sat-url | cflash-url | string-not-all-spaces | ftp-url | http-url-loose | sftp-url)
Synopsis Destination URL or '.' for the working directory
Contextfile move [destination-url] (sat-url | cflash-url | string-not-all-spaces | ftp-url | http-url-loose | sftp-url)
Tree[destination-url]

String length

1 to 200 (sat-url, cflash-url, string-not-all-spaces)

1 to 180 (ftp-url, http-url-loose, sftp-url)

Notes

This element is mandatory.

Introduced25.3.R2

Platforms

7705 SAR-1

direct-http
Synopsis Allow direct HTTP connection, do not follow redirects
Contextfile move direct-http
Treedirect-http
Introduced25.3.R2

Platforms

7705 SAR-1

force
Synopsis Force move without prompting before overwriting
Contextfile move force
Treeforce
Introduced25.3.R2

Platforms

7705 SAR-1

proxy http-url
Synopsis Connect over HTTP with a proxy
Context file move proxy http-url
Treeproxy
String length1 to 255
Introduced25.3.R2

Platforms

7705 SAR-1

[source-url] (sat-url | cflash-url | string-not-all-spaces | ftp-url | http-url-loose | sftp-url)
Synopsis Source URL
Contextfile move [source-url] (sat-url | cflash-url | string-not-all-spaces | ftp-url | http-url-loose | sftp-url)
Tree[source-url]

String length

1 to 200 (sat-url, cflash-url, string-not-all-spaces)

1 to 180 (ftp-url, http-url-loose, sftp-url)

Notes

This element is mandatory.

Introduced25.3.R2

Platforms

7705 SAR-1

permission

Synopsis Show or set file permissions
Context file permission
Treepermission
Introduced25.3.R2

Platforms

7705 SAR-1

[url] (sat-url | cflash-url | string-not-all-spaces)
Synopsis File URL to set permissions
Context file permission [url] (sat-url | cflash-url | string-not-all-spaces)
Tree[url]
String length1 to 200
Introduced25.3.R2

Platforms

7705 SAR-1

remove

Synopsis Remove files
Contextfile remove
Treeremove
Introduced25.3.R2

Platforms

7705 SAR-1

direct-http
Synopsis Allow direct HTTP connection, do not follow redirects
Contextfile remove direct-http
Treedirect-http
Introduced25.3.R2

Platforms

7705 SAR-1

force
Synopsis Force removal without prompting
Context file remove force
Treeforce
Introduced25.3.R2

Platforms

7705 SAR-1

proxy http-url
Synopsis Connect over HTTP with a proxy
Context file remove proxy http-url
Treeproxy
String length1 to 255
Introduced25.3.R2

Platforms

7705 SAR-1

[url] (sat-url | cflash-url | string-not-all-spaces | ftp-url | http-url-loose | sftp-url)
Synopsis File URL
Contextfile remove [url] (sat-url | cflash-url | string-not-all-spaces | ftp-url | http-url-loose | sftp-url)
Tree[url]

String length

1 to 200 (sat-url, cflash-url, string-not-all-spaces)

1 to 180 (ftp-url, http-url-loose, sftp-url)

Notes

This element is mandatory.

Introduced25.3.R2

Platforms

7705 SAR-1

remove-directory

Synopsis Remove directories
Context file remove-directory
Treeremove-directory
Introduced25.3.R2

Platforms

7705 SAR-1

[url] (sat-url | cflash-url | string-not-all-spaces | ftp-url | sftp-url)
Synopsis Directory URL
Contextfile remove-directory [url] (sat-url | cflash-url | string-not-all-spaces | ftp-url | sftp-url)
Tree[url]

String length

1 to 200 (sat-url, cflash-url, string-not-all-spaces)

1 to 180 (ftp-url, sftp-url)

Notes

This element is mandatory.

Introduced25.3.R2

Platforms

7705 SAR-1

repair

Synopsis Repair a storage device file system
Context file repair
Treerepair
Introduced25.3.R2

Platforms

7705 SAR-1

[cflash-id] cflash-id
Synopsis Storage device to repair
Context file repair [cflash-id] cflash-id
Tree[cflash-id]
String length4 to 6
Introduced25.3.R2

Platforms

7705 SAR-1

secure-erase

Synopsis Secure erase and format a storage device
Contextfile secure-erase
Treesecure-erase

Description

This command secure erases and formats a storage device with a new file system. The device must be administratively disabled first.

Introduced25.10.R1

Platforms

7705 SAR-1

[cflash-id] cflash-id
Synopsis Storage device to secure erase and format
Contextfile secure-erase [cflash-id] cflash-id
Tree[cflash-id]

Description

[

String length4 to 6
Introduced25.10.R1

Platforms

7705 SAR-1

show

Synopsis Display the contents of a file
Context file show
Treeshow
Introduced25.3.R2

Platforms

7705 SAR-1

direct-http
Synopsis Allow direct HTTP connection, do not follow redirects
Contextfile show direct-http
Treedirect-http
Introduced25.3.R2

Platforms

7705 SAR-1

proxy http-url
Synopsis Connect over HTTP with a proxy
Context file show proxy http-url
Treeproxy
String length1 to 255
Introduced25.3.R2

Platforms

7705 SAR-1

[url] (sat-url | cflash-url | string-not-all-spaces | ftp-tftp-url | http-url-loose | sftp-url)
Synopsis File URL
Contextfile show [url] (sat-url | cflash-url | string-not-all-spaces | ftp-tftp-url | http-url-loose | sftp-url)
Tree[url]

String length

1 to 200 (sat-url, cflash-url, string-not-all-spaces)

1 to 199 (ftp-tftp-url)

1 to 180 (http-url-loose, sftp-url)

Notes

This element is mandatory.

Introduced25.3.R2

Platforms

7705 SAR-1

unzip

Synopsis Unzip files
Contextfile unzip
Treeunzip
Introduced25.3.R2

Platforms

7705 SAR-1

[destination-url] (sat-url | cflash-url | string-not-all-spaces)
Synopsis Destination URL or '.' for the working directory
Contextfile unzip [destination-url] (sat-url | cflash-url | string-not-all-spaces)
Tree[destination-url]
String length1 to 200
Introduced25.3.R2

Platforms

7705 SAR-1

force
Synopsis Force the unzip operation without prompting
Contextfile unzip force
Treeforce

Description

When configured, files and directories that already exist in the destination URL are overwritten without prompting. 

The system does not automatically create directories explicitly specified by the destination URL. To allow the system to create new directories, use the create-destination command.

When unconfigured, the system prompts the user before overwriting a file or directory.

Notes

The following elements are part of a choice: force or list.

Introduced25.3.R2

Platforms

7705 SAR-1

list
Synopsis List the file contents without the unzip operation
Contextfile unzip list
Treelist

Notes

The following elements are part of a choice: force or list.

Introduced25.3.R2

Platforms

7705 SAR-1

[source-url] (sat-url | cflash-url | string-not-all-spaces | ftp-tftp-url | http-url-loose | sftp-url)
Synopsis Source URL
Contextfile unzip [source-url] (sat-url | cflash-url | string-not-all-spaces | ftp-tftp-url | http-url-loose | sftp-url)
Tree[source-url]

String length

1 to 200 (sat-url, cflash-url, string-not-all-spaces)

1 to 199 (ftp-tftp-url)

1 to 180 (http-url-loose, sftp-url)

Notes

This element is mandatory.

Introduced25.3.R2

Platforms

7705 SAR-1

version

Synopsis Display the version of an SR OS image file
Contextfile version
Treeversion
Introduced25.3.R2

Platforms

7705 SAR-1

[url] (sat-url | cflash-url | string-not-all-spaces | ftp-tftp-url)
Synopsis File URL
Contextfile version [url] (sat-url | cflash-url | string-not-all-spaces | ftp-tftp-url)
Tree[url]

String length

1 to 200 (sat-url, cflash-url, string-not-all-spaces)

1 to 199 (ftp-tftp-url)

Notes

This element is mandatory.

Introduced25.3.R2

Platforms

7705 SAR-1