Issue with implementation of bulk get
I am using mib2c.table_iterator.conf to generate code for my mib modules. In the default case all the get-bulk requests are handled by table_iterator handler and when the call finally comes to sub-agent, it is always MODE_GET. Is there a way I can specify that the sub-agent has the capability to handle BULK request. Any example, if available, will be quite helpful. I found a flag HANDLER_CAN_GETBULK for this purpose, but it doesn't seem to be working. Thanks Regds, Sachin - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Net-snmp-users mailing list [EMAIL PROTECTED] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
net-snmp thread safe?
What actually is meant when we say net-snmp is not thread safe? Particularly, 1. if there are multiple get requests coming from multiple sources, the order of them are not defined. But is some sort of session information maintained which ensures that it will not interfere with the response received. e.g. there in no global var whose value gets affected and so the response differs if the requests are mingled. 2. What about set requests ? Are they serialized ? Does this imply that SET_RESERVE1, SET_RESERVE2, ACTION and COMMIT stages for one set request will be completed before any other set request takes place. Is there any document which can provide such details. Thanks, Sachin -- Sachin Mishra [EMAIL PROTECTED] - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
agentx problem with net-snmp5.4
I upgraded my net-snmp agent from 5.3.0.1 to 5.4. After the upgradation, my sub-agent is not able to contact to net-snmp master agent. In snmpd.conf I have specified master as yes. When I reverted back to 5.3.0.1 again everything is working fine. Is there any change in configuration when I move to 5.4. The error I receive is: Error: Failed to connect to the agentx master agent (localhost:3456): Unknown host (localhost:3456) (Connection refused). I have started snmpd as: snmpd -f -x localhost:3456. Thanks, Sachin - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
agentx problem with net-snmp5.4
I upgraded my net-snmp agent from 5.3.0.1 to 5.4. After the upgradation, my sub-agent is not able to contact to net-snmp master agent. In snmpd.conf I have specified master as yes. When I reverted back to 5.3.0.1 again everything is working fine. Is there any change in configuration when I move to 5.4. The error I receive is: Error: Failed to connect to the agentx master agent (localhost:3456): Unknown host (localhost:3456) (Connection refused). I have started snmpd as: snmpd -f -x localhost:3456. Thanks, Sachin - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Unaligned access on 64 bit machine
While running net-snmp-5.3.0.1 on 64 bit intel machine with RHEL4 snmpd -f -x localhost:1234, there are error messages related to unaligned access: unaligned access to 0x214927c4, ip=0x200f2630 unaligned access to 0x214927c4, ip=0x200f2630 unaligned access to 0x214927c4, ip=0x200f2630 unaligned access to 0x214927c4, ip=0x200f2630 Is there a way to get rid of this. Thanks, Sachin - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Implication of CreateAndWait RowStatus
I have some confusion in the use of CreateAndWait option of RowStatus textual-convention. It says that if while creating a new row if we use CreateAndWait, it will the set the row in one of the states: not in service or not ready, based on the information available with the sub-agent. Till the row is not set to active, it should not be available for use to the managed device. I want to know, at this stage if some other application (e.g. CLI)is trying to get the status of this new entry should it get the status or not or is it implementation dependent or it is not of concern to SNMP. e.g. Suppose we create a new route entry in route Table and the status is notInService. What will be effect of this? Will this update routeTable? The sub-agent has the information stored with it and it will be passed to routeTable only when the entry becomes active? If someone is querying the route table from CLI, should he get access to this entry? Thanks, Sachin - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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: Table iterator when index is sorted
I didn't get any response for this, so I am resending just in case... Thanks, Sachin On Mon, 2006-09-18 at 12:12 +0530, Sachin Mishra wrote: In my subagent I have data which is already sorted w.r.t. to index. Should I use iterate.conf or array-user.conf to generate the subagent template code. Is there anyu example of array-user.conf? The index for my table is OCTET-STRING. While using iterate.conf, if I specify the SORTED flag, it compares the complete oid and just the index part of it. As a result, it returns wrong values in comparison. e.g. If I have indexes indexaa and indexb, the oid it compares is baseoid.indexlength(2).index(aa) with baseoid.indexlength(1).index(b) and concludes that the order should be b followed by aa whereas lexicographically it should be the other way round. Am I doing something wrong? Do I need to perform some extra steps? Thanks, Sachin - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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
Table iterator when index is sorted
In my subagent I have data which is already sorted w.r.t. to index. Should I use iterate.conf or array-user.conf to generate the subagent template code. Is there anyu example of array-user.conf? The index for my table is OCTET-STRING. While using iterate.conf, if I specify the SORTED flag, it compares the complete oid and just the index part of it. As a result, it returns wrong values in comparison. e.g. If I have indexes indexaa and indexb, the oid it compares is baseoid.indexlength(2).index(aa) with baseoid.indexlength(1).index(b) and concludes that the order should be b followed by aa whereas lexicographically it should be the other way round. Am I doing something wrong? Do I need to perform some extra steps? Thanks, Sachin - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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: Problem on 64 bit machine
Thanks Dave. Size of long is 8. Was just curious if I can get the portion of the code where the value is assigned. -Sachin On Wed, 2006-08-23 at 15:19, Dave Shield wrote: On 23/08/06, Sachin Mishra [EMAIL PROTECTED] wrote: When I am trying to set the value of the object on a 64 bit machine, the requests variable passed in the table_handler function has requests-requestvb-val_len assigned as 8. I want to know why this value is 8 and not 4. (sizeof(int) gives 4 on that machine)? What does sizeof(long) give? 4 or 8? Note that (for historical reasons), integer values are held internally as long rather than int.This is so pervasive that it would be extremely difficult to change now. I believe that what's been done to address this problem, is to mask off the bottom 32-bits of all integer values (other than Counter64) - probably when building the PDU. You could either tweak your library code to do the same, or do an equivalent masking when setting the values. As long as the *value* is 32-bits, it doesn't actually matter if the variable that holds it is 64. Dave - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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
Problem on 64 bit machine
I am running net-snmp 5.3.0.1 on a 64 bit machine. When I try to set any attribute defined as Integer32 data-type in the MIB, the requests var in the handler return the value val_len as 8. Shouldn't this value be 4 (=sizeof(int))? Also, I want to know where does the value of val_len gets set in the flow. Thanks, Sachin - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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-snmp5.3.0.1 crash
net-snmp 5.3.0.1 crashes on power-pc. Linux ppc-301-1 2.4.22-2f #1 Sun Nov 9 16:49:49 EST 2003 ppc ppc ppc GNU/Linux Here is the stack trace information of the core dump: #0 __libc_free (mem=0x11) at malloc.c:3337 3337malloc.c: No such file or directory. in malloc.c (gdb) bt #0 __libc_free (mem=0x11) at malloc.c:3337 #1 0x0f82f858 in __DTOR_END__ () from /lib/libc.so.6 #2 0x0ff20018 in init_hr_proc () at host/hr_proc.c:104 #3 0x0ff7c350 in init_mib_modules () at mib_modules.c:91 #4 0x10003508 in main (argc=2, argv=0x1001) at snmpd.c:901 #5 0x0f70104c in __libc_start_main (argc=2, ubp_av=0x7ab4, ubp_ev=0x3435352c, auxvec=0x7b28, rtld_fini=Cannot access memory at address 0x9 ) at ../sysdeps/powerpc/elf/libc-start.c:178 Has anyone else faced this problem? Thanks, Sachin --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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: running agentx sub-agent as non root
Thanks Dave. It seems the functionality of init_agent API has been changed significantly from 5.2 to 5.3. I was using the agentXPerms but that was not being taken in consideration in 5.2.x but is taken care in 5.3.x. So, it resolves my problem. -Sachin On Thu, 2006-03-02 at 22:22, Dave Shield wrote: On Thu, 2006-03-02 at 17:23 +0530, Sachin Mishra wrote: Isn't there a way to specify it in the config so that I can make [/var/agentx/master] work as a non-root user. See 'agentXPerms' in snmpd.conf(5) I believe this is only documented in the most recent release (5.3), but it should work in earlier versions as well. Dave --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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
running agentx sub-agent as non root
I am having problem running agentx subagent as a non-root user. I went through some earlier discussion on this in the mailing list where we talk about tweaking the permission of /var/agentx/master. Isn't there a way to specify it in the config so that I can make it work as a non-root user. I tried by giving the -x option while running snmpd. In this case, how to make sub-agent aware of the port where master is running. It seems that init_agent call by default takes a fixed value for port of master agent and it can't be changed using configuration. Thanks, Sachin --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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