Hello... I am trying to send a trap with a multi-line field. ..... char user_string[500]; ..... strcpy(user_string ,"\r\nLINE 1\r\nLINE 2\r\nLINE 3"); ..... if (snmp_add_var(pdu, name, name_length, 's', user_string)) { printf("nyalr_snmp_set_alarme snmp_add_var steAlrLastTexte"); SOCK_CLEANUP; return (-1); }
..... And I get the following result with snmptrapd : snmptrapd -a -f -Le -Ox 2004-10-20 17:19:06 NET-SNMP version 5.1.2 Started. 2004-10-20 17:19:10 aixserver [10.122.4.47] (via 10.122.4.47) TRAP, SNMP v1, community public SNMPv2-SMI::enterprises.18590.1.1.2.4.0 = Hex-STRING: 0D 0A 4C 49 47 4E 45 20 31 0D 0A 4C 49 47 4E 45 20 32 0D 0A 4C 49 47 4E 45 20 33 But if I ask to snmptrapd to print in ascii format I get dot in place of CR/LF snmptrapd -a -f -Le -Oa 2004-10-20 17:17:54 NET-SNMP version 5.1.2 Started. 2004-10-20 17:17:56 aixserver [10.122.4.47] (via 10.122.4.47) TRAP, SNMP v1, community public SNMPv2-SMI::enterprises.18590.1.1.2.4.0= STRING: "..LIGNE 1..LIGNE 2..LIGNE 3" Marc. ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ 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