On Mon, 2005-05-23 at 08:59, Namita wrote: > I was trying to print the OID of the trap received. > But Iʼm not able to do with a %s.
I've already answered this. You use 'print_objid' (or one of the variants). > How do I print it out using snmp_log. Format the OID into a string (using 'snprint_objid') and pass that string to 'snmp_log' > Print oid wonʼt be of any help anyway. Why not? That's the API we provide to format OIDs into a printable form. Why are you reluctant to use it? Dave ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_idt12&alloc_id344&op=click _______________________________________________ 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