Description

The following articles describes how to configure event-options for LACP in case it randomly flaps.

Solution

The following event-options is used to collect data when LACP flaps randomly and it can help during the troubleshooting process.

 

set event-options policy LACP-FLAP events lacp_intf_mux_state_changed
set event-options policy LACP-FLAP within 1 trigger on
set event-options policy LACP-FLAP within 1 trigger 1
set event-options policy LACP-FLAP then execute-commands commands "show krt queue"
set event-options policy LACP-FLAP then execute-commands commands "show krt state"
set event-options policy LACP-FLAP then execute-commands commands "show lacp interfaces"
set event-options policy LACP-FLAP then execute-commands commands "show lacp statistics interfaces"
set event-options policy LACP-FLAP then execute-commands commands "show lacp timeouts"
set event-options policy LACP-FLAP then execute-commands commands "show chassis routing-engine"
set event-options policy LACP-FLAP then execute-commands commands "show chassis fpc"
set event-options policy LACP-FLAP then execute-commands commands "show system processes extensive"
set event-options policy LACP-FLAP then execute-commands commands "show ddos protocols violations"
set event-options policy LACP-FLAP then execute-commands commands "show krt queue"
set event-options policy LACP-FLAP then execute-commands commands "show krt state"
set event-options policy LACP-FLAP then execute-commands commands "show route summary"
set event-options policy LACP-FLAP then execute-commands commands "show system virtual-memory"
set event-options policy LACP-FLAP then execute-commands commands "show krt queue"
set event-options policy LACP-FLAP then execute-commands commands "show krt state"
set event-options policy LACP-FLAP then execute-commands output-filename LACP-FLAP_Output-JTAC.txt
set event-options policy LACP-FLAP then execute-commands destination JTAC
set event-options policy LACP-FLAP then execute-commands output-format text
set event-options policy LACP-FLAP then raise-trap
set event-options destinations JTAC archive-sites /var/log

 

When LACP down/up triggers, the following log will be generated.

 

{master:0}[edit]
root@s10-1# run file list /var/tmp detail | match s10
Jan 29 17:01:15
-rw-r----- 1 root wheel     62508 Jan 29 17:00 s10-1_20260129_170053_LACP-FLAP_Output-JTAC.txt


{master:0}[edit]

root@s10-1#

{master:0}[edit]
root@s10-1#
*** messages ***
Jan 29 17:00:53 s10-1 kernel: lag_bundlestate_ifd_change: bundle ae0: bundle IFD minimum bandwidth or minimum links not met, Bandwidth (Current : Required) 0 : 40000000000 Number of links (Current : Required) 0 : 1
Jan 29 17:00:53 s10-1 lacpd[20116]: LACP_INTF_MUX_STATE_CHANGED: ae0: et-0/0/6: Lacp state changed from COLLECTING_DISTRIBUTING to DETACHED, actor port state : |-|DEF|-|-|OUT_OF_SYNC|AGG|SHORT|ACT|, partner port state : |-|DEF|-|-|OUT_OF_SYNC|AGG|SHORT|PAS|
Jan 29 17:00:53 s10-1 mib2d[20127]: SNMP_TRAP_LINK_DOWN: ifIndex 514, ifAdminStatus up(1), ifOperStatus down(2), ifName ae0
Jan 29 17:00:53 s10-1 mib2d[20127]: SNMP_TRAP_LINK_DOWN: ifIndex 516, ifAdminStatus up(1), ifOperStatus down(2), ifName et-0/0/6
Jan 29 17:00:53 s10-1 root[33015]: invoke-commands: Executed /tmp/evt_cmd_CqhKft, output to /tmp/evt_op_bqWjGU in text format       >>>>>>>>> event-options activated here!
Jan 29 17:00:53 s10-1 root[33025]: transfer-file: Transferred /tmp/evt_op_bqWjGU

 

 

Modification History

2026-02-11 : Article Created