show events
Syntax
show events [ -e <EVENT-ID> |
-s {alert | crit | debug | emer | err | info | notice | warn} |
-r | -a | -i <MEMBER-ID> | -n <count> |
-m {master | standby} |
-c {lldp | ospf | ... | } |
-d {lldpd | hpe-fand | ... |}]
Description
Shows event logs generated by the switch modules since the last reboot.
Command context
Manager (#
)
Parameters
-e <EVENT-ID>
Shows the event logs for the specified event ID. Event ID range: 101 through 99999.
-s {alert | crit | debug | emer | err | info | notice | warn}
- Shows the event logs for the specified severity. Select the severity from the following list:
alert
: Displays event logs with severity alert and above.crit
: Displays event logs with severity critical and above.debug
: Displays event logs with all severities.emer
: Displays event logs with severity emergency only.err
: Displays event logs with severity error and above.info
: Displays event logs with severity info and above.notice
: Displays event logs with severity notice and above.warn
: Displays event logs with severity warning and above.
-r
Shows the most recent event logs first.
-a
Shows all event logs, including those events from previous boots.
-i <MEMBER-ID>
Shows the event logs for the specified VSF member ID.
-n <count>
Displays the specified number of event logs.
-m {master | standby}
Shows the event logs for the specified role on a 6200 or 6300 switch. Selecting master displays the event log for the VSF master role and standby displays event logs for the VSF standby role.
-c {lldp | ospf | ... | }
Shows the event logs for the specified event category. Enter
show event -c
for a full listing of supported categories with descriptions.
-d {lldpd | hpe-fand | ... |}
Shows the event logs for the specified process. Enter
show event -d
for a full listing of supported daemons with descriptions.
Authority
Auditors or Administrators or local user group members with execution rights for this command. Auditors can execute this command from the auditor context (auditor>) only.
Examples
Showing event logs:
switch# show events --------------------------------------------------- show event logs --------------------------------------------------- 2016-12-01:12:37:31.733551|lacpd|15007|INFO|AMM|1|LACP system ID set to 70:72:cf:51:50:7c 2016-12-01:12:37:31.734541|intfd|4001|INFO|AMM|1|Interface port_admin set to up for bridge_normal interface 2016-12-01:12:37:32.583256|switchd|24002|ERR|AMM|1|Failed to create VLAN 1 in Hardware
Showing the most recent event logs first:
switch# show events -r --------------------------------------------------- show event logs --------------------------------------------------- 2016-12-01:12:37:32.583256|switchd|24002|ERR|AMM|1|Failed to create VLAN 1 in Hardware 2016-12-01:12:37:31.734541|intfd|4001|INFO|AMM|1|Interface port_admin set to up for bridge_normal interface 2016-12-01:12:37:31.733551|lacpd|15007|INFO|AMM|1|LACP system ID set to 70:72:cf:51:50:7c
Showing all event logs:
switch# show events -a --------------------------------------------------- show event logs --------------------------------------------------- 2016-12-01:12:37:31.733551|lacpd|15007|INFO|AMM|1|LACP system ID set to 70:72:cf:51:50:7c 2016-12-01:12:37:31.734541|intfd|4001|INFO|AMM|1|Interface port_admin set to up for bridge_normal interface 2016-12-01:12:37:32.583256|switchd|24002|ERR|AMM|1|Failed to create VLAN 1 in Hardware
Showing event logs related to IRDP:
switch# switch# show events -c irdp 2016-05-31:06:26:27.363923|hpe-rdiscd|111001|LOG_INFO|IRDP enabled on interface %s 2016-05-31:07:08:51.351755|hpe-rdiscd|111002|LOG_INFO|IRDP disabled on interface %s
Showing event logs related to LACP:
switch# show events -c lacp --------------------------------------------------- show event logs --------------------------------------------------- 2016-12-01:12:37:31.733551|lacpd|15007|INFO|AMM|1|LACP system ID set to 70:72:cf:51:50:7c
switch# show events -m master --------------------------------------------------- show event logs --------------------------------------------------- 2020-04-22T05:36:13.348594+00:00 6300 lldpd[3055]: Event|109|LOG_INFO|MSTR|1|Configured LLDP tx-delay to 2 2020-04-22T05:36:14.430166+00:00 6300 vrfmgrd[3053]: Event|5401|LOG_INFO|MSTR|1|Created a vrf entity b1721d27-41c2-485d-9bae-2cfcbc9bd13d 2020-04-22T05:36:14.942597+00:00 6300 vrfmgrd[3053]: Event|5401|LOG_INFO|MSTR|1|Created a vrf entity 5eb532c9-5b4d-4d83-b34a-db24ae542d4e
switch# show events -i 1 --------------------------------------------------- Event logs from current boot --------------------------------------------------- 2020-04-22T05:36:14.430166+00:00 6300 vrfmgrd[3053]: Event|5401|LOG_INFO|MSTR|1|Created a vrf entity b1721d27-41c2-485d-9bae-2cfcbc9bd13d 2020-04-22T05:36:14.942597+00:00 6300 vrfmgrd[3053]: Event|5401|LOG_INFO|MSTR|1|Created a vrf entity 5eb532c9-5b4d-4d83-b34a-db24ae542d4e 2020-04-22T05:36:15.886252+00:00 6300 vsfd[710]: Event|9903|LOG_INFO|MSTR|1|Master 1 boot complete
Showing event logs as per the specified process:
switch# show events -d lacpd --------------------------------------------------- show event logs --------------------------------------------------- 2016-12-01:12:37:31.733551|lacpd|15007|INFO|AMM|1|LACP system ID set to 70:72:cf:51:50:7c
Displaying the specified number of event logs:
switch# show events -n 5 --------------------------------------------------- show event logs --------------------------------------------------- 2018-03-21:06:12:15.500603|arpmgrd|6101|LOG_INFO|AMM|-|ARPMGRD daemon has started 2018-03-21:06:12:17.734405|lldpd|109|LOG_INFO|AMM|-|Configured LLDP tx-delay to 2 2018-03-21:06:12:17.740517|lacpd|1307|LOG_INFO|AMM|-|LACP system ID set to 70:72:cf:d4:34:42 2018-03-21:06:12:17.743491|vrfmgrd|5401|LOG_INFO|AMM|-|Created a vrf entity 42cc3df7-1113-412f-b5cb-e8227b8c22f2 2018-03-21:06:12:17.904008|vrfmgrd|5401|LOG_INFO|AMM|-|Created a vrf entity 4409133e-2071-4ab8-adfe-f9662c06b889