Manual

Layer 2 Tunnel Protocol Version 3
snmp-server enable traps l2tun session
142
Cisco IOS Releases 12.0(29)S and 12.2(25)S
snmp-server enable traps l2tun session
To enable Simple Network Management Protocol (SNMP) notifications (traps or inform requests) for
Layer 2 Tunnel Protocol Version 3 (L2TPv3) sessions, use the snmp-server enable traps l2tun session
command in global configuration mode. To disable SNMP notifications, use the no form of this
command.
snmp-server enable traps l2tun session
no snmp-server enable traps l2tun session
Syntax Description This command has no arguments or keywords.
Defaults This command is disabled by default.
Command Modes Global configuration
Command History
Usage Guidelines SNMP notifications can be sent as traps or inform requests. This command enables both traps and inform
requests for L2TP sessions. To specify whether the notifications should be sent as traps or informs, use
the snmp-server host [traps | informs] command.
If you do not enter the snmp-server enable traps l2tun session command, no notifications are sent.
The snmp-server enable traps l2tun session command is used in conjunction with the snmp-server
host command. Use the snmp-server host command to specify which host or hosts receive SNMP
notifications.
Examples The following example enables the router to send L2TP session traps to the host specified by the name
myhost.cisco.com, using the community string defined as public:
Router(config)# snmp-server enable traps l2tun session
Router(config)# snmp-server host myhost.cisco.com public
Related Commands
Release Modification
12.0(23)S This command was introduced.
12.2(25)S This command was integrated into Cisco IOS Release 12.2(25)S.
Command Description
snmp-server host Specifies whether you want the SNMP notifications sent as
traps or informs, the version of SNMP to use, the security level
of the notifications (for SNMPv3), and the recipient (host) of
the notifications.