This is a multi-part message in MIME format.

--===============0236142877==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C6CB79.94E3575A"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C6CB79.94E3575A
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi=20
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[]=3D{ '0x07' , '0xb2' , '0x01' , '0x01' , '0x00' ,
'0x00' , '0x00' , '0x00' , '0x2d', '0x00','0x00' };
return (u_char *) dt;

But I didn't 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


------_=_NextPart_001_01C6CB79.94E3575A
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable




charset=3Dus-ascii">
6.5.7638.1">
DateAndTime conversion




Schoolbook">Hi LANG=3D"en-us">



LANG=3D"en-us">        FACE=3D"Century Schoolbook">In mib2c.old-api.conf approach ( 5.2.1 =
version
=
in
LANG=3D"en-us"> Schoolbook"> Fedora LANG=3D"en-us"> LANG=3D"en-us"> Schoolbook">), for DateAndTime OIDs LANG=3D"en-us"> Schoolbook">, I am LANG=3D"en-us"> Schoolbook">retuning LANG=3D"en-us"> the value =
as



LANG=3D"en-us">        LANG=3D"en-us"> =
       
LANG=3D"en-us"> Schoolbook">return (u_char *) LANG=3D"en-us"> Schoolbook"> LANG=3D"en-us"> Schoolbook">“ LANG=3D"en-us"> Schoolbook">1970-1-1,0:0:0.0,-0:0 LANG=3D"en-us"> Schoolbook">” LANG=3D"en-us">;



LANG=3D"en-us">        FACE=3D"Century Schoolbook">in LANG=3D"en-us"> Schoolbook">var_ LANG=3D"en-us">myOID() function, =
when
=
I
LANG=3D"en-us"> Schoolbook"> do get on this OID LANG=3D"en-us"> Schoolbook">I LANG=3D"en-us"> LANG=3D"en-us"> Schoolbook">am getting LANG=3D"en-us"> some different big =
string.



LANG=3D"en-us">        FACE=3D"Century Schoolbook">Do LANG=3D"en-us"> Schoolbook">I LANG=3D"en-us"> need to convert this =
string to some format?



Schoolbook">Since DataAndTime is OCTECT-STRING, LANG=3D"en-us"> Schoolbook">I LANG=3D"en-us"> LANG=3D"en-us"> Schoolbook">had tried



LANG=3D"en-us">        LANG=3D"en-us"> Schoolbook">u_char dt[]=3D{ '0x07' , '0xb2' , '0x01' , '0x01' , '0x00' , =
'0x00' , '0x00' , '0x00' , '0x2d', '0x00','0x00' };
LANG=3D"en-us">



LANG=3D"en-us">        LANG=3D"en-us"> Schoolbook">return (u_char *) dt; LANG=3D"en-us">



LANG=3D"en-us">        FACE=3D"Century Schoolbook">But LANG=3D"en-us"> Schoolbook">I LANG=3D"en-us"> =
didn
FACE=3D"Century Schoolbook">’ LANG=3D"en-us"> Schoolbook">t get the correct LANG=3D"en-us"> Schoolbook">display LANG=3D"en-us"> LANG=3D"en-us"> Schoolbook">for my snmpget. LANG=3D"en-us">



LANG=3D"en-us">        FACE=3D"Century Schoolbook">What conversion LANG=3D"en-us"> Schoolbook">I LANG=3D"en-us"> have to =
do
FACE=3D"Century Schoolbook">? LANG=3D"en-us">



Schoolbook">Please let me know if LANG=3D"en-us"> Schoolbook"> LANG=3D"en-us"> Schoolbook">there LANG=3D"en-us"> Schoolbook">some LANG=3D"en-us"> API which will take my =
string and convert to required format
LANG=3D"en-us"> Schoolbook">. LANG=3D"en-us">



LANG=3D"en-us">Thanks & =
Regards,



Schoolbook">Santhosh LANG=3D"en-us">







------_=_NextPart_001_01C6CB79.94E3575A--


--===============0236142877==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
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=...057&dat=121642
--===============0236142877==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders

--===============0236142877==--