start (Scripts)
Syntax
start { start-options { mem-factor percentage; } }
Hierarchy Level
[edit event-options event-script], [edit event-options event-script file filename], [edit system extensions extension-service application], [edit system extensions extension-service application file filename], [edit system scripts op], [edit system scripts op file filename], [edit system scripts snmp], [edit system scripts snmp file filename]
Description
Configure options to control script execution.
Junos devices do not enforce script start options for remote op scripts,
which are executed using the op url
command. Script
start options are enforced only for local op scripts.
Default
If you do not configure start options for an individual script or script type, the device does not perform any system resource checks before executing a script.
Options
mem-factor percentage |
System memory usage threshold, specified as a percentage, above which a script does not execute. You can configure the statement for op, event, SNMP, and Juniper Extension Toolkit (JET) scripts. You can apply the statement to an individual script or to all scripts of a given script type. If you define different thresholds for the script type and an individual script of the same type, the configuration for the individual script takes precedence. If a device prevents the execution of a script, the cscript process records system log messages in the log file. The CLI does not issue any warning or error that the script was halted.
Note:
For JET applications, the |
Required Privilege Level
maintenance—To view or add this statement in the configuration.
Release Information
Statement introduced in Junos OS Release 22.4R1.
Statement introduced in Junos OS Evolved Release 23.1R1.