RE: Get BITS value
"Yong Chen (yongche)" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <52E903A38F544F46A2A6632AC66103EEE6F157@xmb-sjc-221.amer.cisco.com> |
But I thought an instance with bits v0, v3 and v10 set would be:
00000100 00000101
^ ^ ^
bit 10 3 0
So it's 0x04 and 0x05 (not 0x90 & 0x20). That's why I did the "funny"
conversion based on RFC 3417 section 8.
Also should I send out 0x9020 or 0x2090? Does big/small endian-ness (and
network order) play a role here?
Thanks,
Yong Chen
I explained that:
> An instance with bits v0, v3 and v10 set will have the value:
>
> 10010000 00100000
^ ^ ^
bit 0 3 10
> so will consist of the two octets 0x90 & 0x20
0x9020 is the hex equivalent of this bit string.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Dave
Shield
Sent: Friday, October 28, 2005 1:11 AM
To: Yong Chen (yongche)
Cc: [email protected]
Subject: RE: Get BITS value
On Thu, 2005-10-27 at 13:35 -0700, Yong Chen (yongche) wrote:
> Then how should I get the response OCTET STRING?
Sorry - I don't understand the question.
You'd retrieve a BITS-syntax value in just the same way as any other MIB
value - by issuing a "snmpget" or similar request.
A MIB module implementation would return a BITS-syntax value in exactly
the same way as it would for an OCTET STRING value.
If that's not what you meant, then you'll need to be a bit more
explicit.
> How did you get 0x90 & 0x20 ?
I explained that:
> An instance with bits v0, v3 and v10 set will have the value:
>
> 10010000 00100000
^ ^ ^
bit 0 3 10
> so will consist of the two octets 0x90 & 0x20
0x9020 is the hex equivalent of this bit string.
> Also you are saying the net-snmp stack doesn't reverse the order so I
> (the mib implementator) need to do it?
No - I'm saying that it's not an integer value, so reversing the order
simply isn't relevant!
Dave
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course Free
Certification Exam for All Training Attendees Through End of 2005 Visit
http://www.jboss.com/services/certification for more information
_______________________________________________
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
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
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