Re: multiple Sub-agents managing the same table

"Arnaud BODENAN" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Unfortunately, the context approach seems to be relevant only for the 
version 3 of snmp, and not for version 2c. Am I right?

If I can't use contextName, I have to use range_subid and range_ubound. No 
workaround exist?


>From: "Arnaud BODENAN" <[email protected]>
>To: [email protected]
>Subject: Re: multiple Sub-agents managing the same table
>Date: Fri, 08 Sep 2006 11:28:36 +0200
>
>I check again with the following command:
>
>snmpwalk -n TestContext1 | grep GEN-MONITORING-MIB
>and the only occurence that I see is the following:
>
>HOST-RESOURCES-MIB::hrSWRunParameters.20657 = STRING: "GEN-MONITORING-MIB"
>
>So it is not working.
>
>Has anybody used the ContextName to register a table or a scalar?
>
>Thanks for your help.
>
> >From: "Arnaud BODENAN" <[email protected]>
> >To: [email protected]
> >Subject: Re: multiple Sub-agents managing the same table
> >Date: Fri, 08 Sep 2006 10:38:31 +0200
> >
> >I find the option -n, and I try this without success:
> >snmpwalk -n TestContext1 GEN-MONITORING-MIB::riskServerTable
> >snmpwalk -n "TestContext1" GEN-MONITORING-MIB::riskServerTable
> >snmpwalk -n \"TestContext1\" GEN-MONITORING-MIB::riskServerTable
> >
> >
> >
> > >From: "Arnaud BODENAN" <[email protected]>
> > >To: [email protected]
> > >Subject: Re: multiple Sub-agents managing the same table
> > >Date: Fri, 08 Sep 2006 10:26:19 +0200
> > >
> > >I check with a walk on NET-SNMP-MIB-AGENT and it seems to be ok 
>(despite
> > >the
> > >error message, which seems to be harmless)
> > 
> >NET-SNMP-AGENT-MIB::nsModuleName."TestContext1".10.1.3.6.1.4.1.99999.10000.1.1.127
> > >= STRING: AgentX subagent 38, session   11bae0, subsession   117d20
> > 
> >NET-SNMP-AGENT-MIB::nsModuleModes."TestContext1".10.1.3.6.1.4.1.99999.10000.1.1.127
> > >= BITS: E0 getAndGetNext(0) set(1) getBulk(2)
> > 
> >NET-SNMP-AGENT-MIB::nsModuleTimeout."TestContext1".10.1.3.6.1.4.1.99999.10000.1.1.127
> > >= INTEGER: 0
> > >
> > >Now, I don't know how to query my table...
> > >
> > >I try without success:
> > >- snmpwalk GEN-MONITORING-MIB::\"TestContext1\"
> > >- snmpwalk GEN-MONITORING-MIB::riskServerTable
> > >- snmpwalk GEN-MONITORING-MIB::riskServerTable.\"TestContext1\"
> > >
> > >
> > > >From: "Dave Shield" <[email protected]>
> > > >To: "Arnaud BODENAN" <[email protected]>
> > > >CC: [email protected]
> > > >Subject: Re: multiple Sub-agents managing the same table
> > > >Date: Fri, 8 Sep 2006 09:13:06 +0100
> > > >
> > > >On 08/09/06, Arnaud BODENAN <[email protected]> wrote:
> > > > > // Set a specific ContextName
> > > > > char buf[1024];
> > > > > sprintf(buf, "TestContext%d", allocatedIndex);
> > > > > handlerServerTable->contextName = buf;
> > > >
> > > >     handlerServerTable->contextName = strdup(buf);
> > > >
> > > >
> > > > > To use a ContextName, must I add something:
> > > > > - in my code?
> > > >
> > > >The snippet above should do the trick.
> > > >
> > > > > - in the MIB?
> > > >
> > > >No.
> > > >
> > > > > - in the configuration file?
> > > >
> > > >The access control settings must allow access from this context.
> > > >If you're using the convenience directives 
>("r{o,w}{community,user}"),
> > > >then this is handled automatically.  If you're setting things up via
> > > >com2sec/group/view/access, then you'll need to make sure that the
> > > >access line(s) covers the necessary contexts.
> > > >
> > > >See the documentation for details.
> > > >
> > > >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=lnk&kid=120709&bid=263057&dat=121642
> > > >_______________________________________________
> > > >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
> > > >
> > >
> > >_________________________________________________________________
> > >Express yourself instantly with MSN Messenger! Download today it's 
>FREE!
> > >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> > >
> > >
> > 
> >-------------------------------------------------------------------------
> > >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-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
> >
> >_________________________________________________________________
> >Don't just search. Find. Check out the new MSN Search!
> >http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> >
> >
> >-------------------------------------------------------------------------
> >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-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
>
>_________________________________________________________________
>Express yourself instantly with MSN Messenger! Download today it's FREE!
>http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>
>-------------------------------------------------------------------------
>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-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

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


-------------------------------------------------------------------------
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-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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.