Re: How to run my legacy snmp "agent" as sub-agent of net-snmp agent
Krishna Mohan <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks, Dave. It worked fine after disabling unwanted modules in the master agent. KrishnaMohan --- On Fri, 3/7/09, Dave Shield <[email protected]> wrote: From: Dave Shield <[email protected]> Subject: Re: How to run my legacy snmp "agent" as sub-agent of net-snmp agent To: "Krishna Mohan" <[email protected]> Cc: "net-snmp-users" <[email protected]> Date: Friday, 3 July, 2009, 3:00 PM 2009/7/3 Krishna Mohan <[email protected]>: > I configured net-snmp listening on port 161 to proxy requests for all OIDs > (.1.3) as below expecting it to proxy all requests to legacy agent > listening on port 1661 > proxy -v 2c -c public localhost:1661 .1.3 No - that will proxy any request ==>that does not have a more specific registration<==. A more specific registration (i.e. longer root OID) will always take precedence over more general ones (with a shorter root OID). See the AgentX specs for details. > In other words, I observed, for MIBs having implemented > in both master-agent (snmpd) and sub-agent (legacy agent), master-agent > implementation supersedes It's not a matter of the master superceding the subagent. Rather it's a more specific registration taking precedence over a general one. If you want to direct requests to the proxied agent, the best approach would be to disable the unwanted module in the master agent (e.g. snmpd -I-module....) Failing that, it *might* be possible to explicitly registering the OID in question via "proxy". Though I suspect you might run into problems with duplicate registrations. The best approach is definitely to turn off the bits you don't want in the master agent. Dave Love Cricket? Check out live scores, photos, video highlights and more. Click here http://cricket.yahoo.com ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/blackberry _______________________________________________ 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