refresh (SNMP Scripts)
Syntax
refresh;
Description
Overwrite the local copy of all enabled SNMP scripts or a single enabled
SNMP script with the copy located at the source URL, as specified in
the source
statement at the same hierarchy level.
If the load-scripts-from-flash
statement is
configured, the device refreshes the scripts on the flash drive
instead of the hard drive.
The update operation occurs as soon as you issue the set
refresh
configuration mode command. Issuing the
set refresh
command does not add the
refresh
statement to the configuration.
Thus the command behaves like an operational mode command by
executing an operation, instead of adding a statement to the
configuration.
Before you refresh a local script from an HTTPS server, you must first
configure the cert-file
statement for that script
in supported releases. Specify the absolute path to the certificate
(Root CA or self-signed) that the device will use to validate the
server's certificate during the refresh operation.
As of Junos OS Release 18.1R1, you can specify which routing instance the update is done through. To specify the routing instance to use for updating snmp scripts, configure the routing instance in two places in the CLI:
user@host# set system routing-instances routing-instance-name description description user@host# set system scripts snmp file filename routing-instance routing-instance-name
If you enable the non-default management instance and use
mgmt_junos
for
routing-instance-name
,
you can configure scripts to update using the dedicated management
instance mgmt_junos.
Required Privilege Level
maintenance—To execute this statement in configuration mode.
Release Information
Statement introduced in Junos OS Release 15.1.