snmp-server enable traps holddown-time

Configures the wait time before starting to send SNMP traps.
Syntax
snmp-server enable traps holddown-time time
no snmp-server enable traps holddown-time time
Command Default

The default hold-down time is 60 seconds.

Parameters
time
The time in seconds. The valid range is from 1 through 600 seconds. The default is 60 seconds.
Modes

Global configuration mode

Usage Guidelines

When a device starts up, the software waits for Layer 2 convergence (STP) and Layer 3 convergence (OSPF) before beginning to send SNMP traps to external SNMP servers. Until convergence occurs, the device may not be able to reach the servers, in which case the messages are lost.

By default, a device uses a one-minute hold-down time to wait for the convergence to occur before starting to send SNMP traps. After the hold-down time expires, the device sends the traps, including traps such as "cold start" or "warm start" that occur before the hold-down time expires.

When you have a stack of eight or more units, you must increase the trap hold-down time from the default (60 seconds) to five minutes (300 seconds). This will prevent the loss of initial boot traps.

The no form of the command changes the hold-down time to the default value.

Examples

The following example changes the hold-down time for SNMP traps to 30 seconds.

device# configure terminal
device(config)# snmp-server enable traps holddown-time 30