|
From: Zack L. <zac...@ho...> - 2008-06-17 18:54:30
|
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 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 binary string and passed it as an arg with "s" for the type. I added a trace message and found that snmptrap is being called with my binary string. However, snmptrap must be blowing up somewhere before the trap is sent. Before I spend any time debugging snmptrap I wanted to make sure I wasn't taking the completely wrong approach to this. Thank you! _________________________________________________________________ The i’m Talkathon starts 6/24/08. For now, give amongst yourselves. http://www.imtalkathon.com?source=TXT_EML_WLH_LearnMore_GiveAmongst |