snmp server trap cache

Use this command to configure the trap caching settings for SNMP.

Use the no form of this command to disable caching for SNMP.

Command Syntax

snmp-server trap-cache (timeout <timeout> | max-count <max-count> | disable-ping |)

no snmp-server trap-cache

Parameter

timeout <timeout>

Specifies the maximum time (in seconds) that traps will be cached before being sent. This sets the trap cache timeout.

max-count <max-trap-count>

Specifies the maximum number of traps that can be cached before they are flushed and sent.

disable-ping

Disables ping check for host availability. If ping is disabled, traps will be sent after the configured timeout.

Default

Disabled

Command Mode

Trap Cache mode

Applicability

This command was introduced inOcNOS version 6.5.3.

Examples

OcNOS#configure terminal

OcNOS(config)#snmp-server trap-cache

OcNOS(config-trap-cache)#timeout 60