On 14/12/06, Srivastava, Namburi (IE10)
<[EMAIL PROTECTED]> wrote:
> Is it possible to configure the subagent as master agent?

Not easily, no.

> Can it be done in the following way?
> I tried doing that by changing the agent_subagent = 0 in the sub-agent main
> function.

That used to work, when the agent defaulted to allowing access.
But for some time, the default has been to deny access, unless explicitly
configured otherwise.  And the subagent template code does not include
the necessary access control modules.


> Also, while I run my subagent with the snmpd.conf file, it gave me the
>
> %mysubagent –c /usr/local/share/snmp/snmpd.conf .....
>
> This agent cannot provide any service in its present format.
>  Use snmpconf –g basic_setup to configure.

That's what this means - it's telling you that there is no access control
configured, so the agent won't respond to any incoming requests.


> How to solve this problem??? Is there a solution?

In principle, it would be possible to add in the necessary access
control modules,
both amending the initialisation code of the subagent code, and
linking the relevant
object files into the subagent binary.
   But in practise, it's probably easier to use the main Net-SNMP agent source
tree, and configure this to include your MIB module.

Try something like:

    configure --enable-mini-agent  --with-mib-modules=agentx,{my_mib}

Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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

Reply via email to