Hi Dave, Thanks for your quick response. What you said is perfect. When I suppressed the system mib during agent start-up , everything is doing fine. ie i gave the command as follows.
snmpd -I-system_mib -f -L -Dresult,proxy,vacm And I send a request from another terminal(same proxy system) snmpget -v1 -c public localhost sysName.0 --> it is giving what I want actually.Ie it is getting the SysName from the remote host...!!!!!!!! But another problem I am facing is proxy is getting timed -out. ie it shows on the terminal proxy: got timed out... requests = 0x80fb080 proxy: got timed out... requests = 0x80fbb68 proxy: got timed out... requests = 0x80fc650 proxy: got timed out... requests = 0x80fd138 proxy: got timed out... requests = 0x80fdc20 proxy: got timed out... requests = 0x80fe708 And again when I am requesting it is working fine(without restarting the agent). vacm:getView: , found proxy: proxy handler starting, mode = 160 proxy: sending pdu results: request results (status = 0): results: SNMPv2-MIB::sysName.0 = No Such Instance currently exists at this OID proxy: got response... SNMPv2-MIB::sysName.0 after that no pblm..... I don't know why that timed out thing happened over there..... Anybody have any suggestion.... And once again I do thank all of you,expecially Dave. Thanks & regards Jobin Jose Sebastian Aztecsoft Bangalore | Bangalore | Mobile : +919845976976 | Phone : +91-80- 25522892 Extn : 112 -----Original Message----- From: Dave Shield [mailto:[EMAIL PROTECTED] Sent: Thursday, July 06, 2006 2:42 PM To: Jobin Jose Sebastin Cc: [email protected] Subject: Re: help needed for SNMpv1 proxy support Jobin Jose Sebastin wrote: > Actually my intension is to forward the requests comes for the part of > my mib tree to a remote agent ( say IPADDRESS 192.168.157.41 with > sysName : remote agent). > > My configuratin file /etc/snmp/snmpd.conf is as follows. > [snip] > proxy -v 1 -c public 192.168.157.41 .1.3.6.1.2.1.1.5 > > ---------------------------------------------------------------------- > > ie whenever any SNMPv1 request is coming to my agent ( running in the > machine with IPADDRESS 192.168.157.222 > with say sysName :my agent),it should forward (in this case i am > requesting for the sysName of the device ) > the request to the remote system with IPADDRESS 192.168.157.41 and > should give the sysName of that device. > Yes - given that snmpd.conf file, I would expect this to work as expected. You don't say explicitly, but I presume that you're actually seeing the sysName of the local device ("my agent") - correct? The one possible cause that springs to mind is that "more specific" registrations take precedence over more general ones. So a local registration of .1.3.6.1.2.1.1.5.0 would override the proxy registration of .1.3.6.1.2.1.1.5 Try dumping the contents of the module registry (either by walking NET-SNMP-AGENT::nsModuleTable or by sending the signal USR1 to the agent), and look for mention of .1.3.6.1.2.1.1.5 What can you see? What happens if you run the local agent using '-I-system_mib' (to suppress the registration of the system group altogether). What version of the code are you using? Dave The information contained in, or attached to, this e-mail, contains confidential information and is intended solely for the use of the individual or entity to whom they are addressed and is subject to legal privilege. If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager. Please do not copy it for any purpose, or disclose its contents to any other person. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The recipient should check this e-mail and any attachments for the presence of viruses. The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email. www.aztecsoft.com 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=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
