Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


optional (Event Scripts)


Hierarchy Level


For Junos OS event scripts, globally indicate the physical presence of the scripts as optional to allow commits to proceed if they are missing. Scripts can be missing, for example, if the primary storage on the device running Junos OS becomes corrupted.

If you do not configure the optional statement, the event process (eventd) validates the physical existence of event scripts during the commit process. If a configured script is not physically accessible, the commit fails.

If you configure the optional statement, the event process (eventd) ignores missing event scripts during the commit process and proceeds with the commit. If an event script is present but invalid, the commit fails.


By default, optional is not set. Event scripts are required to be accessible during commit operations.

Required Privilege Level

maintenance—To view this statement in the configuration. maintenance-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 16.1.