Netconf SNMP proxyΒΆ
The netconf-snmp daemon provides a proxy between netconf notifications and SNMP. This daemon allows netconf notifications such as alarms to be forwarded as SNMP traps.
The daemon runs in the VRF main, it means that you need to either setup an SNMP instance in this VRF or monitor it from another VRF.
Here is an example of configuration that will start the daemon, and raise a trap for each alarm notification raised by netconf:
vsr running config# / system netconf-snmp trap-on-alarms true
To display the netconf-snmp daemon state:
vsr> show state / system netconf-snmp
netconf-snmp
enabled true
trap-on-alarms true
trap-on-config-change false
trap-on-session-start false
trap-on-session-end false
..
The same configuration can be made using this NETCONF XML configuration:
vsr> show config xml absolute / system netconf-snmp
<config xmlns="urn:6wind:vrouter">
<system xmlns="urn:6wind:vrouter/system">
<netconf-snmp xmlns="urn:6wind:vrouter/netconf-snmp">
<enabled>true</enabled>
<trap-on-alarms>true</trap-on-alarms>
</netconf-snmp>
</system>
</config>
Here is a quick explanation of each trap state:
trap-on-alarms
: if enabled, an SNMP trap is raised for each alarm raised by netconf.trap-on-config-change
: if enabled, an SNMP trap is raised when the configuration changes.trap-on-session-start
: if enabled, an SNMP trap is raised when a client starts a netconf session.trap-on-session-end
: if enabled, an SNMP trap is raised when a client ends a netconf session.
See also SNMP for more information to configure your SNMP instance.