SNMPSET Problem
Hi, check for the following, 1) MIB object which you want to set should be writable. 2) you need to add "rwcommunity private default " to the snmpd.conf file as the MIB object you are trying to set is under a private section. or else you can specifically make only that MIB as writable. Regards, Gadag ---DISCLAIMER-- The information transmitted herewith is confidential and proprietary information intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer. ---
subsequent calls to agent after 1st snmpset doesn't get received at agent.
Hi All, I am facing one strange issue with snmpset commands on some of the MIB objects (These usually take a bit more time to execute but i have increased the time delay by option -t 10, which provides enough delay for me to get the results even then this problem exists.) On executing snmpset command for these MIB object gets the reply from the snmpagent for the first time, but the subsequent calls for get and set commands to the snmpagent does't get any response from the agent. The observations made are as follows, When I issue a set on "mib-object1" [EMAIL PROTECTED] vmgadag]$ snmpset -v2c -t 10 -c private 192.168.100.140 .1.3.6.1.4.1.12622.2.12.1.5.0 s "hello" SYSCONF-MIB::mib-object1.0 = STRING: hello [EMAIL PROTECTED] vmgadag]$ snmpset -v2c -t 10 -c private 192.168.100.140 .1.3.6.1.4.1.12622.2.12.1.5.0 s "hello1" Timeout: No Response from 192.168.100.140 [EMAIL PROTECTED] vmgadag]$ snmpwalk -v2c -t 10 -c private 192.168.100.140 .1 Timeout: No Response from 192.168.100.140 [EMAIL PROTECTED] vmgadag]$ snmpwalk -v2c -t 100 -c public 192.168.100.140 .1 Timeout: No Response from 192.168.100.140 1. The PID of the hostapd & dhcpc get changed. (they get restarted ) 2. When IP address of the Board is set statically the same observation repeates, but a flushing of the command is observed. That is assume that the first snmpset has been issued & the reply is obtained. When I issue the second snmpset command there will be no response from the snmpagent. Later on if I issue "set interface br0 static-ip 192.168.100.140" on serial console I can see the code associated with the second snmp command getting executed since some debug statements I have inserted scroll on the serial port at this point of time. 3. If I issue "set interface br0 static-ip 192.168.100.140" or "set snmp status up" command, while snmpmaster is still waiting for the response, then I would get the proper response at the master. Is this something like port getting closed or etc. Is that some bady has allready seen these kind of issues with net snmp. Any suggestions please.. Thanks & Regards, Gadag ---DISCLAIMER-- The information transmitted herewith is confidential and proprietary information intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer. ---
Re: confusion reg Baby steps interface in Net-SNMP
Hi Dave, Thanks alot for the input, Thanks & Regards, Gadag On Thu, 2006-03-02 at 19:05, Dave Shield wrote: On Tue, 2006-02-28 at 17:07 +0530, V M Gadag wrote: > 1) What is "Baby step" Interface in Net-SNMP? It's a framework for implementing MIB modules, that breaks the basic four-pass model (RESERVE1/RESERVE2/ACTION/COMMIT) of the Net-SNMP agent into a large number of much smaller steps. The idea is to allow the MIB implementer to concentrate on one tightly focused aspect at a time, without having to bother with the wider picture. There's a diagram of how this works in the 'baby_steps.c' file (and somewhere on the web, though I can't remember where Robert's alternative FAQ is located). I believe that the baby_steps helper is only currently used by the Mibs For Dummies framework (MfD), which takes the same idea a step further, by defining individual routines for each task on each MIB object separately. But you're better off asking Robert about this - he's much more familiar with this framework than I am. I have a feeling he's not currently reading the users list (though I could be wrong) so you might want to ask on the IRC channel. > 3) Is that mib2c & "Baby Steps Interface" can be used interchangeably? > if so, what is the difference & similarity between them? mib2c is a tool for generating code (using one of a number of possible approaches). MfD (which uses the baby_steps helper) is just one of these. It's probably impractical to implement a MIB using the MfD framework *without* using mib2c to generate this code - since the whole point is to handle as much as possible automatically. > 4)Is there any other tool or framework ( as generated by mib2c ) in > Net-Snmp where in i can set / get multiple MIB objects under a single > switch case? Some of the other mib2c templates will do this - certainly mib2c.{container,create-dataset,table_data}.conf will. Those are all concerned with implementing tables. For scalar objects, the only real option is mib2c.scalar.conf which (currently) generates a separate handler for each scalar object. But it *is* possible to merge these into one 'scalar_group' handler. At some point, I'll have to look at providing a mib2c.scalar_group.conf template. But don't hold your breath. If you want to implement several scalars together, the simplest is probably to generate the multi-handler code file, and I'll show you how to merge them into one. > That is I think, I should get the multiple requests in a single > call to a handler, which will handle get / set cases. Note that the agent will inherently process each SNMP request separately. There may be several varbinds in that request (which will be passed all together to the relevant handlers). But if you have two separate SNMP requests, then they will trigger separate calls to your MIB handler routine. Dave ---DISCLAIMER-- The information transmitted herewith is confidential and proprietary information intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer. ---
confusion reg Baby steps interface in Net-SNMP
Hi All, Can anyone please help me, ( I am very much new to Net-SNMP ) I was just trying to Instrument the Set functionality for some of the MIB objects using the frame work generated by mib2c, & i got the following doubts, 1) What is "Baby step" Interface in Net-SNMP? 2) Is there anything like, I can replace my implementation of a MIB file using mib2c tool with that of "Baby step Interface" (I don't know what is this )? 3) Is that mib2c & "Baby Steps Interface" can be used interchangeably? if so, what is the difference & similarity between them? 4)Is there any other tool or framework ( as generated by mib2c ) in Net-Snmp where in i can set / get multiple MIB objects under a single switch case? That is I think, I should get the multiple requests in a single call to a handler, which will handle get / set cases. please correct me if I am wrong... Thanks & Regards, chetan ---DISCLAIMER-- The information transmitted herewith is confidential and proprietary information intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer. ---
Re: my .c & .h are not compiling with net-snmp make..
Hi David, Thanks for that input, but if i have more that one file (around 20) that that option is a tough choice (as its in development stage & too many times i need to build it) do that i need to modify the configuration file in that case? I tested the steps u have sent, but i am facing with some other compiling problems, (with which I will get back soon). Thanks & Regards Chetan On Thu, 2006-01-19 at 17:20, Dave Shield wrote: On Thu, 2006-01-19 at 16:50 +0530, V M Gadag wrote: > I have added some new files (.c & .h ) files to one of the folder that > is allready existing , I am facing the problem that, when i build all > the files except mine get compiled. do i have to m ake any changes to > configure file? or to Makefile.in? or anything else, so that the new > files added by me to the net-snmp get compiled. Assuming your new files are called 'myFile.c' and 'myFile.h' (and are in the "mibgroup" directory) then run the command: configure --with-mib-modules=myFile and recompile. Dave ---DISCLAIMER-- The information transmitted herewith is confidential and proprietary information intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer. ---
my .c & .h are not compiling with net-snmp make..
Hi All, I am a very new user of NET-SNMP , the problem i am facing is - I have added some new files (.c & .h ) files to one of the folder that is allready existing , I am facing the problem that, when i build all the files except mine get compiled. do i have to m ake any changes to configure file? or to Makefile.in? or anything else, so that the new files added by me to the net-snmp get compiled. any help plz, Regards chetan ---DISCLAIMER-- The information transmitted herewith is confidential and proprietary information intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer. ---