This is a discussion on Is MacAddr a fixed or variable length OID? within the SNMP Users forums, part of the Networking and Network Related category; I have a MIB that uses MacAddress textual convention as one of the row indices in a table (it is ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I have a MIB that uses MacAddress textual convention as one of the row
indices in a table (it is not the last index in the list of indices used to uniquely identify a row). Looking at the SNMPv2-TC, MacAddress is an OCTET STRING with a fixed size of 6. Reading section 7.7 of RFC-2578, I interpret an OCTET STRING with fixed size 6 should be specified thus: <oid_base>.11.22.33.44.55.66.<last_index> However, when doing an snmpget command, it's requiring me to include a length 6 as though it were a variable length OCTET STRING: snmpget -c public localhost <oid_base>.6.11.22.33.44.55.66.1 Is this normal, or is there a way I can make the agent understand this is a fixed size string and doesn't need the preceding length? -- |\/| |/\| |\/| Randall S. Loomis Sr. Software Engineer Solectek Corporation www.solectek.com ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?p...rge&CID=DEVDEV _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |