How to trigger the sending of a v2 trap

2011-05-02 Thread liuying
Dear:     I have a problem about how to trigger the sending of a  V2 trap    In the program,Iuse:    $snmpset -v2c -c private localhost snmptrap.0 i 1   Then,it can send a trap to the destination ip.    Or I test like this,  In the var_snmp:       case OLTFIRMWAREVER:    *var_len = sizeof

problem about sending V2 trap

2011-05-02 Thread liuying
Dear:     I have a problem about sending V2 trap.   When I use "snmp.c, snmp.so" to send trap,I can recerive it sucessfully.     But when I use:      $ gcc main.c -L -lsnmp …… -I ./include -o main       In the main.c,Iuse:     write_exampletrap2(COMMIT,NULL,0,0,NULL,NULL,0)    to send trap.

Can not create template file by mib2c

2011-05-02 Thread Chi . Guan
I finally got snmp perl installed by changing a bunch of Makefiles. But when I use mib2c to create template files from a MIB file, I got the following error: #env MIBS="+RTIRIDIUM-MIB" mib2c -c mib2c.scalar.conf iridium writing to iridium.h writing to iridium.c running indent on iridium.c indent

can not make snmp perl

2011-05-02 Thread Chi . Guan
Hi, I have got errors to make snmp perl. make[1]: Entering directory `/work/snmp/net-snmp-5.5/perl' make[1]: *** No rule to make target `/opt/lib/perl5/5.8.0/x86pc-nto/Config.pm', needed by `Makefile'. Stop. make[1]: Leaving directory `/work/snmp/net-snmp-5.5/perl' the perl5 in my system is actu

help on win32 lib

2011-05-02 Thread Autuori Gianluigi
Hello, I want to use netsnmp.lib in my C application under Win32 and MinGW. I have done it under Linux and it works very well (using libnetsnmp.a). I want to do a simple program written in c to get values of mibs of a switch. Could somebody help me? thanks Gianluigi -

Generating Trap for low disk space

2011-05-02 Thread Umesh Kumar L.R
Hi All, I would like to know how to generate Trap for Low Disk Space, I am using Fedora 8. Please help me Thanks and Regards Umesh Kumar L R -- WhatsUp Gold - Download Free Network Management Software The most intuitive,