- play_arrow Understanding Junos OS
- play_arrow Junos OS Software Overview
- About the Overview for Junos OS
- Junos OS Overview
- Junos OS Architecture Overview
- Router Hardware Components
- Junos OS Routing Engine Components and Processes
- Junos OS Routing Processes
- Default Directories for Junos OS File Storage on the Network Device
- Junos OS Support for IPv4, IPv6, and MPLS Routing Protocols
- Junos OS Routing and Forwarding Tables
- Routing Policy Overview
- Junos OS Support for VPNs
- Configuring FIB Localization
- play_arrow Junos OS Security Overview
- play_arrow Junos OS Configuration Overview
-
- play_arrow Configuration Statements and Operational Commands
Format for Specifying Filenames and URLs in Junos OS CLI Commands
In some 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.
You can specify a filename or URL in one of the following ways:
filename
—A 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 FTP.Note:Wildcards are supported only by the
file (compare | copy | delete | list | rename | show)
commands. When you issue thefile show
command with a wildcard, it must resolve to one filename.path/filename
—A file on the local flash drive.filename
orpath/filename
—File on the local hard drive.a:filename
ora:path/filename
—A 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 an scp/ssh server. This form is not available in the worldwide version of Junos OS. The default path is the user’s home directory on the remote system. You can also specify hostname as username@hostname.ftp://hostname/path/filename—File on an FTP server. You can also specify hostname as username@hostname or username: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, specify prompt in place of the password. If a password is required and you do not specify the password or prompt, an error message is displayed:
content_copy zoom_out_mapuser@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:
http://hostname/path/filename—A file on an HTTP server. You can also specify hostname as username@hostname or username:password@hostname. If a password is required and you omit it, you are prompted for it.
Note:You cannot specify an HTTP(s) URL for a file as a destination, because HTTP(s) URLs are not writable. However you can specify HTTP(s) URL for a file as a source.
re0:/path/filename or re1:/path/filename—A file on a local Routing Engine.
sftp://hostname/path/filename—File on an SFTP server. You can also specify hostname as username@hostname. The default path is the user’s home directory. To specify an absolute path, you can use //path.