Junos
Junos

EX9204 event-options policy request

a month ago

HI All,

I am looking forward to apply below config on EX9204.

 

- Condition -
1. EX9204 has redundant RE
2. GRES, NSR, NSB enable

 

- Configuration -
set event-options policy link_all_down events system_operational
set event-options policy link_all_down events snmpd_trap_cold_start
set event-options policy link_all_down then change-configuration commands "set interfaces apply-groups link_all_down"
set event-options policy link_all_down then change-configuration commit-options log "interfaces DOWN due to system OFF"
--> I tried to make like this. First eventd system_operational, and after snmpd_trap_cold_start, at this time, change-configuration apply.

set groups link_all_down interfaces <ge-*> disable

 

- Log -
Nov 9 23:36:29.244 2019 BHEM_MAIN_SVR_1 eventd[4826]: SYSTEM_OPERATIONAL: System is operational
Nov 9 23:36:42.768 2019 BHEM_MAIN_SVR_1 snmpd[4970]: SNMPD_TRAP_COLD_START: trap_generate_cold: SNMP trap: cold start <- I want to apply, at this time.
Nov 9 23:36:57.130 2019 BHEM_MAIN_SVR_1 snmpd[5417]: SNMPD_TRAP_COLD_START: trap_generate_cold: SNMP trap: cold start
Nov 9 23:49:30.152 2019 BHEM_MAIN_SVR_1 eventd[4751]: SYSTEM_OPERATIONAL: System is operational
Nov 9 23:49:43.663 2019 BHEM_MAIN_SVR_1 snmpd[4898]: SNMPD_TRAP_COLD_START: trap_generate_cold: SNMP trap: cold start <- I want to apply, at this time.
Nov 9 23:49:53.497 2019 BHEM_MAIN_SVR_1 snmpd[5267]: SNMPD_TRAP_COLD_START: trap_generate_cold: SNMP trap: cold start
Nov 10 00:42:27.411 2019 BHEM_MAIN_SVR_1 eventd[4751]: SYSTEM_OPERATIONAL: System is operational
Nov 10 00:42:40.760 2019 BHEM_MAIN_SVR_1 snmpd[4898]: SNMPD_TRAP_COLD_START: trap_generate_cold: SNMP trap: cold start <- I want to apply, at this time.
Nov 10 00:42:53.326 2019 BHEM_MAIN_SVR_1 snmpd[5300]: SNMPD_TRAP_COLD_START: trap_generate_cold: SNMP trap: cold start

 

Request : How to apply above and working correctly?

 

Thanks in Advance,

1 REPLY 1
Highlighted
Junos

Re: EX9204 event-options policy request

4 weeks ago

I think you would need 2 more things:

 

1. Define the period over which your script will run

 

set event-options policy link_all_down within 60 trigger on
set event-options policy link_all_down within 60 trigger 1
 
2. You also need another event-option to revert those chages. Or you may need to do it manually 

Mengzhe Hu
JNCIE x 3 (SP DC ENT)