Title: DateAndTime conversion

Hi

        In mib2c.old-api.conf approach ( 5.2.1 version in Fedora ), for DateAndTime OIDs, I am retuning the value as

                return (u_char *) 1970-1-1,0:0:0.0,-0:0;

        in var_myOID() function, when I do get on this OID I am getting some different big string.

        Do I need to convert this string to some format?

Since DataAndTime is OCTECT-STRING, I had tried

        u_char dt[]={ '0x07' , '0xb2' , '0x01' , '0x01' , '0x00' , '0x00' , '0x00' , '0x00' , '0x2d', '0x00','0x00' };

        return (u_char *) dt;

        But I didnt get the correct display for my snmpget.

        What conversion I have to do?

Please let me know if there some API which will take my string and convert to required format.

Thanks & Regards,

Santhosh

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to