Supported Platforms
Related Documentation
- M, MX, PTX, QFX, T Series
- Format for Specifying IP Addresses, Network Masks, and Prefixes in Junos OS Configuration Statements
- M, MX, PTX, T Series
- Default Directories for Junos OS File Storage on the Router or Switch
Format for Specifying Filenames and URLs in Junos OS CLI Commands
In some command-line interface (CLI) commands and configuration statements—including file copy, file archive, load, save, set system login user username authentication load-key-file, and request system software add—you can include a filename. On a routing matrix, you can include chassis information (for example, lcc0, lcc0-re0, or lcc0-re1) as part of the filename.
A routing matrix is a multichassis architecture composed of either one TX Matrix router and from one to four T640 routers connected to the TX Matrix router, or one TX Matrix Plus router and from one to four T1600 routers connected to the TX Matrix Plus router. From the perspective of the user interface, the routing matrix appears as a single router. On a routing matrix composed of the TX Matrix router and T640 routers, the TX Matrix router controls all the T640 routers. On a routing matrix composed of a TX Matrix Plus router and T1600 routers, the TX Matrix Plus router controls all the T1600 routers.
You can specify a filename or URL in one of the following ways:
- filename—File in
the user’s current directory on the local CompactFlash card
(not applicable on the QFX Series). You can use wildcards to specify
multiple source files or a single destination file. Wildcards are
not supported in Hypertext Transfer Protocol (HTTP) or FTP.
Note: Wildcards are supported only by the file (compare | copy | delete | list | rename | show) commands. When you issue the file show command with a wildcard, it must resolve to one filename.
- path/filename—File on the local flash disk.
- /var/filename or /var/path/filename—File on the local hard disk. You can also specify a file on
a local Routing Engine for a specific T640 router or a T1600 router
in a routing matrix:
user@host> file delete lcc0-re0:/var/tmp/junk
- a:filename or a:path/filename—File on the local removable media. The default path is / (the root-level directory). The removable media can be in MS-DOS or UNIX (UFS) format.
- hostname:/path/filename, hostname:filename, hostname:path/filename, or “
scp://hostname/path/filename
”—File on anscp/ssh
client. This form is not available in the worldwide version of the Junos OS. The default path is the user’s home directory on the remote system. You can also specifyhostname
asusername@hostname
. ftp://hostname/path/filename
—File on an FTP server. You can also specifyhostname
asusername@hostname
orusername:password@hostname
. The default path is the user’s home directory. To specify an absolute path, the path must start with%2F
; for example,ftp
://hostname/%2Fpath/filename
. To have the system prompt you for the password, specifyprompt
in place of the password. If a password is required and you do not specify the password orprompt
, an error message is displayed:user@host> file copy ftp://username@ftp.hostname.net/filename
file copy ftp.hostname.net: Not logged in.
user@host> file copy ftp://username:prompt@ftp.hostname.net/filename
Password for username@ftp.hostname.net:
re0:/path/filename
orre1:/path/filename
—File on a local Routing Engine. You can also specify a file on a local Routing Engine for a specific T640 router or a T1600 router in a routing matrix:user@host> show log lcc0-re1:chassisd
![]() | Note: You cannot specify a URL for a file on a Hypertext Transfer Protocol (HTTP) server, because HTTP URLs are not writable. |
Related Documentation
- M, MX, PTX, QFX, T Series
- Format for Specifying IP Addresses, Network Masks, and Prefixes in Junos OS Configuration Statements
- M, MX, PTX, T Series
- Default Directories for Junos OS File Storage on the Router or Switch
Published: 2013-08-15
Supported Platforms
Related Documentation
- M, MX, PTX, QFX, T Series
- Format for Specifying IP Addresses, Network Masks, and Prefixes in Junos OS Configuration Statements
- M, MX, PTX, T Series
- Default Directories for Junos OS File Storage on the Router or Switch