LQ> But, do I have to use the snmp library? And include the header files
LQ> into my project?
Yes you would.
--
Wes Hardaker
Please mail all replies to [email protected]
--
Special Offer-- Download
Thanks so much.
But, do I have to use the snmp library? And include the header files into my
project?
2011/1/13 Wes Hardaker
>
> The better way would be to use the API to send a trap. Rather than call
> snmptrap from within a system call, look at the insides of the
> apps/snmptrap.c file and co
The better way would be to use the API to send a trap. Rather than call
snmptrap from within a system call, look at the insides of the
apps/snmptrap.c file and copy how it creates a trap (or inform) PDU and
send it via function calls instead.
--
Wes Hardaker
Please mail all replies to net-snmp-
Hello.
I have a PC with Net-SNMP and other program installed.
I need the program send a TRAP when a specific function is runing.
I know that I can build a "trap" in bash with "snmptrap" command, for
example: snmptrap -c password localhost 1.2etc.
There is a function in C/C++, it is called "sys