Is MacAddr a fixed or variable length OID?

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 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2007
Randall Loomis
 
Posts: n/a
Default Is MacAddr a fixed or variable length OID?

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:42 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0