Specifications
Configuring SNMP
March 28, 2011 Page 16 of 27
enterasys(su)->clear snmp view All 1
enterasys(su)->clear snmp view All 0.0
enterasys(su)->set snmp view viewname All subtree 1.3.6.1.2.1
enterasys(su)->set snmp view viewname All subtree 1.3.6.1.2.1.2 excluded
enterasys(su)->show snmp view
View Name = All
Subtree OID = 1.3.6.1.2.1
Subtree mask =
View Type = included
Storage type = nonVolatile
Row status = active
View Name = All
Subtree OID = 1.3.6.1.2.1.2
Subtree mask =
View Type = excluded
Storage type = nonVolatile
Row status = active
YoucantestthisconfigurationusinganyMIBbrowserdirectedtotheIPoftheconfigureddevice
andusingthedefaultcommunitynamepublicassociatedwiththeviewAll.Ifconfigured
correctly,onlyyourspecifiedsectionsoftheMIBswillbevisible.
Configuring the Optional Mask Parameter
AsdefinedinRFC2575,anSNMPmaskisanoptionalparameterofthesetsnmpviewcommand.
Youcanuseamasktomodifyaviewinclusion,designatingcertainoctetsofanOIDstringaswild‐
card“donʹtcare”values.Oncedefined,youcanviewwithinaMIBbranch(using
aMIBbrowser
suchasthatofferedwithintheNetSightsuiteofproducts)onlythoseleavesassociatedwith
specificitems,suchasdesignatedportnumbers,MACaddresses,andIPaddresses.
Forexample,theRMONStatisticsMIBbranchisdefinedasfollows,withtheleavesdefined
withinthatbrancheachhaving
multipleiterations,oneforeachport.
etherStatsEntry=1.3.6.1.2.1.16.1.1.1
etherStatsIndex=1.3.6.1.2.1.16.1.1.1.1.<port>
etherStatsDataSource=1.3.6.1.2.1.16.1.1.1.2.<port>
etherStatsDropEvents=1.3.6.1.2.1.16.1.1.1.3.<port>
etherStatsOctets=1.3.6.1.2.1.16.1.1.1.4.<port>
etherStatsPkts=1.3.6.1.2.1.16.1.1.1.5.<port>
etherStatsBroadcastPkts=1.3.6.1.2.1.16.1.1.1.6.<port>
etherStatsMulticastPkts=1.3.6.1.2.1.16.1.1.1.7.<port>
etherStatsCRCAlignErrors=1.3.6.1.2.1.16.1.1.1.8.<port>
etherStatsUndersizePkts=1.3.6.1.2.1.16.1.1.1.9.<port>
etherStatsOversizePkts=1.3.6.1.2.1.16.1.1.1.10.<port>
etherStatsFragments=1.3.6.1.2.1.16.1.1.1.11.<port>
etherStatsJabbers=1.3.6.1.2.1.16.1.1.1.12.<port>
etherStatsCollisions=1.3.6.1.2.1.16.1.1.1.13.<port>
etherStatsPkts64Octets=1.3.6.1.2.1.16.1.1.1.14.<port>
etherStatsPkts65to127Octets=1.3.6.1.2.1.16.1.1.1.15.<port>
etherStatsPkts128to255Octets=1.3.6.1.2.1.16.1.1.1.16.<port>
etherStatsPkts256to511Octets=1.3.6.1.2.1.16.1.1.1.17.<port>
etherStatsPkts512to1023Octets=1.3.6.1.2.1.16.1.1.1.18.<port>
Note: The mechanics of determining exactly how to configure the optional mask parameter make
for an inefficient use of time if you will only be using the query once. However, for data retrieved
repeatedly, using the method described in the following examples can prevent the unnecessary
transfer of much SNMP data over your network.