refresh (SNMP Scripts)
Statement introduced in Junos OS Release 15.1.
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.
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:
If you enable the non-default managment 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 view this
statement in the configuration.
maintenance-control—To add this statement to the configuration.