On Sat, 12 Jun 2004 16:47:39 +051800 [EMAIL PROTECTED] wrote:
VC> My aim was to programatically send a trap with some string parameter value.
VC> (like a parameter with type 's' when using the snmptrap utility)

VC> If I use ASN_OCTET_STR as type to send my string text then in trap that is
VC> received and displayed by the snmptrapd the string is displayed in a Hex
VC> format.
VC> 
VC> I want to display the string in the ASCII style (the way it is displayed
VC> when's' is used as the parameter type for a trap sent using snmptrap )

ASN_OCTET_STR is the correct type. It is the receiving side that decides
whether or not to display the string as ASCII or hex. Does the string you are
sending contain any control characters, or other non-printable characters?

-- 
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>  
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
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

Reply via email to