<?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 Using the 'set snmp view' command to Define an SNMP View in FAQs</title>
    <link>https://community.extremenetworks.com/t5/faqs/using-the-set-snmp-view-command-to-define-an-snmp-view/m-p/51933#M753</link>
    <description>Article ID: 5610 &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Products&lt;/B&gt;&lt;BR /&gt;
DFE&lt;BR /&gt;
SecureStack C3&lt;BR /&gt;
SecureStack C2&lt;BR /&gt;
SecureStack B3&lt;BR /&gt;
SecureStack B2&lt;BR /&gt;
SecureStack A2 &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Protocols/Features&lt;/B&gt;&lt;BR /&gt;
SNMP &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Commands&lt;/B&gt;&lt;BR /&gt;
'set snmp view' &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;Cause&lt;/B&gt;&lt;BR /&gt;
This solution provides clarifications for SNMP View configuration, to augment what is described in the respective &lt;A href="https://extranet.enterasys.com/Downloads/" target="_blank" rel="nofollow noreferrer noopener"&gt;Configuration Guide&lt;/A&gt; for each product. SNMP View configuration is a sub-component of SNMP configuration (&lt;A href="http://bit.ly/1914OY1" target="_blank" rel="nofollow noreferrer noopener"&gt;5245&lt;/A&gt;). &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Solution&lt;/B&gt;&lt;BR /&gt;
The command format is:&lt;BR /&gt;
  &lt;B&gt;set snmp view viewname &lt;VIEWNAME&gt; subtree &lt;SUBTREE&gt; [mask &lt;MASK&gt;]&lt;BR /&gt;
   [included | excluded] [volatile | nonvolatile]&lt;/MASK&gt;&lt;/SUBTREE&gt;&lt;/VIEWNAME&gt;&lt;/B&gt;&lt;BR /&gt;
 &lt;BR /&gt;
 By default, an "All" (case-sensitive) view is provided which permits associated Community Names to be used to access MIB branches 1 (iso) and, depending upon the product, 0.0.&lt;BR /&gt;
 DFE(rw)-&amp;gt;show snmp view&lt;BR /&gt;
 View Name       = All&lt;BR /&gt;
 Subtree OID     = 1&lt;BR /&gt;
 Subtree mask    =&lt;BR /&gt;
 View Type       = included&lt;BR /&gt;
 Storage type    = nonVolatile&lt;BR /&gt;
 Row status      = active&lt;BR /&gt;
 &lt;BR /&gt;
 View Name       = All&lt;BR /&gt;
 Subtree OID     = 0.0&lt;BR /&gt;
 Subtree mask    =&lt;BR /&gt;
 View Type       = included&lt;BR /&gt;
 Storage type    = nonVolatile&lt;BR /&gt;
 Row status      = active&lt;BR /&gt;
 &lt;BR /&gt;
 DFE(rw)-&amp;gt;&lt;BR /&gt;
 &lt;BR /&gt;
 It is possible to include certain OIDs and exclude certain other OIDS within one view, by stacking different 'set snmp view' includes and excludes which specify a single viewname. Logically, what the user will ultimately be able to view will consist of all of the 'included' OID strings for that viewname, minus all of the 'excluded' OID strings for that viewname. If no such parameter is specified, 'included' is assumed. &lt;BR /&gt;
&lt;BR /&gt;
Though it is certainly possible to create and use multiple viewnames as desired, for demonstration purposes it is simplest to modify the default view, since it is already being referenced by the remainder of the SNMP command set. &lt;BR /&gt;
&lt;BR /&gt;
The following command sequence removes the default view specifications, and inserts one which permits access to branch 'mib-2=1.3.6.1.2.1', &lt;I&gt;with the exception of &lt;/I&gt;branch 'interfaces=1.3.6.1.2.1.2'.&lt;BR /&gt;
 DFE(rw)-&amp;gt;clear snmp view All 1&lt;BR /&gt;
 DFE(rw)-&amp;gt;clear snmp view All 0.0&lt;BR /&gt;
 DFE(rw)-&amp;gt;set snmp view viewname All subtree 1.3.6.1.2.1&lt;BR /&gt;
 DFE(rw)-&amp;gt;set snmp view viewname All subtree 1.3.6.1.2.1.2 excluded &lt;BR /&gt;
 DFE(rw)-&amp;gt;show snmp view&lt;BR /&gt;
 View Name       = All&lt;BR /&gt;
 Subtree OID     = 1.3.6.1.2.1&lt;BR /&gt;
 Subtree mask    =&lt;BR /&gt;
 View Type       = included&lt;BR /&gt;
 Storage type    = nonVolatile&lt;BR /&gt;
 Row status      = active&lt;BR /&gt;
 &lt;BR /&gt;
 View Name       = All&lt;BR /&gt;
 Subtree OID     = 1.3.6.1.2.1.2&lt;BR /&gt;
 Subtree mask    =&lt;BR /&gt;
 View Type       = excluded&lt;BR /&gt;
 Storage type    = nonVolatile&lt;BR /&gt;
 Row status      = active&lt;BR /&gt;
 &lt;BR /&gt;
 DFE(rw)-&amp;gt;&lt;BR /&gt;
 &lt;BR /&gt;
 A simple test using any MIB browser, directed to the IP of the unit in question and using the Community Name (default="public") associated with view "All", will demonstrate that only the described sections of the MIBs are visible. &lt;BR /&gt;
&lt;BR /&gt;
If the 'volatile' parameter is included on any 'set snmp view' command line, that line will not survive a system reboot. If unspecified, 'nonvolatile' is assumed. &lt;BR /&gt;
&lt;BR /&gt;
For a discussion of the 'mask' parameter, please refer to &lt;A href="http://bit.ly/1802AYu" target="_blank" rel="nofollow noreferrer noopener"&gt;5618&lt;/A&gt;. &lt;BR /&gt;
&lt;BR /&gt;
The following command sequence restores the default view to its original functionality.&lt;BR /&gt;
 DFE(rw)-&amp;gt;clear snmp view All 1.3.6.1.2.1.2&lt;BR /&gt;
 DFE(rw)-&amp;gt;clear snmp view All 1.3.6.1.2.1&lt;BR /&gt;
 DFE(rw)-&amp;gt;set snmp view viewname All subtree 1&lt;BR /&gt;
 DFE(rw)-&amp;gt;set snmp view viewname All subtree 0.0&lt;BR /&gt;
 DFE(rw)-&amp;gt;show snmp view&lt;BR /&gt;
 View Name       = All&lt;BR /&gt;
 Subtree OID     = 1&lt;BR /&gt;
 Subtree mask    =&lt;BR /&gt;
 View Type       = included&lt;BR /&gt;
 Storage type    = nonVolatile&lt;BR /&gt;
 Row status      = active&lt;BR /&gt;
 &lt;BR /&gt;
 View Name       = All&lt;BR /&gt;
 Subtree OID     = 0.0&lt;BR /&gt;
 Subtree mask    =&lt;BR /&gt;
 View Type       = included&lt;BR /&gt;
 Storage type    = nonVolatile&lt;BR /&gt;
 Row status      = active&lt;BR /&gt;
 &lt;BR /&gt;
 DFE(rw)-&amp;gt;&lt;BR /&gt;
 &lt;BR /&gt;
 See also: &lt;A href="http://bit.ly/18hjDLw" target="_blank" rel="nofollow noreferrer noopener"&gt;5898&lt;/A&gt;.</description>
    <pubDate>Sun, 24 Nov 2013 22:05:00 GMT</pubDate>
    <dc:creator>FAQ_User</dc:creator>
    <dc:date>2013-11-24T22:05:00Z</dc:date>
    <item>
      <title>Using the 'set snmp view' command to Define an SNMP View</title>
      <link>https://community.extremenetworks.com/t5/faqs/using-the-set-snmp-view-command-to-define-an-snmp-view/m-p/51933#M753</link>
      <description>Article ID: 5610 &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Products&lt;/B&gt;&lt;BR /&gt;
DFE&lt;BR /&gt;
SecureStack C3&lt;BR /&gt;
SecureStack C2&lt;BR /&gt;
SecureStack B3&lt;BR /&gt;
SecureStack B2&lt;BR /&gt;
SecureStack A2 &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Protocols/Features&lt;/B&gt;&lt;BR /&gt;
SNMP &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Commands&lt;/B&gt;&lt;BR /&gt;
'set snmp view' &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;Cause&lt;/B&gt;&lt;BR /&gt;
This solution provides clarifications for SNMP View configuration, to augment what is described in the respective &lt;A href="https://extranet.enterasys.com/Downloads/" target="_blank" rel="nofollow noreferrer noopener"&gt;Configuration Guide&lt;/A&gt; for each product. SNMP View configuration is a sub-component of SNMP configuration (&lt;A href="http://bit.ly/1914OY1" target="_blank" rel="nofollow noreferrer noopener"&gt;5245&lt;/A&gt;). &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Solution&lt;/B&gt;&lt;BR /&gt;
The command format is:&lt;BR /&gt;
  &lt;B&gt;set snmp view viewname &lt;VIEWNAME&gt; subtree &lt;SUBTREE&gt; [mask &lt;MASK&gt;]&lt;BR /&gt;
   [included | excluded] [volatile | nonvolatile]&lt;/MASK&gt;&lt;/SUBTREE&gt;&lt;/VIEWNAME&gt;&lt;/B&gt;&lt;BR /&gt;
 &lt;BR /&gt;
 By default, an "All" (case-sensitive) view is provided which permits associated Community Names to be used to access MIB branches 1 (iso) and, depending upon the product, 0.0.&lt;BR /&gt;
 DFE(rw)-&amp;gt;show snmp view&lt;BR /&gt;
 View Name       = All&lt;BR /&gt;
 Subtree OID     = 1&lt;BR /&gt;
 Subtree mask    =&lt;BR /&gt;
 View Type       = included&lt;BR /&gt;
 Storage type    = nonVolatile&lt;BR /&gt;
 Row status      = active&lt;BR /&gt;
 &lt;BR /&gt;
 View Name       = All&lt;BR /&gt;
 Subtree OID     = 0.0&lt;BR /&gt;
 Subtree mask    =&lt;BR /&gt;
 View Type       = included&lt;BR /&gt;
 Storage type    = nonVolatile&lt;BR /&gt;
 Row status      = active&lt;BR /&gt;
 &lt;BR /&gt;
 DFE(rw)-&amp;gt;&lt;BR /&gt;
 &lt;BR /&gt;
 It is possible to include certain OIDs and exclude certain other OIDS within one view, by stacking different 'set snmp view' includes and excludes which specify a single viewname. Logically, what the user will ultimately be able to view will consist of all of the 'included' OID strings for that viewname, minus all of the 'excluded' OID strings for that viewname. If no such parameter is specified, 'included' is assumed. &lt;BR /&gt;
&lt;BR /&gt;
Though it is certainly possible to create and use multiple viewnames as desired, for demonstration purposes it is simplest to modify the default view, since it is already being referenced by the remainder of the SNMP command set. &lt;BR /&gt;
&lt;BR /&gt;
The following command sequence removes the default view specifications, and inserts one which permits access to branch 'mib-2=1.3.6.1.2.1', &lt;I&gt;with the exception of &lt;/I&gt;branch 'interfaces=1.3.6.1.2.1.2'.&lt;BR /&gt;
 DFE(rw)-&amp;gt;clear snmp view All 1&lt;BR /&gt;
 DFE(rw)-&amp;gt;clear snmp view All 0.0&lt;BR /&gt;
 DFE(rw)-&amp;gt;set snmp view viewname All subtree 1.3.6.1.2.1&lt;BR /&gt;
 DFE(rw)-&amp;gt;set snmp view viewname All subtree 1.3.6.1.2.1.2 excluded &lt;BR /&gt;
 DFE(rw)-&amp;gt;show snmp view&lt;BR /&gt;
 View Name       = All&lt;BR /&gt;
 Subtree OID     = 1.3.6.1.2.1&lt;BR /&gt;
 Subtree mask    =&lt;BR /&gt;
 View Type       = included&lt;BR /&gt;
 Storage type    = nonVolatile&lt;BR /&gt;
 Row status      = active&lt;BR /&gt;
 &lt;BR /&gt;
 View Name       = All&lt;BR /&gt;
 Subtree OID     = 1.3.6.1.2.1.2&lt;BR /&gt;
 Subtree mask    =&lt;BR /&gt;
 View Type       = excluded&lt;BR /&gt;
 Storage type    = nonVolatile&lt;BR /&gt;
 Row status      = active&lt;BR /&gt;
 &lt;BR /&gt;
 DFE(rw)-&amp;gt;&lt;BR /&gt;
 &lt;BR /&gt;
 A simple test using any MIB browser, directed to the IP of the unit in question and using the Community Name (default="public") associated with view "All", will demonstrate that only the described sections of the MIBs are visible. &lt;BR /&gt;
&lt;BR /&gt;
If the 'volatile' parameter is included on any 'set snmp view' command line, that line will not survive a system reboot. If unspecified, 'nonvolatile' is assumed. &lt;BR /&gt;
&lt;BR /&gt;
For a discussion of the 'mask' parameter, please refer to &lt;A href="http://bit.ly/1802AYu" target="_blank" rel="nofollow noreferrer noopener"&gt;5618&lt;/A&gt;. &lt;BR /&gt;
&lt;BR /&gt;
The following command sequence restores the default view to its original functionality.&lt;BR /&gt;
 DFE(rw)-&amp;gt;clear snmp view All 1.3.6.1.2.1.2&lt;BR /&gt;
 DFE(rw)-&amp;gt;clear snmp view All 1.3.6.1.2.1&lt;BR /&gt;
 DFE(rw)-&amp;gt;set snmp view viewname All subtree 1&lt;BR /&gt;
 DFE(rw)-&amp;gt;set snmp view viewname All subtree 0.0&lt;BR /&gt;
 DFE(rw)-&amp;gt;show snmp view&lt;BR /&gt;
 View Name       = All&lt;BR /&gt;
 Subtree OID     = 1&lt;BR /&gt;
 Subtree mask    =&lt;BR /&gt;
 View Type       = included&lt;BR /&gt;
 Storage type    = nonVolatile&lt;BR /&gt;
 Row status      = active&lt;BR /&gt;
 &lt;BR /&gt;
 View Name       = All&lt;BR /&gt;
 Subtree OID     = 0.0&lt;BR /&gt;
 Subtree mask    =&lt;BR /&gt;
 View Type       = included&lt;BR /&gt;
 Storage type    = nonVolatile&lt;BR /&gt;
 Row status      = active&lt;BR /&gt;
 &lt;BR /&gt;
 DFE(rw)-&amp;gt;&lt;BR /&gt;
 &lt;BR /&gt;
 See also: &lt;A href="http://bit.ly/18hjDLw" target="_blank" rel="nofollow noreferrer noopener"&gt;5898&lt;/A&gt;.</description>
      <pubDate>Sun, 24 Nov 2013 22:05:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/faqs/using-the-set-snmp-view-command-to-define-an-snmp-view/m-p/51933#M753</guid>
      <dc:creator>FAQ_User</dc:creator>
      <dc:date>2013-11-24T22:05:00Z</dc:date>
    </item>
  </channel>
</rss>

