The objective of this article is to configure Dying Gasp feature in Catalyst 1300 switches using the command line interface (CLI).
Dying Gasp is a feature that is available only on the Catalyst 1300 series switches and provides a mechanism to alert monitoring systems that the device is experiencing an unexpected loss of power before it loses connection. When a loss of power event occurs, a hardware capacitor will delay the device shutting down for a short time. During this time, the device will send Dying Gasp messages via configured Syslog servers or SNMP notification recipients that can be used to identify the cause of the issue and troubleshoot.
You can configure Dying Gasp via the CLI using simple commands. Keep reading to find out more.
Enter the global configuration of the switch by typing config terminal.
switch# configure terminal
To enable Dying Gasp, type dying-gasp enable <method1> [method2]. The first method specified will be the Primary Dying Gasp method.
switch (config)# dying-gasp enable syslog-msg snmp-trap-msg
In this example, the primary dying gasp method will by syslog logging.
You can disable dying gasp by entering no dying-gasp enable.
switch# no dying-gasp enable
To see the dying gasp configuration, enter show dying-gasp packets from enable mode.
switch# show dying-gasp status
To find out more details about where dying gasp will be sending the dying gasp packets, enter show dying-gasp packets. This shows the syslog server/SNMP servers configured and the interfaces that will be used.
switch# show dying-gasp packets
In this example, a syslog server has been configured on 172.16.1.182 but no SNMP server has been configured.
Now you are all set! With dying gasp configured on your Catalyst 1300 switch, you can be alerted about any power loss issues with the device.
Check out the following pages for more information on the Catalyst 1300 switches.
For other configurations and features, refer to the Catalyst series Administration Guide.
Revision | Publish Date | Comments |
---|---|---|
1.0 |
08-Aug-2023 |
Initial Release |