Hi Wes, Sorry I hadn't actually stated what problem i have when collecting stats from both agents. One of the agents is proprietary that links with netsnmp (port 161) and the other is the stock snmpd (for dsk, cpu and mem info in UCD-SNMP-MIB) that comes with redhat. The application that is polling both these agents can poll the agent on port 161 but gets no response from snmpd. I wrote a test program where i reverse the order and snmpwalk from snmpd oid followed by a walk on the proprietary agent things work. I had a feeling something in the snmp_session is stored in the netsnmp stack that's not getting reinitialized while talking to a new agent. Although i posted this question on context (it did not work and hence the post), i was beginning to believe context may not be the issue. Do you think context is the issue in the case i have described?
Thanks Aravind On Tue, Dec 21, 2010 at 9:16 PM, Wes Hardaker <[email protected]> wrote: > >> I have a binary that is collecting stats from this agent on port 1161 >> and another running on port 161. I figured this may be because both >> the agents use default context, so to the agent with the above config >> I tried adding context based on an earlier e-mail thread as below. > > If you have two agents on the same machine you can use contexts to > attach them to a single port, but not just by changing the snmpd.conf > file. You'd need to: > > 1) run the second agent as a sub-agent to the first (on port 161) if the > second agent supports running as agentX instead (which it will if > you're using our agent). The second agent will need to register it's > information using a non-default context. > > 2) Keep one agent running on both ports and "proxy" to the second agent > from the first using a context. This is discussed in the proxy > section of the snmpd.conf manual page. > > -- > Wes Hardaker > Cobham Analytic Solutions > ------------------------------------------------------------------------------ Forrester recently released a report on the Return on Investment (ROI) of Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even within 7 months. Over 3 million businesses have gone Google with Google Apps: an online email calendar, and document program that's accessible from your browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew _______________________________________________ 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
