Specifications
Configuring SNMP
March 28, 2011 Page 17 of 27
etherStatsPkts1024to1518Octets=1.3.6.1.2.1.16.1.1.1.19.<port>
etherStatsOwner=1.3.6.1.2.1.16.1.1.1.20.<port>
etherStatsStatus=1.3.6.1.2.1.16.1.1.1.21.<port>
Asshownintheexampleoutputabove,whendisplayingtheetherStatsEntrybranch,allportsare
listedforeachleafbeforemovingontotheportsofthenextleafastheresultoflistingallofthe
datainnumericOIDorder.
HereisanabbreviatedexampleofonesuchSNMP
query.
Object Instance Type Value
etherStatsIndex 1001 INTEGER 1001
etherStatsIndex 1518 INTEGER 1518
etherStatsDataSource 1001 OBJECT ID 1.3.6.1...11001
etherStatsDataSource 1518 OBJECT ID 1.3.6.1...12006
etherStatsStatus 1001 INTEGER valid(1)
etherStatsStatus 1518 INTEGER valid(1)
Example
Thisexampleshowsyouhowtousethemask parametertosignificantlyrefineyourquery
output,sothatonlydataforspecifiedportsisreturned.Forthisexample,assumethatN‐Series
slot1port12isofinterest.
ThefirsttenoctetsoftheetherStatsEntry(1.3.6.1.2.1.16.1.1.1)mustmatchexactly
asspecified.The
nextoctet,representingeachofthe21possibleleaveswithinthatbranch,neednotmatchexactly.
Theremainder,representingtheportnumber,mustmatchexactlyasspecified.
Thebitrepresentationsforthiswouldbe11111111‐11011111,or0xffdf. IftheactualOIDstring
beingmaskedis
longerthanthespecifiedbits,themissingbitstotherightareassumedtobe1ʹs.It
isthusonlynecessarytomakethemasklongenough(inincrementsof8‐bitbytes)todesignate,
witha0bit,anydesiredʺwild‐cardʺOIDstringoctets.
Thefollowingisan
SNMPViewusingthesespecifications,startingwithadefaultconfiguration.
enterasys(su)->show snmp view
View Name = All
Subtree OID = 1
Subtree mask =
View Type = included
Storage type = nonVolatile
Row status = active
View Name = All
Subtree OID = 0.0
Subtree mask =
View Type = included
Storage type = nonVolatile
Row status = active
enterasys(su)->clear snmp view All 1
enterasys(su)->set snmp view viewname All subtree 1.3.6.1.2.1.16.1.1.1.0.1012
mask ff:df
enterasys(su)->show snmp view
View Name = All
Subtree OID = 0.0
Subtree mask =
View Type = included
Storage type = nonVolatile
Row status = active