I was too quick to reply on this. Although I can get NetSNMP::agent working properly as an embedded agent, it will not register when run as a subagent.

As soon as I can get -DALL working (as per my recent post), I can will continue troubleshooting and follow up accordingly.

Regards,
John

John Clinton wrote:
Thomas,

The agentxsocket was the key to getting it to work properly for me. Was this directive documented some place that I missed?

Thanks for all your help.

Best regards,
John


Thomas Anders wrote:
John Clinton wrote:
I set up a Sun V100 and built it today to have a "clean" test environment. Using the example script from http://www.net-snmp.org/tutorial-5/toolkit/perl/perl_module.pl I was able to get the embedded agent to work. However, if I force the example script to act as a subagent, I cannot walk the sub agent oid

Works fine for me (on Linux).

I see that it is possible to change the listening port for the master agent with the -x flag. If I start snmpd with -x tcp:localhost:705, how do I configure the perl NetSNMP agent to use that port?

Please note the following snippet from the perl subagent example:

    $agent = new NetSNMP::agent('Name' => 'test', # reads test.conf
                'AgentX' => 1);   # make us a subagent

So put an "agentxsocket ..." directive into a test.conf file and place it into one of the config directories ("net-snmp-config --snmpconfpath").


+Thomas




-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to