change-configuration (Event Policy)
Syntax
change-configuration { commands { "command"; } commit-options { check <synchronize>; force; log "comment-string"; synchronize; } retry count number interval seconds; user-name username; }
Hierarchy Level
[edit event-options policy policy-name then]
Description
When the associated event policy is triggered, execute the Junos OS configuration mode commands to update the candidate configuration and commit the changes.
Do not use the change-configuration
statement
to modify the configuration on dual Routing Engine devices that have
nonstop active routing (NSR) enabled, because both Routing Engines
might attempt to acquire a lock on the configuration database, which
can cause the commit to fail. To modify the configuration through
an event policy when NSR is enabled, invoke an event script that executes
the commit on only the primary Routing Engine.
The remaining statements are explained separately. See CLI Explorer.
Required Privilege Level
maintenance—To view or add this statement in the configuration.
Release Information
Statement introduced in Junos OS Release 12.1.