On 14/02/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>Suppose for "1.2.3.4.5.6.1.1.2.abc.1"
>
> I should be sending "1.2.3.4.5.6.1.1.2.97.98.99.1"
Close.
1.2.3.4.5.6.1.1.2.3.97.98.99.1
You can only use IMPLIED (i.e. no length octet) with the *last*
index. Everything else must have an explicit length.
Otherwise, consider
1.2.3.4.5.6.1.1.2.3.97.98.99.100
Is this a full OID with indexes "abc" and 100,
or is it a partial OID with index "abcd" and no integer index?
[That all assumes a variable-length string value.
Fixed-length strings are handled differently.
See the RFC for details]
> what if other index is IP address .
See the RFC.
> In case of index as mac address .How OID will be represented ?
See the RFC
> In case of IP address index what will be the OID representation .
See the RFC
> If the index is not implied then for table which need two column as index
> what will be the OID representation.
See the RFC
> For example 1.2.3.4.5.6.1.1.2.abc.xyz
>
> Will it be 1.2.3.4.5.6.1.1.2.3.97.98.99.3.120.121.122
Yes.
> Or it will be 1.2.3.4.5.6.1.1.2.6.97.98.99.120.121.122
No.
(Not unless the index values are defined as *always*
being exactly three characters long).
With this second encoding, how could an SNMP
program tell the difference between indexes of:
"a" and "bcxyz"
"ab" and "cxyz"
"abc" and "xyz"
"abcx" and "yz"
"abcxy" and "z"
or even
"abcxyz" and ""
"" and "abcxyz"
?
Dave
-------------------------------------------------------------------------
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?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users