Thomas Anders wrote:

>In case you have full control over your FreeBSD test system: can you 
>please do a proper "make install" and then just start the agent as
>
>   snmpd -f -Le -C -Dperl --rocommunity=foobar --perl='print "Hello\n";' 
>--quit localhost:8161
>
>and report back?
>
[non-installed testing - normal user]
    net-snmp-V5-3-patches$ agent/snmpd ..... localhost:8161
    init_kmem: kvm_openfiles failed: /dev/mem: Permission denied

[ - normal user - plough on regardless]
    net-snmp-V5-3-patches$ agent/snmpd -r ..... localhost:8161
    perl: initializing perl (/usr/local/share/snmp/snmp_perl.pl)
    Can't open perl script "/usr/local/share/snmp/snmp_perl.pl":
      No such file or directory
    embedded perl support failed to initialize

[ - privileged user]
    net-snmp-V5-3-patches$ su -
    net-snmp-V5-3-patches# agent/snmpd ..... localhost:8161
    perl: initializing perl (/usr/local/share/snmp/snmp_perl.pl)
    Can't open perl script "/usr/local/share/snmp/snmp_perl.pl":
      No such file or directory
    embedded perl support failed to initialize

    net-snmp-V5-3-patches# make test
    37:testing snmpd embedded perl support (using NetSNMP::agent)...FAIL
    Summary: 58 / 59 succeeded


[installed testing - privileged user]
    net-snmp-V5-3-patches# make install
    net-snmp-V5-3-patches# /usr/local/sbin/snmpd ..... localhost:8161
    perl: initializing perl (/usr/local/share/snmp/snmp_perl.pl)
    Hello
    NET-SNMP version 5.3.1.rc1
    net-snmp-V5-3-patches# make test
    37:testing snmpd embedded perl support (using NetSNMP::agent)...ok
    Summary: 59 / 59 succeeded

[ - normal user ]
    net-snmp-V5-3-patches# exit
    net-snmp-V5-3-patches$ /usr/local/sbin/snmpd -r ..... localhost:8161
    perl: initializing perl (/usr/local/share/snmp/snmp_perl.pl)
    Hello
    NET-SNMP version 5.3.1.rc1
    net-snmp-V5-3-patches$ make test
    37:testing snmpd embedded perl support (using NetSNMP::agent)...ok
    Summary: 59 / 59 succeeded

Dave


_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to