Hi
One of our Property MIB is defined as
"SYNTAX DateAndTime
MAX-ACCESS read-only".
For this mib i had generated c code , using mib2c script (
mib2c.scalar.conf). In the code, for that particular scalar i am sending
string
"1992-5-26,13:30:15.0,-4:0" by filling set_var_type value as
snmp_set_var_typed_value
(requests,ASN_OCTET_STR,"1992-5-26,13:30:15.0,-4:0",
strlen ("1992-5-26,13:30:15.0,-4:0").
When i am giving get on this scalar it is showing big strig...
Does net-snmp coverts for DateAndTime to some other format ( the
formate what i had given is already in dateAndtime format).
------------------------------------------------------------------------
------------------------------------
[EMAIL PROTECTED] weTst]$ snmpget -v2c -c motro 10.201.114.139 mySclalar.0
MY-MIB::myScalar.0 = STRING:
12601-57-50,45:53:45.50,644:495158514858495346484445525848
------------------------------------------------------------------------
------------------------------------
Can some body help me , how i can display the same string what i am
sending in the code , as snmpget output.
regards
Kanda
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders