To associate an access list to the transfer protocols TFTP, FTP, Remote Copy Protocol (RCP), Secure Copy Protocol (SCP), and Secured File Transfer Protocol (SFTP), use the snmp-serverfile-transferaccess-group command in global configuration mode. To disassociate an access list, use no form of this command.
Integer from 1 to 99 that specifies a standard ACL.
acl-name
String that specifies a standard ACL.
protocol
(Optional) Enables the user to associate a named protocol with an access group.
p-name
(Optional) Name of a transfer protocol. Valid values are: ftp, rcp, scp, sftp, and tftp.
Command Default
If a protocol is not specified, all protocols are associated with the access list.
Command Modes
Global configuration
Command History
Release
Modification
12.4(12)
This command was introduced.
This command replaces the snmp-servertftp-server-list command.
Usage Guidelines
The snmp-servertftp-server-list command is still supported in Cisco IOS software, but if it is configured as snmp-servertftp-server-list10, it will be substituted with the snmp-serverfile-transferaccess-group10protocoltftpcommand.
Use the snmp-serverfile-transferaccess-groupcommand to restrict configuration transfers that are initiated via Simple Network Management Protocol (SNMP). You can restrict transfers for specific transfer protocols by associating an access list to the protocol.
Examples
The following example associates access group 10 to the transfer protocols FTP and RCP:
Associates TFTP servers used via SNMP controlled TFTP operations to the servers specified in an access list.
snmp-server ip dscp
To set the IP Differentiated Services Code Point (DSCP) value for Simple Network Management Protocol (SNMP) traffic, use the snmp-serveripdscp command in global configuration mode. To disable the configured value, use the no form of this command.
snmp-serveripdscpvalue
nosnmp-serveripdscpvalue
Syntax Description
value
The IP DSCP value to apply to SNMP traffic. Valid values for IP DSCP are 0 through 63. The default is 0.
Command Default
The IP DSCP default value for SNMP traffic is 0.
Command Modes
Global config
Release
Modification
12.0(26)S
This command was introduced.
12.4(20)T
This command was integrated into Cisco IOS Release 12.4(20)T.
Usage Guidelines
Use this command to specify an IP DSCP value to give SNMP traffic higher or lower priority in your network.
The following example shows how to set the IP DSCP value to 45:
Router(config)# snmp-server ip dscp 45
Related Commands
Command
Description
snmp-serveripprecedence
Configures the IP Precedence value.
snmp-server ip precedence
snmp-serveripprecedencevalue
nosnmp-serveripprecedencevalue
Syntax Description
value
The IP Precedence value to apply to SNMP traffic. Valid
values for IP Precedence are 0 through 7. The default is 0.
Command Default
The IP Precedence default value for SNMP traffic is 0.
Command Modes
Global config.
Command History
Release
Modification
12.0(26)S
This command was introduced.
12.4(20)T
This command was integrated into Cisco IOS Release
12.4(20)T.
Usage Guidelines
Use this command to specify an IP Precedence value to give SNMP
traffic higher or lower priority in your network.
Examples
The following example shows how to set the IP Precedence value to 7:
Router(config)# snmp-server ip precedence7
Related Commands
Command
Description
snmp-serveripdscp
Configures the IP DSCP value.
snmp-server manager
To start the Simple Network Management Protocol (SNMP) manager process, use the snmp-servermanagercommand in global configuration mode. To stop the SNMP manager process, use the no form of this command.
snmp-servermanager
nosnmp-servermanager
Syntax Description
This command has no arguments or keywords.
Command Default
Disabled
Command Modes
Global configuration (config)
Command History
Release
Modification
11.3T
This command was introduced.
12.2(33)SRA
This command was integrated into Cisco IOS Release 12.2(33)SRA.
12.2SX
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.
Cisco IOS XE Release 2.1
This command was integrated into Cisco IOS Release XE 2.1.
Usage Guidelines
The SNMP manager process sends SNMP requests to agents and receives SNMP responses and notifications from agents. When the SNMP manager process is enabled, the router can query other SNMP agents and process incoming SNMP traps.
Most network security policies assume that routers will be accepting SNMP requests, sending SNMP responses, and sending SNMP notifications. With the SNMP manager functionality enabled, the router may also be sending SNMP requests, receiving SNMP responses, and receiving SNMP notifications. The security policy implementation may need to be updated prior to enabling this functionality.
SNMP requests are typically sent to UDP port 161. SNMP responses are typically sent from UDP port 161. SNMP notifications are typically sent to UDP port 162.
Examples
The following example shows how to enable the SNMP manager process:
Router(config)# snmp-server manager
Related Commands
Command
Description
showsnmp
Checks the status of SNMP communications.
showsnmppending
Displays the current set of pending SNMP requests.
showsnmpsessions
Displays the current SNMP sessions.
snmp-servermanagersession-timeout
Sets the amount of time before a nonactive session is destroyed.
snmp-server manager session-timeout
To set the amount of time before a nonactive session is destroyed, use the snmp-servermanagersession-timeout command in global configuration mode. To return the value to its default, use the no form of this command.
snmp-servermanagersession-timeoutseconds
nosnmp-servermanagersession-timeout
Syntax Description
seconds
Number of seconds before an idle session is timed out. The default is 600.
Command Default
Idle sessions time out after 600 seconds (10 minutes).
Command Modes
Global configuration (config)
Command History
Release
Modification
11.3T
This command was introduced.
12.2(33)SRA
This command was integrated into Cisco IOS Release 12.2(33)SRA.
12.2SX
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.
Cisco IOS XE Release 2.1
This command was integrated into Cisco IOS Release XE 2.1.
Usage Guidelines
Sessions are created when the SNMP manager in the router sends SNMP requests, such as inform requests, to a host or receives SNMP notifications from a host. One session is created for each destination host. If there is no further communication between the router and host within the session timeout period, the session will be deleted.
The router tracks statistics, such as the average round-trip time required to reach the host, for each session. Using the statistics for a session, the SNMP manager in the router can set reasonable timeout periods for future requests, such as informs, for that host. If the session is deleted, all statistics are lost. If another session with the same host is later created, the request timeout value for replies will return to the default value.
However, sessions consume memory. A reasonable session timeout value should be large enough such that regularly used sessions are not prematurely deleted, yet small enough such that irregularly used, or one-shot sessions, are purged expeditiously.
Examples
The following example shows how to set the session timeout to a larger value than the default:
Displays the current set of pending SNMP requests.
showsnmpsessions
Displays the current SNMP sessions.
snmp-servermanager
Starts the SNMP manager process.
snmp-server queue-length
To establish the message queue length for each trap host, use the snmp-serverqueue-length command in global configuration mode.
snmp-serverqueue-lengthlength
Syntax Description
length
Integer that specifies the number of trap events that can be held before the queue must be emptied. The default is 10.
Command Default
The queue length is set to 10.
Command Modes
Global configuration
Command History
Release
Modification
10.0
This command was introduced.
12.2(33)SRA
This command was integrated into Cisco IOS Release 12.2(33)SRA.
12.2SX
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.
Usage Guidelines
This command defines the length of the message queue for each trap host. When a trap message is successfully transmitted, Cisco IOS software will continue to empty the queue but never faster than at a rate of four trap messages per second.
During device bootup, some traps could be dropped because of trap queue overflow on the device. If you think that traps are being dropped, you can increase the size of the trap queue (for example, to 100) to determine if traps can then be sent during bootup.
Examples
The following example shows how to set the Simple Network Management Protocol (SNMP) notification queue to 50 events:
Router(config)# snmp-server queue-length 50
Related Commands
Command
Description
snmp-serverpacketsize
Establishes control over the largest SNMP packet size permitted when the SNMP server is receiving a request or generating a reply.
snmp-server queue-limit
To establish the message queue size for various queues, use the snmp-serverqueue-limit command in global configuration mode. To disable the configured settings, use the no form of this command.
Specifies the message queue length for each notification host.
queue-length
Length of the queue.
The range for dispatcher and engine is 1 to 1000. The range for notification-host is 1 to 5000. The default queue-length value for notification-host is 10.
Command Default
By default, message queue size is not set.
Command Modes
Global configuration (config)
Command History
Release
Modification
12.0(33)S
This command was introduced.
12.4(20)T
This command was integrated into Cisco IOS Release 12.4(20)T.
12.4(22)T
This command was modified. The range of queue length for notification host was changed to 1 to 5000.
Usage Guidelines
Use the snmp-serverqueue-limit command to set the message queue size for different queues. Using this command you can resize the queue for dispatcher, engine, and host traps.
Examples
The following example shows how to set the message queue length of each notification host to 50:
Establishes the message queue length for each trap host.
snmp-server source-interface
To specify the interface from which a Simple Network Management Protocol (SNMP) trap originates the informs or traps, use the snmp-serversource-interface command in global configuration mode. To remove the source designation, use the no form of this command.
The interface type and the module and port number of the source interface.
Command Default
No interface is designated.
Command Modes
Global configuration (config)
Command History
Release
Modification
12.2(18)SXB2
This command was introduced.
12.2(18)SXF6
The informs keyword was added. This command replaced the snmp-servertrap-sourcecommand.
12.2SX
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.
Usage Guidelines
This command replaced the snmp-servertrap-sourcecommand.
Note
The snmp-servertrap-sourcecommand is available in other versions of Cisco IOS software for backward compatibility.
The source interface must have an IP address. Enter the interface argument in the following format: interface-typemodule/port.
An SNMP trap or inform sent from a Cisco SNMP server has a notification IP address of the interface it went out of at that time. Use this command to monitor notifications from a particular interface.
Examples
The following example shows how to specify that Gigabit Ethernet interface 5/2 is the source for all informs:
The following example shows how to remove the source designation for all traps for a specific interface:
no snmp-server source-interface traps gigabitethernet5/3
Related Commands
Command
Description
snmp-server enable traps
Enables a router to send SNMP traps and informs.
snmp-serverhost
Specifies the recipient of an SNMP notification operation.
snmp-servertrap-source
Specifies the interface from which a SNMP trap should originate.
snmp-server trap authentication unknown-context
To enable the
Simple Network Management Protocol (SNMP)
authorization failure
(authFail)
traps during an unknown context error, use the snmp-servertrapauthenticationunknown-context command in global configuration mode. To disable the
authFail
traps, use the no form of this command.
snmp-servertrapauthenticationunknown-context
nosnmp-servertrapauthenticationunknown-context
Syntax Description
This command has no arguments or keywords.
Command Default
No authFail traps are generated.
Command Modes
Global configuration (config)
Command History
Release
Modification
12.2(18)SXF5
This command was introduced on the Supervisor Engine 720 and the Supervisor Engine 32.
12.4(22)T
This command was integrated into a release earlier than Cisco IOS Release 12.4(22)T.
12.2(33)SXI
This command was integrated into a release earlier than Cisco IOS Release 12.2(33)SXI.
Examples
The following example shows how to enable the authorization failure traps during an unknown context error:
The following example shows how to disable the authorization failure traps during an unknown context error:
Router(config)# no snmp-server trap authentication unknown-context
snmp-server trap authentication vrf
To enable virtual private network (VPN) routing and forwarding (VRF) instance context authentication notifications, use the snmp-servertrapauthenticationvrfcommand in global configuration mode. To suppress authentication notifications for Simple Network Management Protocol (SNMP) packets dropped due specifically to VRF context mismatches while keeping all other SNMP authentication notifications enabled, use the no form of this command.
snmp-servertrapauthenticationvrf
nosnmp-servertrapauthenticationvrf
Syntax Description
This command has no arguments or keywords.
Command Default
No VRF-specific authentication notifications are enabled when SNMP authentication notifications are not enabled.
Command Modes
Global configuration (config)
Command History
Release
Modification
12.0(23)S
This command was introduced.
12.3(2)T
This command was integrated into Release 12.3(2)T.
12.2(25)S
This command was integrated into Cisco IOS Release 12.2(25)S.
12.2(33)SRA
This command was integrated into Cisco IOS Release 12.2(33)SRA.
12.2(33)SXH
This command was integrated into Cisco IOS Release 12.2(33)SXH.
12.2SX
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.
12.2(33)SB
This command was integrated into Cisco IOS Release 12.2(33)SB.
Usage Guidelines
The snmp-serverenabletrapssnmpauthenticationcommand controls SNMP authentication traps and the no form of this command disables all SNMP authentication failure notifications. The snmp-servertrapauthenticationvrf command provides more granular control of these notifications.
With context-based MIB access, SNMP requests on each VRF are tied to a specific context. This context is used for access control. If SNMP contexts are configured for VPNs, any SNMP request not matching the configured context will generate an SNMP authentication failure notification.The nosnmp-servertrapauthenticationvrf command allows you to suppress the authentication failure notifications that are specific to these VRF contexts, while keeping all other SNMP authentication failure notifications enabled.
The nosnmp-servertrapauthenticationvrf command has no effect if the snmp-serverenabletrapssnmpauthenticationcommand has not been configured..
Examples
The following example shows how to enable a router to send SNMP authentication traps to host myhost.cisco.com using the community string public while disabling all VRF authentication traps:
Router(config)# snmp-server enable traps snmp authentication
Router(config)# no snmp-server trap authentication vrf
Router(config)# snmp-server host myhost.cisco.com public
Related Commands
Command
Description
snmp-serverenabletrapssnmp
Enables the sending of RFC 1157 SNMP notifications.
snmp-serverhost
Specifies the recipient of an SNMP notification operation.
snmp-server trap link
To enable
linkUp/linkDown Simple Network Management Protocol (SNMP) traps that are compliant with RFC2233, use the snmp-servertraplink command in global configuration mode. To disable IETF- compliant functionality and revert to the default Cisco implementation of linkUp/linkDown traps, use the no form of this command.
snmp-servertraplinkietf
nosnmp-servertraplinkietf
Syntax Description
ietf
Notifies the command parser to link functionality of SNMP linkUp/linkDown traps to the Internet Engineering Task Force (IETF) standard (instead of the previous Cisco implementation).
Command Default
This command is disabled by default.
Command Modes
Global configuration
Command History
Release
Modification
12.1(2)T
This command was introduced.
12.2(33)SRA
This command was integrated into Cisco IOS Release 12.2(33)SRA.
12.2SX
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.
Usage Guidelines
The snmp-servertraplinkietf command is used to configure your router to use the RFC2233 IETF standards-based implementation of linkUp/linkDown traps. This command is disabled by default to allow you to continue using the earlier Cisco implementation of linkUp/linkDown traps if you so choose.
However, please note that when using the default Cisco object definitions, linkUp/linkDown traps are not generated correctly for sub-interfaces. In the default implementation an arbitrary value is used for the locIfReason
object in linkUp/linkDown traps for sub-interfaces, which may give you unintended results. This is because the locIfReason
object is not defined for sub-interfaces in the current Cisco implementation, which uses OLD-CISCO-INTERFACES-MIB.my.
If you do not enable this functionality, the link trap varbind list will consist of {ifIndex, ifDescr, ifType, locIfReason}. After you enable this functionality with the snmp-servertraplinkietf command, the varbind list will consist of {inIndex, ifAdminStatus,ifOperStatus, if Descr, ifType}. The locIfReason
object will also be conditionally included in this list depending on whether meaningful information can be retrieved for that object. A configured sub-interface will generate retrievable information. On non-HWIDB interfaces, there will be no defined value for locIfReason
, so it will be omitted from the trap message.
Examples
The following example shows the enabling of the RFC 2233 linkUp/linkDown traps, starting in privileged EXEC mode:
Router#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
snmp-server trap link ietf
Router(config)#
end
Router#
more system:running configuration
.
.
.
!
snmp-server engineID local 00000009000000A1616C2056
snmp-server community public RO
snmp-server community private RW
snmp-server trap link ietf
!
.
.
.
Related Commands
Command
Description
debugsnmppackets
Displays information about every SNMP packet sent or received by the router for the purposes of troubleshooting.
snmp-server trap link switchover
To enable sending a linkdown trap followed by a linkup trap for every interface in the switch during a switch failover, use the snmp-servertraplinkswitchover command in global configuration mode. To disable linkdown during a switch failover, use the no form of this command.
snmp-servertraplinkswitchover
nosnmp-servertraplinkswitchover
Syntax Description
This command has no arguments or keywords.
Command Default
This command is enabled by default.
Command Modes
Global configuration
Command History
Release
Modification
12.2(18)SXF2
This command was introduced on the Supervisor Engine 720 and the Supervisor Engine 32.
12.2SX
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.
Usage Guidelines
By default, no link traps are generated during a switchover.
Examples
This example shows how to enable sending a linkdown trap followed by a linkup trap for every interface in the switch during a switch failover:
snmp-server trap link switchover
This example shows how to disable linkdown followed by a linkup trap for every interface in the switch during a switch failover:
no snmp-server trap link switchover
snmp-server trap retry
To define the number of times the Simple Network Management Protocol (SNMP) agent on a device tries to find a route before it sends traps, use the snmp-servertrapretry command in global configuration mode.
snmp-servertrapretrynumber
Syntax Description
number
Integer from 0 to 10 that sets the number of times the message will be retransmitted. The default is 3.
Command Default
Messages are not retransmitted.
Command Modes
Global configuration
Command History
Release
Modification
12.2(33)SRA
This command was introduced.
Usage Guidelines
The SNMP agent looks for a configured route in the system before sending a trap out to a destination. If a route is not present, traps are queued in the trap queue and discarded when the queue becomes full. When the snmp-servertrapretry command is configured, the route search retry number tells the agent how many times to look for the route before sending the trap out.
Configuring the snmp-servertrapretry command also ensures that policy-based routing traps are sent and not discarded. Policy-based traps must be sent immediately and routes are not needed. The number of retries must be set to 0 so that policy-based traps are sent immediately.
Examples
The following example shows how to set the number of times a SNMP agent on a device tries to find a route to 10:
Router(config)# snmp-server trap retry 10
Related Commands
Command
Description
snmp-servertraptimeout
Defines an interval of time between retransmissions of traps on a retransmission queue.
snmp-server trap timeout
To define an interval of time between retransmissions of trap messages on a retransmission queue, use the
snmp-servertraptimeout command in global configuration mode.
snmp-servertraptimeoutseconds
Syntax Description
seconds
Integer from 1 to 1000 that sets the interval, in seconds, for resending messages. The default is 30.
Command Default
This command is disabled.
Command Modes
Global configuration
Command History
Release
Modification
12.2(33)SRA
This command was introduced. This command replaces the
snmp-servertrap-timeout command in Cisco IOS Release 12.2SR only.
Usage Guidelines
Before a trap is sent, the SNMP agent looks for a route to the destination address. If there is no known route, the trap is saved in a retransmission queue. Issue the
snmp-servertraptimeout command to configure the number of seconds between retransmission attempts.
Examples
The following example shows how to set an interval of 20 seconds between retransmissions of traps:
Router(config)# snmp-server trap timeout 20
Related Commands
Command
Description
snmp-serverhost
Specifies the recipient of an SNMP notification operation.
snmp-serverqueue-length
Establishes the message queue length for each trap host.
snmp-server trap-authentication
The snmp-servertrap-authentication command has been replaced by the snmp-serverenabletrapssnmpauthentication command. See the description of the snmp-serverenabletrapssnmp command in this chapter for more information.
snmp-server trap-timeout
Note
This command is not supported in Cisco IOS Release 12.2SR. For Cisco IOS Release12.2SR, use the snmp-servertraptimeout command.
To define an interval of time before resending trap messages on the retransmission queue, use the snmp-servertrap-timeout command in global configuration mode.
snmp-servertrap-timeoutseconds
Syntax Description
seconds
Integer from 1 to 1000 that sets the interval, in seconds, for resending messages. The default is 30.
Command Default
30 seconds
Command Modes
Global configuration
Command History
Release
Modification
10.0
This command was introduced.
12.2(33)SRA
This command was replaced by the snmp-servertraptimeout command in Cisco IOS Release 12.2SR.
Usage Guidelines
The snmp-servertrap-timeout command remains in Cisco IOS software for compatibility but is written in the configuration as snmp-servertraptimeout.
Before the Cisco IOS software tries to send a trap, it looks for a route to the destination address. If there is no known route, the trap is saved in a retransmission queue. The snmp-servertrap-timeout command determines the number of seconds between retransmission attempts.
Examples
The following example shows how to set an interval of 20 seconds between resending trap messages on the retransmission queue:
Router(config)# snmp-server trap-timeout 20
Related Commands
Command
Description
snmp-serverhost
Specifies the recipient of an SNMP notification operation.
snmp-serverqueue-length
Establishes the message queue length for each trap host.
snmp-server usm cisco
To enable Cisco-specific error messages for Simple Network Management Protocol Version 3 (SNMPv3), which is a User-based Security Model (USM), use the
snmp-serverusmcisco command in global configuration mode. To disable the Cisco-specific error messages for SNMPv3 USM, use the
no form of this command.
snmp-serverusmcisco
nosnmp-serverusmcisco
Syntax Description
This command has no arguments or keywords.
Command Default
Cisco-specific error messages for SNMPv3 USM are disabled.
Command Modes
Global configuration (config)
Command History
Release
Modification
15.2(1)T
This command was introduced.
Usage Guidelines
The RFC 3414-compliant error messages are descriptive and can lead to misuse of information by malicious users. Use the
snmp-serverusmcisco command to enable Cisco-specific messages that help to hide the exact error condition. Enabling Cisco-specific messages for SNMPv3 is a deviation from RFC 3414.
Examples
The following example shows how to enable the Cisco-specific error messages for SNMPv3 USM:
Displays the contents of the current running configuration file or the configuration for a specific module, Layer 2 VLAN, class map, interface, map class, policy map, or virtual circuit (VC) class.
snmp trap if-monitor
To enable if-monitor traps for a particular interface, use the snmptrapif-monitorcommand in interface configuration mode. To disable traps on an interface, use the no form of this command.
snmptrapif-monitor
nosnmptrapif-monitor
Syntax Description
This command has no arguments or keywords.
Command Default
Traps are not generated.
Command Modes
Interface configuration (config-if)
Command History
Release
Modification
12.3(1)
This command was introduced.
Usage Guidelines
Traps are sent for the interface only if they have been enabled globally by issuing the snmp-serverenabletrapsif-monitor command and then explicitly on that interface by issuing the snmptrapif-monitorcommand.
Examples
The following example shows how to enable if-monitor traps on a specific interface:
To enable Simple Network Management Protocol (SNMP) link trap generation, use the
snmptraplink-status command in either interface configuration mode or service instance configuration mode. To disable SNMP link trap generation, use the
no form of this command.
snmptraplink-status
[ permitduplicates ]
nosnmptraplink-status
[ permitduplicates ]
Syntax Description
permitduplicates
(Optional) Permits duplicate SNMP linkup and linkdown traps.
Command Default
SNMP link traps are generated when an interface goes up or down.
Command Modes
Interface configuration (config-if)
Service instance configuration (config-if-srv)
Command History
Release
Modification
10.0
This command was introduced.
12.2(30)S
This command was modified. The
permitduplicates keyword pair was added.
12.3(8)T
This command was integrated into Cisco IOS Release 12.3(8)T.
12.2(33)SRA
This command was integrated into Cisco IOS Release 12.2(33)SRA.
12.2SX
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.
12.2(33)SB
This command’s behavior was modified on the Cisco 10000 series router for the PRE3 and PRE4 as described in the Usage Guidelines.
12.2(33)SRD1
Support for this command was extended to service instance configuration mode.
12.2(33)SRE6
This command was modified. This command must be enabled on each subinterface from this release onwards.
15.1(3)S3
This command was integrated into Cisco IOS Release 15.1(3)S3.
Usage Guidelines
By default, SNMP link traps are sent when an interface goes up or down. For interfaces such as ISDN interfaces, expected to go up and down during normal usage, the output generated by these traps may not be useful. The
no form of this command disables these traps.
The
permit andduplicates keywords are used together and cannot be used individually. Use the
permitduplicates keyword pair when an interface is not generating SNMP linkup traps, linkdown traps, or both. When the
snmptraplink-statuspermitduplicates command is configured, more than one trap may be sent for the same linkup or linkdown transition.
The
permitduplicates keyword pair does not guarantee that SNMP link traps will be generated nor should configuring these keywords be required to receive traps.
By default, in service instance configuration mode, SNMP link traps are not sent. Also, the
permitduplicates keyword pair is not available in service instance configuration mode.
The
snmptraplink-status command must be used in conjunction with the
snmp-serverenabletrapsatmsubif command in order to enable SNMP trap notifications on ATM subinterfaces. The
snmp-serverenabletrapsatmsubif command must be configured in global configuration mode, and then the
snmptraplink-status command must be configured on each ATM subinterface for which you want to enable SNMP trap notifications.
Cisco 10000 Series Router
In Cisco IOS Release 12.2(33)SB, the
virtual-templatesnmp command has a new default configuration. Instead of being enabled by default,
novirtual-templatesnmp is the default configuration. This setting enhances scaling and prevents large numbers of entries in the MIB ifTable, thereby avoiding CPU Hog messages as SNMP uses the interfaces MIB and other related MIBs.
If you configure the
novirtual-templatesnmp command, the device no longer accepts the
snmp trap link-status command under a virtual-template interface. Instead, the device displays a configuration error message such as the following:
Device(config)# interface virtual-template 1
Device(config-if)# snmp trap link-status
%Unable set link-status enable/disable for interface
If your configuration already has the
snmp trap link-status command configured under a virtual-template interface and you upgrade to Cisco IOS Release 12.2(33)SB, the configuration error occurs when the device reloads even though the virtual template interface is already registered in the interfaces MIB.
Examples
The following example shows how to disable SNMP link traps related to the ISDN BRI interface 0:
Device(config)# interface bri 0
Device(config-if)# no snmp trap link-status
The following example shows how to enable SNMP link traps for service instance 50 on Ethernet interface 0/1:
Device(config)# interface ethernet 0/1
Device(config-if)# service instance 50 ethernet
Device(config-if-srv)# snmp trap link-status
Device(config-if-srv)# end
Related Commands
Command
Description
snmp-serverenabletrapsatmsubif
Enables the sending of ATM subinterface SNMP notifications.
virtual-template snmp
Allows virtual access interfaces to register with SNMP when they are created or reused.