Re: Sending Information through snmpget
Rodolfo Leffa <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks again Dave. I'm working with a existing MIB(and I wouldnt like to edit it), and the use of the context(v3) or community string(v1 v2c) is not a good solution to me, because the management aplication will not be implemented by me, I'll just provide the agent. Could you(or other) tell me if there's a way to extend the agent by implementing a single module to extend the whole MIB, instead of one for which entry in the MIB?? I want to do something like that: snmpget sends my agent a request like this - snmpget ... MYMIB::MIBDATA.1.0.22.1 . When it gets to the agent, it would repass it to my extending module(MIBDATA). Inside the handler then I can get the rest of the requisition( 1.0.22.1) and choose wich data is being requested. Is it possible?? Thanks and sorry about the bad english(again) []s On Wed, Feb 4, 2009 at 6:17 AM, Dave Shield <[email protected]>wrote: > 2009/2/3 Rodolfo Leffa <[email protected]>: > > But i've reached the following situation: I can have more then one device > > from wich I can get one kind of information(like STATUS, for example). > So, i > > need a way to especify which device I wanna to get the STATUS from. > > There are two basic options here. > > a) You can design your MIB tables to include an index which > specifies which device to query. > > This has the advantage that you can query several devices in a > single request, but does require that you have control over the MIB > definitions (and can change them) > > > b) You can use the SNMPv3 "context" field to specify which > device to query. (And the SNMPv1/2c community string can > be used in the same way). > > This is a little more complex to set up, and you can only query one > device at a time. But it doesn't affect the MIB definitions, which > may be an issue if you're working with existing MIBs. > > > > Dave > -- Rodolfo Leffa de Oliveira ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ 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