RE: Get BITS value
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
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