interfaces <interface> vrrp vrrp-group <group-id> run-transition-scripts
Specifies a script to run when the VRRP on an interface changes state.
- interface
- The interface type and identifier. For detailed keywords and arguments that can be specified as interfaces, refer to Supported Dataplane Interfaces.
- group-id
- The VRRP group to which the interface belongs. The identifier ranges from 1 through 255.
- backup script
- Specifies the name of the executable script to run during VRRP state transition to the backup state.
- fault script
- Specifies the name of the executable script to run during VRRP state transition to the fault state.
- master script
- Specifies the name of the executable script to run during VRRP state transition to the master state.
Configuration mode
interfaces interface {
vrrp {
vrrp-group group-id {
run-transition-scripts {
backup script
fault script
master script
}
}
}
}
Use this command to specify a script to run when the VRRP group on an interface changes state. The state is backup, fault, or master. A script file is assumed to be in the /config/scripts directory unless an absolute path is specified.
Use the set form of the command to specify a script to run when the VRRP group on an interface changes state.
Use the delete form of the command to stop the script from being run when an interface changes states.
Use the show form of the command to view the configuration.