Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

save

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
save (<dhcp-security-snoop>filename)

QFX and VMX Series

content_copy zoom_out_map
save (<dhcp-security-snoop | dhcpv6-security-snoop | slaac-security-snoop>filename)

Description

Save the configuration to an ASCII file. The contents of the current level of the statement hierarchy (and below) are saved, along with the statement hierarchy containing it. This allows a section of the configuration to be saved, while fully specifying the statement hierarchy.

For information on valid filename and URL formats, see Format for Specifying Filenames and URLs in Junos OS CLI Commands.

When saving a file to a remote system, the software uses the scp/ssh protocol.

Options

filename—Name of the saved file. You can specify a filename in one of the following ways:

  • filename—File in the user’s home directory (the current directory) on the local flash drive.

  • path/filename—File on the local flash drive.

  • /var/filename or /var/path/filename—File on the local hard disk.

  • a:filename or a:path/filename—File on the local drive. 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 client. 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 the string %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_map
    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@ftphostname.net//filename
    

Password for username@ftp.hostname.net:

  • http://hostname/path/filename—File on a Hypertext Transfer Protocol (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.

  • re0:/path/filename or re1:/path/filename—File on a local Routing Engine.

Options for QFX and VMX Series

  • dhcp-security-snoop—Save DHCP snooping entries

  • dhcpv6-security-snoop—Save DHCPv6 snooping entries

  • slaac-security-snoop—Slaac-Snooping security entries

Required Privilege Level

Note:

The save commands for dhcp-security-snoop, dhcpv6-security-snoop, and slaac-security-snoop are restricted to admin only.

view

Release Information

Command introduced before Junos OS Release 7.4.

footer-navigation