Dying Gasp

Dying Gasp

The Dying Gasp feature is a network device capability that provides a warning when power fails, enabling a temporary power supply for graceful shutdown and sends a message or signal to the network management system (NMS) through an SNMP trap. Dying Gasp feature

  • enables a temporary backup power supply (capacitor) lasting 5 to 10 milliseconds for a graceful shutdown and message generation, and

  • sends a dying-gasp message or SNMP trap to the network management system (NMS) before shutting down upon power failure.

Dying Gasp packets can be sent to a maximum of five servers for each notification type.


Note


The Dying Gasp feature works only in standalone Cisco Catalyst IE9300 Rugged Series Switches.


Enable dying-gasp notification

Use the dying-gasp command to enable dying-gasp notification through syslog, SNMP trap, or Ethernet OAM.

Procedure


Step 1

Use the configure terminal command to enter global configuration mode.

Example:

Switch# configure terminal

Step 2

Use the dying-gasp primary {syslog | snmp-trap | ethernet-oam} secondary {syslog | snmp-trap | ethernet-oam} command to configure dying-gasp notification.

Table 1. Syntax description

Command syntax

Description

primary Configures Dying-gasp primary notification.
secondary

configures Dying-gasp secondary notification.

ethernet-oam

Enables Ethernet-OAM notification command.

Note

 

ethernet-oam is not supported on Cisco Catalyst IE9300 Rugged Series Switches .

snmp-trap

Sends trap notification to SNMP server command.

syslog

Enables system logger.

Use the snmp-server host command to specify the SNMP server for the dying-gasp message.

Use the logging host hostname-or-ipaddress transport udp command to specify the syslog server sending the syslog dying gasp message.

Example:

Switch(config)# dying-gasp primary snmp-trap secondary syslog

Step 3

(Optional) Use the show dying-gasp {status | packets [snmp-trap | syslog | ethernet-oam]} command to monitor Dying-Gasp configuration status and packet details, SNMP trap, syslog, and Ethernet OAM messages.

Table 2. Syntax description

Command

Description

dying-gasp

Displays Dying-Gasp information.

status

Displays Dying-Gasp configuration status.

packets

Displays detailed information about the created packets.

snmp-trap

Displays Dying-gasp SNMP trap information.

syslog

Displays Dying-gasp syslog message information.

ethernet-oam Displays Dying-gasp Ethernet OAM message information.

Note

 

ethernet-oam is not supported on Cisco Catalyst IE9300 Rugged Series Switches .

This is a sample example of the dying gasp packets command and its output:

Switch# show dying-gasp packets 
SNMP Trap packet for server 192.168.0.2, link type IP
interface, via GigabitEthernet1/0/24, local IP address 12.1.1.40
encap type is ARPA, local hardware address 6c03.09e7.23c0
next hop IP address 12.1.1.200, next hop hardware address 6c03.09e7.23c0
Syslog errmsg packet for server 192.168.0.2, link type IP
interface, via GigabitEthernet1/0/24, local IP address 12.1.1.40
encap type is ARPA, local hardware address 6c03.09e7.23c0
next hop IP address 12.1.1.200, next hop hardware address 6c03.09e7.23c0

This is a sample output for the show dying-gasp status command:

Switch# show dying-gasp status
Dying Gasp Configuration
SNMP Trap             Enabled (secondary)
Syslog                Enabled (primary)

This is a sample output for the show dying-gasp packets snmp-trap command:

Switch# show dying-gasp packets snmp-trap
SNMP Trap packet for server 192.168.0.2, link type IP
interface, via GigabitEthernet1/0/24, local IP address 12.1.1.40
encap type is ARPA, local hardware address 6c03.09e7.23c0
next hop IP address 12.1.1.200, next hop hardware address 6c03.09e7.23c0

This is a sample output for the show dying-gasp packets syslog command:

Switch# show dying-gasp packets syslog
Syslog errmsg packet for server 192.168.0.2, link type IP
interface, via GigabitEthernet1/0/24, local IP address 12.1.1.40
encap type is ARPA, local hardware address 6c03.09e7.23c0
next hop IP address 12.1.1.200, next hop hardware address 6c03.09e7.23c0