<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Defining a SNMP Router Context on N-Series to Poll Router MIBs in FAQs</title>
    <link>https://community.extremenetworks.com/t5/faqs/defining-a-snmp-router-context-on-n-series-to-poll-router-mibs/m-p/48259#M515</link>
    <description>Article ID: 5232 &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Products&lt;/B&gt;&lt;BR /&gt;
Matrix N-Series DFE &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Goals&lt;/B&gt;&lt;BR /&gt;
Sample configuration. &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Symptoms&lt;/B&gt;&lt;BR /&gt;
Cannot query route table.&lt;BR /&gt;
Cannot poll route table.&lt;BR /&gt;
Router IP does not reply to router SNMP MIBS, e.g. ipRouteEntry=1.3.6.1.2.1.4.21.1. &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Cause&lt;/B&gt;&lt;BR /&gt;
Default SNMP configurations do not include access to router-specific MIBs. &lt;BR /&gt;
&lt;BR /&gt;
Of Enterasys products, only the DFE may have separate switch and router contexts. A router context needs to be set up to access these MIBs, polled either from a router interface address or the switch host IP address. &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Solution&lt;/B&gt;&lt;BR /&gt;
With SNMPv1/v2c...&lt;UL&gt; 
&lt;LI&gt;a Community Name is referenced by a Group which is given Access to possibly multiple contexts and a MIB View for each. 
&lt;/LI&gt;&lt;LI&gt;each Community Name is defined for a specific context, so Community Name selection determines the context.&lt;/LI&gt;&lt;/UL&gt;With SNMPv3...&lt;UL&gt; 
&lt;LI&gt;a User Name is referenced by a Group which is given Access to possibly multiple contexts and a MIB View for each. 
&lt;/LI&gt;&lt;LI&gt;the User Name has no context, so a separate parameter makes that determination. 
&lt;/LI&gt;&lt;LI&gt;As two examples; with NetSight Console MIB Tools the user would type "router" into the Context field, and with the Unix snmpwalk utility the user would specify context option "-n router".&lt;/LI&gt;&lt;/UL&gt;
Restated, the context possibilities are defined using one or more 'set snmp access...' commands referencing the same Access name, collectively permitting among other things the overall support of both switch context access (no context parameter) and router context access ('context router'). &lt;BR /&gt;
&lt;BR /&gt;
Within the subset of these possibilities, the actual context used is dictated by the SNMPv1/SNMPv2c Community Name context or the manually entered SNMPv3 context parameter used. &lt;BR /&gt;
&lt;BR /&gt;
The total set of combinations is shown here:&lt;BR /&gt;
  SNMP     Access   Community Name   Manual   Resulting&lt;BR /&gt;
 version   context     context       context   context&lt;BR /&gt;
 &lt;BR /&gt;
 v1/v2c    -none-      -none-         n/a      switch&lt;BR /&gt;
 v1/v2c    -none-      router         n/a      -fails-&lt;BR /&gt;
 v1/v2c    router      -none-         n/a      -fails-&lt;BR /&gt;
 v1/v2c    router      router         n/a      router&lt;BR /&gt;
 v1/v2c    -both-      -none-         n/a      switch&lt;BR /&gt;
 v1/v2c    -both-      router         n/a      router&lt;BR /&gt;
 &lt;BR /&gt;
   v3      -none-       n/a          -none-    switch&lt;BR /&gt;
   v3      -none-       n/a          router    -fails-&lt;BR /&gt;
   v3      router       n/a          -none-    -fails-&lt;BR /&gt;
   v3      router       n/a          router    router&lt;BR /&gt;
   v3      -both-       n/a          -none-    switch&lt;BR /&gt;
   v3      -both-       n/a          router    router&lt;BR /&gt;
 &lt;BR /&gt;
 As is apparent from the above chart, the most flexible result occurs when the Access is given both context permissions. Then by merely varying the Community Name or manual context, it is a simple matter to access either switch or router MIBs. &lt;BR /&gt;
&lt;BR /&gt;
For example, let us assume the following configuration:&lt;BR /&gt;
set snmp view viewname All subtree 1&lt;BR /&gt;
set snmp view viewname All subtree 0.0&lt;BR /&gt;
 &lt;BR /&gt;
set snmp group groupRW user myCommName security-model v1&lt;BR /&gt;
set snmp group groupRW user myCommName security-model v2c&lt;BR /&gt;
set snmp group groupRW user myUserName security-model usm&lt;BR /&gt;
 &lt;BR /&gt;
set snmp access groupRW security-model v1 exact read All write All notify All&lt;BR /&gt;
set snmp access groupRW security-model v1 context router exact read All write All notify All&lt;BR /&gt;
set snmp access groupRW security-model v2c exact read All write All notify All&lt;BR /&gt;
set snmp access groupRW security-model v2c context router exact read All write All notify All&lt;BR /&gt;
set snmp access groupRW security-model usm privacy exact read All write All notify All &lt;BR /&gt;
set snmp access groupRW security-model usm privacy context router exact read All write All notify All &lt;BR /&gt;
 &lt;BR /&gt;
set snmp community mySwitchComm securityname myCommName&lt;BR /&gt;
set snmp community myRouterComm securityname myCommName context router&lt;BR /&gt;
set snmp user myUserName authentication md5 &lt;MYAUTHPASS&gt; privacy &lt;MYPRIVPASS&gt;&lt;BR /&gt;
 &lt;BR /&gt;
 Given that configuration, then...&lt;UL&gt; 
&lt;LI&gt;with SNMPv1/SNMPv2c and Community Name mySwitchComm, a switch context is used. 
&lt;/LI&gt;&lt;LI&gt;with SNMPv1/SNMPv2c and Community Name myRouterComm, a router context is used. 
&lt;/LI&gt;&lt;LI&gt;with SNMPv3 and User Name myUserName and no context specified, a switch context is used. 
&lt;/LI&gt;&lt;LI&gt;with SNMPv3 and User Name myUserName and a router context specified, a router context is used.&lt;/LI&gt;&lt;/UL&gt;
Firmware version notes:&lt;UL&gt; 
&lt;LI&gt;With firmware through 5.x, the router context includes a trailing slot number (e.g. 'context router1') to indicate the chassis slot which is supporting the specified router - one of possibly two in the system. 
&lt;/LI&gt;&lt;LI&gt;With firmware 6.x, the router context is generically specified as 'context router' because there is only one router instance and it is not specifically assigned to a particular slot. 
&lt;/LI&gt;&lt;LI&gt;With firmware 7.x, separate switch and router contexts are no longer supported by default. However, the use of VRF will require a unique context for each virtual router's MIBs.&lt;/LI&gt;&lt;/UL&gt;
See also: &lt;A href="http://bit.ly/1914OY1" target="_blank" rel="nofollow noreferrer noopener"&gt;5245&lt;/A&gt; and &lt;A href="http://bit.ly/1dtIhKT" target="_blank" rel="nofollow noreferrer noopener"&gt;5672&lt;/A&gt;.&lt;/MYPRIVPASS&gt;&lt;/MYAUTHPASS&gt;</description>
    <pubDate>Sun, 24 Nov 2013 22:59:00 GMT</pubDate>
    <dc:creator>FAQ_User</dc:creator>
    <dc:date>2013-11-24T22:59:00Z</dc:date>
    <item>
      <title>Defining a SNMP Router Context on N-Series to Poll Router MIBs</title>
      <link>https://community.extremenetworks.com/t5/faqs/defining-a-snmp-router-context-on-n-series-to-poll-router-mibs/m-p/48259#M515</link>
      <description>Article ID: 5232 &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Products&lt;/B&gt;&lt;BR /&gt;
Matrix N-Series DFE &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Goals&lt;/B&gt;&lt;BR /&gt;
Sample configuration. &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Symptoms&lt;/B&gt;&lt;BR /&gt;
Cannot query route table.&lt;BR /&gt;
Cannot poll route table.&lt;BR /&gt;
Router IP does not reply to router SNMP MIBS, e.g. ipRouteEntry=1.3.6.1.2.1.4.21.1. &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Cause&lt;/B&gt;&lt;BR /&gt;
Default SNMP configurations do not include access to router-specific MIBs. &lt;BR /&gt;
&lt;BR /&gt;
Of Enterasys products, only the DFE may have separate switch and router contexts. A router context needs to be set up to access these MIBs, polled either from a router interface address or the switch host IP address. &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Solution&lt;/B&gt;&lt;BR /&gt;
With SNMPv1/v2c...&lt;UL&gt; 
&lt;LI&gt;a Community Name is referenced by a Group which is given Access to possibly multiple contexts and a MIB View for each. 
&lt;/LI&gt;&lt;LI&gt;each Community Name is defined for a specific context, so Community Name selection determines the context.&lt;/LI&gt;&lt;/UL&gt;With SNMPv3...&lt;UL&gt; 
&lt;LI&gt;a User Name is referenced by a Group which is given Access to possibly multiple contexts and a MIB View for each. 
&lt;/LI&gt;&lt;LI&gt;the User Name has no context, so a separate parameter makes that determination. 
&lt;/LI&gt;&lt;LI&gt;As two examples; with NetSight Console MIB Tools the user would type "router" into the Context field, and with the Unix snmpwalk utility the user would specify context option "-n router".&lt;/LI&gt;&lt;/UL&gt;
Restated, the context possibilities are defined using one or more 'set snmp access...' commands referencing the same Access name, collectively permitting among other things the overall support of both switch context access (no context parameter) and router context access ('context router'). &lt;BR /&gt;
&lt;BR /&gt;
Within the subset of these possibilities, the actual context used is dictated by the SNMPv1/SNMPv2c Community Name context or the manually entered SNMPv3 context parameter used. &lt;BR /&gt;
&lt;BR /&gt;
The total set of combinations is shown here:&lt;BR /&gt;
  SNMP     Access   Community Name   Manual   Resulting&lt;BR /&gt;
 version   context     context       context   context&lt;BR /&gt;
 &lt;BR /&gt;
 v1/v2c    -none-      -none-         n/a      switch&lt;BR /&gt;
 v1/v2c    -none-      router         n/a      -fails-&lt;BR /&gt;
 v1/v2c    router      -none-         n/a      -fails-&lt;BR /&gt;
 v1/v2c    router      router         n/a      router&lt;BR /&gt;
 v1/v2c    -both-      -none-         n/a      switch&lt;BR /&gt;
 v1/v2c    -both-      router         n/a      router&lt;BR /&gt;
 &lt;BR /&gt;
   v3      -none-       n/a          -none-    switch&lt;BR /&gt;
   v3      -none-       n/a          router    -fails-&lt;BR /&gt;
   v3      router       n/a          -none-    -fails-&lt;BR /&gt;
   v3      router       n/a          router    router&lt;BR /&gt;
   v3      -both-       n/a          -none-    switch&lt;BR /&gt;
   v3      -both-       n/a          router    router&lt;BR /&gt;
 &lt;BR /&gt;
 As is apparent from the above chart, the most flexible result occurs when the Access is given both context permissions. Then by merely varying the Community Name or manual context, it is a simple matter to access either switch or router MIBs. &lt;BR /&gt;
&lt;BR /&gt;
For example, let us assume the following configuration:&lt;BR /&gt;
set snmp view viewname All subtree 1&lt;BR /&gt;
set snmp view viewname All subtree 0.0&lt;BR /&gt;
 &lt;BR /&gt;
set snmp group groupRW user myCommName security-model v1&lt;BR /&gt;
set snmp group groupRW user myCommName security-model v2c&lt;BR /&gt;
set snmp group groupRW user myUserName security-model usm&lt;BR /&gt;
 &lt;BR /&gt;
set snmp access groupRW security-model v1 exact read All write All notify All&lt;BR /&gt;
set snmp access groupRW security-model v1 context router exact read All write All notify All&lt;BR /&gt;
set snmp access groupRW security-model v2c exact read All write All notify All&lt;BR /&gt;
set snmp access groupRW security-model v2c context router exact read All write All notify All&lt;BR /&gt;
set snmp access groupRW security-model usm privacy exact read All write All notify All &lt;BR /&gt;
set snmp access groupRW security-model usm privacy context router exact read All write All notify All &lt;BR /&gt;
 &lt;BR /&gt;
set snmp community mySwitchComm securityname myCommName&lt;BR /&gt;
set snmp community myRouterComm securityname myCommName context router&lt;BR /&gt;
set snmp user myUserName authentication md5 &lt;MYAUTHPASS&gt; privacy &lt;MYPRIVPASS&gt;&lt;BR /&gt;
 &lt;BR /&gt;
 Given that configuration, then...&lt;UL&gt; 
&lt;LI&gt;with SNMPv1/SNMPv2c and Community Name mySwitchComm, a switch context is used. 
&lt;/LI&gt;&lt;LI&gt;with SNMPv1/SNMPv2c and Community Name myRouterComm, a router context is used. 
&lt;/LI&gt;&lt;LI&gt;with SNMPv3 and User Name myUserName and no context specified, a switch context is used. 
&lt;/LI&gt;&lt;LI&gt;with SNMPv3 and User Name myUserName and a router context specified, a router context is used.&lt;/LI&gt;&lt;/UL&gt;
Firmware version notes:&lt;UL&gt; 
&lt;LI&gt;With firmware through 5.x, the router context includes a trailing slot number (e.g. 'context router1') to indicate the chassis slot which is supporting the specified router - one of possibly two in the system. 
&lt;/LI&gt;&lt;LI&gt;With firmware 6.x, the router context is generically specified as 'context router' because there is only one router instance and it is not specifically assigned to a particular slot. 
&lt;/LI&gt;&lt;LI&gt;With firmware 7.x, separate switch and router contexts are no longer supported by default. However, the use of VRF will require a unique context for each virtual router's MIBs.&lt;/LI&gt;&lt;/UL&gt;
See also: &lt;A href="http://bit.ly/1914OY1" target="_blank" rel="nofollow noreferrer noopener"&gt;5245&lt;/A&gt; and &lt;A href="http://bit.ly/1dtIhKT" target="_blank" rel="nofollow noreferrer noopener"&gt;5672&lt;/A&gt;.&lt;/MYPRIVPASS&gt;&lt;/MYAUTHPASS&gt;</description>
      <pubDate>Sun, 24 Nov 2013 22:59:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/faqs/defining-a-snmp-router-context-on-n-series-to-poll-router-mibs/m-p/48259#M515</guid>
      <dc:creator>FAQ_User</dc:creator>
      <dc:date>2013-11-24T22:59:00Z</dc:date>
    </item>
  </channel>
</rss>

