show events
Syntax
show events [ -e <EVENT-ID> |
-s {alert | crit | debug | emer | err | info | notice | warn} |
-r | -a | -i <MEMBER/SLOT> | -n <count> |
-m {active | 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-SLOT>
Shows the event logs for the specified slot ID.
-n <count>
Displays the specified number of event logs.
-m {active | standby}
Shows the event logs for the specified management card role on an 8400 or 6400 switch. Selecting active displays the event log for the AMM management card role and standby displays event logs for the SMM management card 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
switch# show events -c dhcp-relay 2016-05-31:06:26:27.363923|hpe-relay|110001|LOG_INFO|DHCP Relay Enabled 2016-05-31:07:08:51.351755|hpe-relay|110002|LOG_INFO|DHCP Relay Disabled
switch# show events -c dhcpv6-relay 2016-05-31:06:26:27.363923|hpe-relay|109001|LOG_INFO|DHCPv6 Relay Enabled 2016-05-31:07:08:51.351755|hpe-relay|109002|LOG_INFO|DHCPv6 Relay Disabled
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
Showing event logs as per the specified management card role for an 8400 or 6400 switch:
switch# show events -m active --------------------------------------------------- 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 as per the specified slot ID for an 8400 or 6400 switch:
switch# show events -i 1/1 --------------------------------------------------- show event logs --------------------------------------------------- 2017-08-17:22:32:25.743991|hpe-sysmond|6301|LOG_INFO|LC|1/1|System resource utilization poll interval is changed to 313 2017-08-17:22:33:01.692860|hpe-sysmond|6301|LOG_INFO|LC|1/1|System resource utilization poll interval is changed to 23 2017-08-17:22:33:06.181436|hpe-sysmond|6301|LOG_INFO|LC|1/1|System resource utilization poll interval is changed to 512 2017-08-17:22:33:06.181436|systemd-coredump|1201|LOG_CRIT|LC|1/1|hpe-sysmond crashed due to signal:11
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