Mibs for Dummies
I have generated c code for some tables using mib2c and the mib2c.mfd.conf configuration files. I also made a shared object file for some scalars. I loaded them both and they both show up in the dlmod table. All are set to read-create. The problem is, I can't set any values in the table. I can set the scalars at will. I get : Error in packet. Reason: notWriteable (That object does not support modification) Failed object MY-MIB::myTableRowStatus.0 I am concerned that the code for myTable doesn't do the SET because of some silly flag I may have missed. I implemented the sets and commits etc. in the code, but it doesn't look like it is being called (in the log file I have verbose debugging going on). I do however see the following SET requests coming in: -. trace: _myTable_initialize_interface(): myTable_interface.c, 225: myTable:init_myTable: Registering myTable as a mibs-for-dummies table. snmpd: send_trap: Cannot send V1 PDU on V2 session NET-SNMP version 5.4 Connection from UDP: [127.0.0.1]:51682 Received SNMP packet(s) from UDP: [127.0.0.1]:51682 SET message -- MY-MIB::myTableRowStatus.0 -. ...but no other debug messages involving row creation or even values being initialized, which I expect to see. I am sure I have missed a flag or failed to implement a function or some similar problem. Is there a common mistake that I could have made? Thank you, Adam -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Adding support for DS1 port details
Hi, I have already posted this as a non member, now trying to post as a member of this list. We are trying to provide the DS1 port details as part of the standard MIB. I was planning to extend the ifTable implementation to support for DS1 ports aswell. Initially I tried excluding the ifTable from the makefile, but got errors stating the dependencies on "ip" module etc.. How can I achieve this, can we exclude the ifTable at runtime? and extend the functionality to support DS1? Thanks, Malathi -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
net-snmp compilation problem
Hi, I'm getting compilation error while compiling net-snmp by running command make The following is the configuration operating system: windows vista environment: cygwin net-snmp version: net-snmp-5.5 I have looked through the mailing-list but couldnot get any lead. From the error, I guess some package is missing. Can any one of you please let me know the package to install and how to resolve this issue. Thanks a lot. gcc -c -I../../include -g -O2 -Ucygwin -Dcygwin=cygwin -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/incl ude -I/usr/lib/perl5/5.10/i686-cygwin/CORE -I. -I/usr/local/include -DPERL_USE_S AFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing -pipe -fstack-protector -I/usr /local/include -DUSEIMPORTLIB -O3 -DVERSION=\"5.05\" -DXS_VERSION=\"5.05\" "- I/usr/lib/perl5/5.10/i686-cygwin/CORE" default_store.c rm -f ../blib/arch/auto/NetSNMP/default_store/default_store.dll g++ --shared -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--stack,838 8608 -Wl,--enable-auto-image-base -L/usr/local/lib -fstack-protector default_st ore.o -o ../blib/arch/auto/NetSNMP/default_store/default_store.dll \ /usr/lib/perl5/5.10/i686-cygwin/CORE/cygperl5_10.dll -L/home/test/ne t-snmp-5.5/perl/default_store/../../snmplib/.libs -L/home/test/net-snmp-5.5/pe rl/default_store/../../snmplib -L/usr/local/lib -lnetsnmp \ /home/test/net-snmp-5.5/perl/default_store/../../snmplib/.libs/libnetsnmp.a(sc api.o): In function `sc_decrypt': /home/test/net-snmp-5.5/snmplib/scapi.c:987: undefined reference to `_DES_key_ sched' /home/test/net-snmp-5.5/snmplib/scapi.c:990: undefined reference to `_DES_cbc_ encrypt' /home/test/net-snmp-5.5/snmplib/scapi.c:997: undefined reference to `_AES_set_ encrypt_key' /home/test/net-snmp-5.5/snmplib/scapi.c:1003: undefined reference to `_AES_cfb 128_encrypt' /home/test/net-snmp-5.5/perl/default_store/../../snmplib/.libs/libnetsnmp.a(sc api.o): In function `sc_encrypt': /home/test/net-snmp-5.5/snmplib/scapi.c:774: undefined reference to `_AES_set_ encrypt_key' /home/test/net-snmp-5.5/snmplib/scapi.c:780: undefined reference to `_AES_cfb1 28_encrypt' /home/test/net-snmp-5.5/snmplib/scapi.c:752: undefined reference to `_DES_key_ sched' /home/test/net-snmp-5.5/snmplib/scapi.c:758: undefined reference to `_DES_ncbc _encrypt' /home/test/net-snmp-5.5/snmplib/scapi.c:764: undefined reference to `_DES_ncbc _encrypt' /home/test/net-snmp-5.5/snmplib/scapi.c:752: undefined reference to `_DES_key_ sched' /home/test/net-snmp-5.5/snmplib/scapi.c:758: undefined reference to `_DES_ncbc _encrypt' /home/test/net-snmp-5.5/perl/default_store/../../snmplib/.libs/libnetsnmp.a(sc api.o): In function `sc_hash': /home/test/net-snmp-5.5/snmplib/scapi.c:431: undefined reference to `_EVP_md5' /home/test/net-snmp-5.5/snmplib/scapi.c:448: undefined reference to `_SSLeay' /home/test/net-snmp-5.5/snmplib/scapi.c:452: undefined reference to `_EVP_Dige stInit' /home/test/net-snmp-5.5/snmplib/scapi.c:460: undefined reference to `_EVP_Dige stUpdate' /home/test/net-snmp-5.5/snmplib/scapi.c:467: undefined reference to `_SSLeay' /home/test/net-snmp-5.5/snmplib/scapi.c:472: undefined reference to `_EVP_Dige stFinal_ex' /home/test/net-snmp-5.5/snmplib/scapi.c:474: undefined reference to `_EVP_MD_C TX_cleanup' -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: when snmpwalk query my private trap OID the snmpd routine auto termination
-- Original -- From: "Dave Shield"; Date: Sat, Jan 23, 2010 05:04 PM To: "Alexander King"; Cc: "net-snmp-users"; Subject: Re: when snmpwalk query my private trap OID the snmpd routine auto termination On 23 January 2010 05:33, Alexander King wrote: > But I do not know how to implement the trap in the MIB file "Implementing a trap" means writing code to construct and send the trap, and invoking this at the appropriate time. This is handled (at least in part) by the mib2c template "mib2c.notify.conf" "at least in part",maybe I get something really true in your word.below are something my ideas: 1. I define a completed MIB file(included scalars,tables,traps),and make it right. 2.Get the generated code use the tools:mib2c.iterate.conf,mib2c.scalar.conf,mib2c.table.conf,and modify them.and delete the traps's OIDs 3.Delete the traps definitions in the MIB file,and keep all the other unchange.especially the structure of the MIB and their OID relationship. Am I right?I really think it is wrong. > the trap is a part of the MIB file,and traps have their own OIDs Correct. > and related some specific OBJECT-TYPE value(s), Typically, yes. Those related OBJECT-TYPE values are often accessible to GET* requests, as well as being included in the payload of the relevant traps. But these payload OIDs are different from the OID of the trap itself. Don't get the two confused. > how to define the trap can make the walk routine donot walk it? If the agent does not include code to handle incoming requests for a particular OID, then walking the agent will ignore that OID. In particular, if you don't register a given OID, then the walk will ignore it. The code generated by mib2c.notify.conf does not include any registration of the OID. Contrast this with the code generated by the other (OBJECT-TYPE) mib2c templates. > All I need is some prototype for my reference,so I can imitate, > modify,implement in my project.(I know it is hard to find one,they are all > difference.) Why not start with the code in 'agent/mibgroup/examples/notification.c' ? That's probably as simple a setup as you're likely to find. Dave-- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: net-snmp compilation problem
On Mon, Jan 25, 2010 at 3:50 AM, Group wrote: > I'm getting compilation error while compiling net-snmp by running command > make > > The following is the configuration > operating system: windows vista > environment: cygwin > net-snmp version: net-snmp-5.5 > > I have looked through the mailing-list but could not get any lead. From the > error, I guess some > package is missing. Can any one of you please let me know the package to > install and > how to resolve this issue. Thanks a lot. > > gcc -c -I../../include -g -O2 -Ucygwin -Dcygwin=cygwin > -DPERL_USE_SAFE_PUTENV > -U__STRICT_ANSI__ -fno-strict-aliasing -pipe -fstack-protector > -I/usr/local/incl > ude -I/usr/lib/perl5/5.10/i686-cygwin/CORE -I. -I/usr/local/include > -DPERL_USE_S > AFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing -pipe -fstack-protector > -I/usr > /local/include -DUSEIMPORTLIB -O3 -DVERSION=\"5.05\" -DXS_VERSION=\"5.05\" > "- > I/usr/lib/perl5/5.10/i686-cygwin/CORE" default_store.c > rm -f ../blib/arch/auto/NetSNMP/default_store/default_store.dll > g++ --shared -Wl,--enable-auto-import -Wl,--export-all-symbols > -Wl,--stack,838 > 8608 -Wl,--enable-auto-image-base -L/usr/local/lib -fstack-protector > default_st > ore.o -o ../blib/arch/auto/NetSNMP/default_store/default_store.dll \ > /usr/lib/perl5/5.10/i686-cygwin/CORE/cygperl5_10.dll -L/home/test/ne > t-snmp-5.5/perl/default_store/../../snmplib/.libs > -L/home/test/net-snmp-5.5/pe > rl/default_store/../../snmplib -L/usr/local/lib -lnetsnmp \ > > > /home/test/net-snmp-5.5/perl/default_store/../../snmplib/.libs/libnetsnmp.a(sc > api.o): In function `sc_decrypt': > /home/test/net-snmp-5.5/snmplib/scapi.c:987: undefined reference to > `_DES_key_ > sched' > [ ... ] > Which options did you specify to the configure script ? Did you encounter the following message during the configure step ? configure: WARNING: winsock.h: present but cannot be compiled configure: WARNING: winsock.h: check for missing prerequisite headers? configure: WARNING: winsock.h: see the Autoconf documentation configure: WARNING: winsock.h: section "Present But Cannot Be Compiled" configure: WARNING: winsock.h: proceeding with the preprocessor's result configure: WARNING: winsock.h: in the future, the compiler will take precedence configure: WARNING: ## ## configure: WARNING: ## Report this to net-snmp-cod...@lists.sourceforge.net ## configure: WARNING: ## ## Bart. -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users