2008/6/19 Zack Little <[EMAIL PROTECTED]>:
> I'm not sure why my listener isn't translating it properly since it handles
> standard DateAndTime objects (such as hrSystemDate) just fine.
Does your listener load and use the MIB definitions for this object?
Remember tha
ing something wrong because my trap receiver
(iReasoning's MIBBrowser) reported the field as follows instead of displaying a
timestamp:
(OctetString)0x07 0xd8 0x06 0x12 0x12 0x37 0x2d 0x00 0x2d 0x04 0x00
However, I used a sniffer view how another DateAndTime object (hrSystemDate) is
returned
2008/6/17 Zack Little <[EMAIL PROTECTED]>:
> The child calls snmptrap via an execvp call and then the child exits.
>
> This is working great for standard data types (integer, ip address, string,
> etc.). I can't seem to get this to work with my DateAndTime object.
I
on my device fork off a child process to handle the sending
> of the trap. The child calls snmptrap via an execvp call and then the
> child exits.
>
> This is working great for standard data types (integer, ip address,
> string, etc.). I can't seem to get this to work with
The child calls
snmptrap via an execvp call and then the child exits.
This is working great for standard data types (integer, ip address, string,
etc.). I can't seem to get this to work with my DateAndTime object. I used
the function date_n_time() to transform my timestamp into a bin
On 29/08/06, <[EMAIL PROTECTED]> wrote:
> 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";
No - that's not correct.
Please read
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
Dave Shield wrote:
But when I use this, the snmpwalk ends up looking funny.
MITEL-CMNALM-MIB::mitelAlmActiveTblSeverityDetectTime.10.1.3.6.1.4.1.1027.1.7.1
= STRING: 1971-1-16,12:1:30.0,-0:0495058484924000
Lots of trailing junk.
What does the code that *uses* the result of this routine loo
On Mon, 2005-11-07 at 12:28 -0500, Michael P. Soulier wrote:
> I'm trying to compose a DateAndTime string, but when it's decoded by
> net-snmp's command-line tools it has trailing junk that I don't understand.
>
> Here's my function.
[snip]
This is
Greetings,
I'm trying to compose a DateAndTime string, but when it's decoded by
net-snmp's command-line tools it has trailing junk that I don't understand.
Here's my function. The input value is coming from a text-file that's in
a human-readable format.
int
"David T. Perkins" wrote:
David> ... the function gmtime should be replaced by the thread-safe versionDavid> called gmtime_r ...
I agree
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
HI,
Oh, by the way, I forgot to mention that the function
gmtime should be replaced by the thread-safe version
called gmtime_r, which has signature:
struct tm *gmtime_r(cont time_t *clock, struct tm *result)
Ok, I see why you need the length.
On Tue, 28 Dec 2004, Elisabeth Gloria wrote:
> Hi
Hi David,
OK, please consider following changed code.
I accept you criticism concerning thread safe issue.
Concerning 'len', see comments inthe edge of the function.
typedef struct snmp_data_and_time_s { unsigned short year; unsigned char month; unsigned char day; unsigned char hour; unsi
HI,
Your example below is not thread-safe. I suggest that you
change it to pass in a pointer to a place to store the
result instead of using static "dtt" in the function
(and remove the "len" argument, since it is not needed).
That is, change the function signature to:
DT_T *AGUTIL_get_date_and_
I do have such one, you may try to use it:
char * AGUTIL_get_date_and_time (time_t * tv,
size_t * len){ typedef struct snmp_data_and_time_s { unsigned short year; unsigned char month; unsigned char day; unsigned char hour; unsigned char minutes;
> On Mon, 15 Nov 2004 13:11:42 +0100 (MET), "Sven Jonas" <[EMAIL
> PROTECTED]> said:
Sven> is there any funtion that converts an u_char time[11] to a
Sven> time_t-Struct?
Nope, but if you write one please send it to us!
--
Wes Hardaker
Sparta
-
Hello,
is there any funtion that converts an u_char time[11] to a time_t-Struct?
When setting the time in my agent i used date_n_time to convert the
time_t-Structure to my u_char-Array. Then i used the snmp_pdu_add_variable
and send it to my agent.
Now, i would like to get the time back from the
17 matches
Mail list logo