When I do an snmpget on a bits object I do not get the correct results via 
net-snmp.
The same command works fine using other management tools.

SNMPv2-SMI::transmission.49.1.6.1.1.5.97.112.115.45.49.1 = STRING: " "

It should look like this:
NMPv2-SMI::transmission.49.1.6.1.1.5.97.112.115.45.49.1 = BITS: 20 2


The only way I can get it to work correctly is if I use ASN_BIT_STR instead of 
ASN_OCTET_STR in snmp_set_var_typed_value.

But when I use ASN_BIT_STR - all of the other management tools display NULL as 
they are expecting ASN_OCTET_STR.

Any ideas on what I am doing wrong?


This email and attachments may contain privileged or confidential information 
intended only for the addressee(s) indicated. The sender does not waive any of 
its rights, privileges or protections respecting this information. If you are 
not the named addressee, an employee, or agent responsible for sending this 
message to the named addressee (or this message was received by mistake), you 
are not authorized to read, print, retain, copy or disseminate this message or 
any part of it. If received in error, please notify us immediately by e-mail, 
discard any paper copies and delete all electronic files of the email.

Computer viruses can be transmitted via email. The recipient should check this 
email and any attachments for viruses. Email transmission cannot be guaranteed 
to be secured or error-free as information could be intercepted, corrupted, 
lost, destroyed, arrive late or incomplete, or contain viruses. The sender 
accepts no liability for any damage caused by any transmitted viruses or errors 
or omissions in the contents of this message.

Overture Networks, Inc. 637 Davis Drive, Morrisville, NC USA 27560 
www.overturenetworks.com

------------------------------------------------------------------------------
_______________________________________________
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/listinfo/net-snmp-users

Reply via email to