Hi Thomas,
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 For example:
# snmpwalk -v2c -cpublic localhost .1.3.6.1.4.1.8072.999
NET-SNMP-MIB::netSnmp.999 = No Such Object available on this agent at
this OID
I do have "master agentx" in my snmpd.conf file. The example script
does launch successfully:
[EMAIL PROTECTED] ~# perl ./agent.pl
starting perl_module.pl
perl_module.pl loaded ok
registering at netSnmp.999
started us as a subagent (NetSNMP::agent=HASH(0x18cc30))
When I lsof the snmpd daemon I see that it has the domain socket open:
[EMAIL PROTECTED] ~# lsof | grep 17480 | grep var
snmpd 17480 root 8u unix 105,35 0t0 635
/devices/pseudo/[EMAIL PROTECTED]:ticots->/var/agentx/master (0x37daa939ae0)
(Vnode=0x3000a49f280)
However, doing the same thing with the example script pid in "sub agent
mode", lsof reports that the agent does not open the domain socket.
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? I do not see
how to specify that in the pod page for NetSNMP::agent.
Thanks again for all your assistance. I do appreciate it. :-)
Thanks,
John
Thomas Anders wrote:
John Clinton wrote:
I compiled 5.3.1.pre2 and make test ran clean. However, I cannot get
the perl NetSNMP::agent to register. Same issue as before. The perl
NetSNMP::agent subagent script never registers.
Since "make test" works (in the build dir), it'd point either to your
installation (library mismatches and such) or your script. Can you
please use the example script
http://www.net-snmp.org/tutorial-5/toolkit/perl/perl_module.pl
instead of your own and let us know what you get?
+Thomas
-------------------------------------------------------
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-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders