Support for multiple snmp server contexts, Setting the snmp server context – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 114

82
Network OS NETCONF Operations Guide
53-1003231-02
Support for multiple SNMP server contexts
7
<user>
<username>snmpuser3</username>
<auth>md5</md5>
<priv>DES</priv>
</user>
<host>
<ip>10.17.37.107</ip>
<community>public</community>
</host>
<agtconfig>
<contact>Field Support</contact>
<location>End User Premise</location>
</agtconfig>
</snmp-server>
</rpc-reply>
Support for multiple SNMP server contexts
A single SNMP agent can be supported by the multiple instances of the same MIB module by
mapping the context name with the VRF. The context can be mapped to a VRF as described in
“Setting the SNMP server context”
. The SNMP agent supports 256 contexts to support context to
VRF mapping.
Setting the SNMP server context
To map a context to the name of a Virtual Routing and Forwarding (VRF) instance.
1. Issue the <edit-config> RPC to configure the <snmp-server> node in the
urn:brocade.com:mgmt:brocade-snmp namespace.
2. Under the <snmp-server> node, specify the <context> node element.
3. Under the <context> node element, specify the <context> leaf element, and set its value to the
context string to be added.
4. Under the <context> node element, include the <vrf-name> leaf element and set its value to
the name string.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="1001" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<snmp-server xmlns="urn:brocade.com:mgmt:brocade-snmp" >
<context>
<context>mycontext</context>
<vrf-name>myvrf</vrf-name>
</context>
</snmp-server>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="1001" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>