File System Management
7950 SR OS Basic System Configuration Guide
Page 65
URLs
The arguments for the SR OS file commands are modeled after standard universal resource locator
(URL). A URL refers to a file (a
file-url
) or a directory (a
directory-url
).
The 7950 SR OS supports operations on both the local file system and on remote files. For the
purposes of categorizing the applicability of commands to local and remote file operations, URLs
are divided into three types of URLs: local, ftp and tftp. The syntax for each of the URL types are
listed in
Note that if the host portion of the URL is an IPv6 address, then the address should be enclosed in
square brackets. For example:
ftp://user:passw@[3ffe::97]/./testfile.txt
tftp://[1111:2222:3333:4444:5555:6666:7777:8888]/./testfile.txt
The system accepts either forward slash (“/”) or backslash (“\”) characters to delimit directory
and/or filenames in URLs. Similarly, the The SR OS SCP client application can use either slash or
backslash characters, but not all SCP clients treat backslash characters as equivalent to slash
characters. In particular, UNIX systems will often times interpret the backslash character as an
“escape” character. This can cause problems when using an external SCP client application to
send files to the SCP server. If the external system treats the backslash like an escape character, the
backslash delimiter will get stripped by the parser and will not be transmitted to the SCP server.
For example, a destination directory specified as “cf1:\dir1\file1” will be transmitted to the SCP
server as “cf1:dir1file1” where the backslash escape characters are stripped by the SCP client
Table 16: URL Types and Syntax
URL Type
Syntax
Notes
local-url
[
cflash-id:\
]
path
cflash-id
is the compact flash device name.
Values: cf1:
ftp-url
ftp://
[
username
[
:password
]
@
]
host/path
An absolute ftp path from the root of the remote
file system.
username
is the ftp user name
password
is the ftp user password
host
is the remote host
path
is the path to the directory or file
ftp://
[
username
[
:password
]
@
]
host/./path
A relative ftp path from the user’s home
directory. Note the period and slash (“
./
”) in this
syntax compared to the absolute path.
tftp-url
tftp://host
[
/path
]
/filename
tftp is only supported for operations on file-urls.
Summary of Contents for 7950 XRS Series
Page 8: ...Page 8 7950 SR OS Basic System Configuration Guide List of Tables...
Page 10: ...Page 10 7950 SR OS Basic System Configuration Guide List of Figures...
Page 14: ...Preface Page 14 7950 SR OS Basic System Configuration Guide...
Page 46: ...VI Editor Page 46 7950 SR OS Basic System Configuration Guide...
Page 76: ...File Management Tasks Page 76 7950 SR OS Basic System Configuration Guide...
Page 78: ...File Command Reference Page 78 7950 SR OS Basic System Configuration Guide...
Page 172: ...Basic CLI Commands Page 172 7950 SR OS Basic System Configuration Guide...
Page 184: ...Configuration Notes Page 184 7950 SR OS Basic System Configuration Guide...
Page 214: ...DNS Configuration Commands Page 214 7950 SR OS Basic System Configuration Guide...
Page 220: ...Show Commands Page 220 7950 SR OS Basic System Configuration Guide...
Page 494: ...System Commands Page 494 7950 SR OS Basic System Configuration Guide...
Page 500: ...Standards and Protocols Page 500 Standards and Protocols...