Subagent context question

everythingsfree____another.com everythingsfree____another.com
Mon Feb 18 14:17:56 CET 2002


Frank,

I don't know what you mean by having the SNMP-COMMUNITY-MIB configured appropriately but that's probably because of my lack of understanding.

However, I do understand what you mean by using contexts and the "-cn" option.  I've tried the following command:

snmpGet 127.0.0.1 1.3.6.1.4.1.4976.6.1.1.2.224 -cnsubagent

which again returns 'Variable does not exist'.

As I'm using the master and subagent examples from your source code can you give me an "snmpGet" command that will work and will retrieve some data from the static table that's in the "subagent" context?

Once I've got something that I know should work I can then look further into the code if it doesn't rather than not knowing whether I'm at fault with the command I'm trying.

Thanks,
Mike

-----Original Message-----
>From : Frank Fock <Frank.Fock at t-online.de>
To : everythingsfree at another.com
CC : agentpp-dl at agentpp.comDate : 15 February 2002 19:04:35
Subject : Re: Subagent context question
Hi Mike,
>
>If you do not have the SNMP-COMMUNITY-MIB configured
>appropriate, then you will have to use SNMPv3 to access objects
>in an non-default context. Use the “-cn“ option to specify the context
>name with the SNMP++ console examples.
>
>Best regards,
>Frank
>
>everythingsfree____another.com wrote:
>
>> I didn't get any folow up to my last post so I've carried on but am still stumped by the master and subagent example and how to get the information from it.
>>
>> There's a line of code in the master agent that adds 'an empty context, so a subagent can register its objects within this context' which is called “subagent“ and then in the subagent code it adds 'a static table to the “subagent“ context'.
>>
>> How/what would be a suitable invocation of snmpGet to obtain some information from that table?
>>
>> e.g. snmpGet 127.0.0.1 1.3.6.1.4.1.4976.6.1.1.2.224 (which just returns 'Variable does not exist')
>>
>> I can get the other information that's not in the table easily enough.
>>
>> e.g. snmpGet 127.0.0.1 1.3.6.1.4.1.4976.6.1.2.0 (which returns a value)
>>
>> Cheers,
>> Mike
>>
>> ----------
>> Get a free, personalised email address at http://another.com
>> TXT ALRT! Stop wasting money now. Send FREE, personalised txt
>> msgs to UK mobile phones from http://another.com
>
>
>
>
>


----------
Get a fun email address at http://another.com
COOL: Personalise a t-shirt with your name/email/slogan 
from 9.99 pounds. CLICK HERE http://another-shop.com


More information about the AGENTPP mailing list