show events
Syntax
show events [ -e <EVENT-ID> |
-s {alert | crit | debug | emer | err | info | notice | warn} |
-r | -a |
-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.
-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
Administrators
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 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