Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Junos OS API and Scripting

  • Prevent script execution based on current system memory usage (EX2300, EX2300-C, EX2300-MP, EX2300-VC, EX3400, EX3400-VC, EX4100-24MP, EX4100-24P, EX4100-24T, EX4100-48MP, EX4100-48P, EX4100-48T, EX4100-F-12P, EX4100-F-12T, EX4100-F-24P, EX4100-F-24T, EX4100-F-48P, EX4100-F-48T, EX4300, EX4300-MP, EX4300-VC, EX4400-24MP, EX4400-24P, EX4400-24T, EX4400-48F, EX4400-48MP, EX4400-48P, EX4400-48T, EX4650, EX4650-48Y-VC, EX9208, EX9251, EX9253, QFX5110, QFX5110-VC, QFX5110-VCF, QFX5120-24YM, QFX5120-32C, QFX5120-48T, QFX5120-48T-VC, QFX5120-48Y, QFX5120-48Y-VC, QFX5120-48YM, QFX10002, QFX10002-60C, QFX10008, QFX10016, SRX300, SRX320, SRX340, SRX345, SRX380, SRX550 HM, SRX1500, SRX4100, SRX4200, and SRX4600)—Starting in Junos OS Release 22.4R1, you can configure the system memory usage threshold above which the device prevents the execution of certain op, event, or SNMP scripts. You can configure the start start-options mem-factor statement for individual scripts or all scripts of a given type. The device doesn't execute the script if the system's memory usage exceeds the configured value at the time the script is invoked. This configuration ensures that a device executes only essential scripts when system resources are limited, thereby enabling the device to continue performing all critical network functions.

    [See Configure Script Start Options.]