Hi,
My aim was to programatically send a trap with some string parameter value. (like a parameter with type 's' when using the snmptrap utility) I referred the example in notification.c and put some code that uses snmp_varlist_add_variable() to add more variables to the trap. But it appears that the 4th parameter of this function has to be one of the ASN types defined in asn1.h. If I use ASN_OCTET_STR as type to send my string text then in trap that is received and displayed by the snmptrapd the string is displayed in a Hex format. I want to display the string in the ASCII style (the way it is displayed when 's' is used as the parameter type for a trap sent using snmptrap ) Is there a corresponding type I can use as the 4th param in the method snmp_varlist_add_variable()? Or is there some other method/way for that? Thanks & regards, Viren ------------------------------------------------------- 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