Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

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. On a routing matrix, you can include chassis information (for example, lcc0, lcc0-re0, or lcc0-re1) as part of the 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 the file show command with a wildcard, it must resolve to one filename.

  • path/filename—A file on the local flash drive.

  • filename or path/filename—File on the local hard drive. You can also specify a file on a local Routing Engine for a specific T640 router or a T1600 router in a routing matrix:

  • a:filename or a: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:

  • 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 a 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. You can also specify a file on a local Routing Engine for a specific T640 router or a T1600 router in a routing matrix: