R0106-HP MSR Router Series MPLS Command Reference(V7)

237
Examples
# Configure SNMP context vpna for VPN instance vpna.
<Sysname> system-view
[Sysname] snmp-agent context vpna
[Sysname] ip vpn-instance vpna
[Sysname-vpn-instance-vpna] route-distinguisher 22:33
[Sysname-vpn-instance-vpna] snmp context-name vpna
Related commands
snmp-agent context (Network Management and Monitoring Command Reference)
snmp-agent community-map (Network Management and Monitoring Command Reference)
snmp-agent trap enable l3vpn
Use snmp-agent trap enable l3vpn to enable SNMP notifications for MPLS L3VPN.
Use undo snmp-agent trap enable l3vpn to disable SNMP notifications for MPLS L3VPN.
Syntax
snmp-agent trap enable l3vpn
undo snmp-agent trap enable l3vpn
Default
SNMP notifications for MPLS L3VPN are enabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
This feature enables MPLS L3VPN to generate SNMP notifications. The generated SNMP notifications
are sent to the SNMP module.
For more information about SNMP notifications, see Network Management and Monitoring
Configuration Guide.
Examples
# Enable SNMP notifications for MPLS L3VPN.
<Sysname> system-view
[Sysname] snmp-agent trap enable l3vpn
tnl-policy (VPN instance view/IPv4 VPN view/IPv6 VPN view)
Use tnl-policy to associate a VPN instance with a tunnel policy.
Use undo tnl-policy to remove the association.
Syntax
tnl-policy tunnel-policy-name
undo tnl-policy