Command Line Reference
Reliability Configuration
Configuration Rollback
5 min
event manager applet event manager applet \[command] event manager applet string no event manager applet string \[purpose] create configuration rollback event \[view] system configuration view \[usage scenario] during the initial deployment, a stable configuration is established with guaranteed connectivity in subsequent usage, the configuration may be modified—for example, using acls or modifying interface vlans to switch broadcast domains and redirect traffic to another network segment however, this new network segment has not undergone long term validation and may lack stability it is necessary to monitor the status of lacp or physical interfaces should the status of the lag group or any physical interface be detected as down, the configuration should be rolled back to the initial deployment state \[use cases] sonic(config)# event manager applet test action cli command action cli command \[command] action action id cli command string no action action id \[purpose] preconfigured configuration commands \[parameter] parameter description action id preconfigured command id string preconfiguration cli command \[view] applet configuration view \[comment] actionid shall be an integer or positive floating point number starting from 0, with smaller numbers executed first if there are spaces in the preconfiguration command delivered as a string, double quotation marks must be added the rollback commands consist of a set of command lines defined by the user, who shall ensure the correct execution order of these command lines \[use cases] sonic(config)# event manager applet test sonic(config event applet test)# action 1 cli command "interface ethernet 1" sonic(config event applet test)# action 2 cli command "shutdown" warning enable warning enable \[command] warning enable no warning enable \[purpose] configuration rollback syslog logging \[view] applet configuration view \[use cases] sonic(config)# event manager applet test sonic(config event applet test)# warning enable down event applet down event applet \[command] down event applet string no down event applet \[purpose] bind interface to rollback event \[view] interface configuration view \[use cases] sonic(config)# interface ethernet 3 sonic(config if 3)# down event applet test
