A few months ago I was having trouble sending traps that contained a
DateAndTime argument. The suggestion I got from this list (thank you!) was to
take the binary data that was returned from my call to date_n_time() and
convert it to printable hex. I then called snmptrap and passed it a "-x"
2:58 +0100> From:
[EMAIL PROTECTED]> To: [EMAIL PROTECTED]> Subject: Re: problem using snmptrap
with a DateAndTime object> CC: net-snmp-coders@lists.sourceforge.net> >
2008/6/17 Zack Little <[EMAIL PROTECTED]>:> > The child calls snmptrap via
an execvp call a
I have defined a custom MIB for queries and that is working fine. I now want
to have my device send some traps that I have created in my custom MIB file.
Right now what I'm doing is having an application that runs on my device fork
off a child process to handle the sending of the trap. The c
Thanks for the response Dave.
My problem was that I was not doing an fflush after I wrote the "PONG" to snmpd
in my C program. I didn't experience a problem when I was using "pass" because
when my program exited it automatically flushed the buffers.
I do have one more question. I noticed
I've used the "pass" statement for pass-through control to handle a custom MIB
I've written. This works great. The problem is that I now want to return a
large amount of data that has to be collected. So "pass" will kick off my
program, the program will parse the large amount of data and the