Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


https://www.juniper.net/documentation/en_US/junos/topics/reference/configuration-statement/event-options-edit.html



set event-options generate-event every1min time-interval 60
set event-options policy pingip_12.12.0.2 events every1min
set event-options policy pingip_12.12.0.2 then execute-commands commands "ping 12.12.0.2 routing-instance vrouter1 count 10"

root@SRX13> show configuration deactivate event-options | display set
set event-options generate-event everysec time-interval 60
set every1min

activate event-options policy "pingip@" events everysec
set event-options policy "pingip@" then execute-commands commands "ping 192.168.56.1 count 1000 rapid"generate-event every1min





Code Block
titleshow config
collapsetrue
root@SRX13> show configuration event-options
generate-event {
    everysec time-interval 60;
}
policy "pingip@" {
    events everysec;
    then {
        execute-commands {
            commands {
                "ping 192.168.56.1 count 1000 rapid";
            }
        }
    }
}

root@SRX13> show configuration event-options | display set
set event-options generate-event everysec time-interval 60
set event-options policy "pingip@" events everysec
set event-options policy "pingip@" then execute-commands commands "ping 192.168.56.1 count 1000 rapid"


root@QFX5110-2> monitor interface ge-0/0/2.0

Image Modified