All pastes #67445 Raw Edit

Stuff

public text v1 · immutable
#67445 ·published 2006-06-19 23:50 UTC
rendered paste body
$ echo $SHELL
/bin/sh
$ cd snmp/5.3.x/testing
$ set | grep LIB
$ make test TESTOPTS="-T 37 -V"
./RUNTESTS -a -D `pwd`/.. -T 37 -V
/usr/home/rks/snmp/5.3.x/testing
path is /usr/home/rks/snmp/5.3.x/testing:/usr/home/rks/snmp/5.3.x/agent:/usr/home/rks/snmp/5.3.x/apps:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/rks/bin
top of build is /usr/home/rks/snmp/5.3.x
source testing is /usr/home/rks/snmp/5.3.x/testing
/usr/home/rks/snmp/5.3.x/apps/snmpusm
37:testing snmpd embedded perl support (using NetSNMP::agent).../tmp/snmp-test-37-36469/snmpd.conf contains:
[snmp] persistentdir /tmp/snmp-test-37-36469/persist
smuxsocket /dev/null
com2sec testcommunitysec default testcommunity
group testcommunitygroup v2c testcommunitysec
view all included .1 80
access testcommunitygroup "" any noauth exact all none none
perlInitFile /tmp/snmp-test-37-36469/snmp_perl.pl
perl do '/tmp/snmp-test-37-36469/hello.pl';
perl print STDERR "registered_perl_agent_ok";
running: snmpd -d -r -U -p /tmp/snmp-test-37-36469/snmpd.pid -Lf /tmp/snmp-test-37-36469/snmpd.log  -C -c /tmp/snmp-test-37-36469/snmpd.conf
checking output for "NET-SNMP version"...0 matches found
checking output for "NET-SNMP version"...1 matches found

EXECUTING: snmpget -v2c -c testcommunity udp:localhost:8765 .1.3.6.1.4.1.8872.9999.9999.1.0

Command Output:
MIBDIR /usr/home/rks/snmp/5.3.x/testing/../mibs
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  SNMPv2-SMI::enterprises.8872.9999.9999.1.0 = No Such Object available on this agent at this OID
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
checking output for "hello world"...0 matches found
checking output for "restarted"...1 matches found

EXECUTING: snmpget -v2c -c testcommunity udp:localhost:8765 .1.3.6.1.4.1.8872.9999.9999.2.0

Command Output:
MIBDIR /usr/home/rks/snmp/5.3.x/testing/../mibs
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  SNMPv2-SMI::enterprises.8872.9999.9999.2.0 = No Such Object available on this agent at this OID
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
checking output for "hello again world"...0 matches found
checking output for "shutting down"...1 matches found
Agent Output:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= [stdout]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= [logfile]
/tmp/snmp-test-37-36469/snmpd.conf: line 2: Warning: Unknown token: smuxsocket.
embedded perl support failed to initalize
NET-SNMP version 5.3.1.rc1
Received SNMP packet(s) from UDP: [127.0.0.1]:53559
  GET message
    -- SNMPv2-SMI::enterprises.8872.9999.9999.1.0
Reconfiguring daemon

NET-SNMP version 5.3.1.rc1 restarted
/tmp/snmp-test-37-36469/snmpd.conf: line 2: Warning: Unknown token: smuxsocket.
Received SNMP packet(s) from UDP: [127.0.0.1]:56618
  GET message
    -- SNMPv2-SMI::enterprises.8872.9999.9999.2.0
Received TERM or STOP signal...  shutting down...
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
checking output for "shutting down"...1 matches found
Agent Output:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= [stdout]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= [logfile]
/tmp/snmp-test-37-36469/snmpd.conf: line 2: Warning: Unknown token: smuxsocket.
embedded perl support failed to initalize
NET-SNMP version 5.3.1.rc1
Received SNMP packet(s) from UDP: [127.0.0.1]:53559
  GET message
    -- SNMPv2-SMI::enterprises.8872.9999.9999.1.0
Reconfiguring daemon

NET-SNMP version 5.3.1.rc1 restarted
/tmp/snmp-test-37-36469/snmpd.conf: line 2: Warning: Unknown token: smuxsocket.
Received SNMP packet(s) from UDP: [127.0.0.1]:56618
  GET message
    -- SNMPv2-SMI::enterprises.8872.9999.9999.2.0
Received TERM or STOP signal...  shutting down...
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
FAIL
Summary: 0 / 1 succeeded.
*** Error code 1

Stop in /usr/home/rks/snmp/5.3.x/testing.
$ export LD_LIBRARY_PATH=/home/rks/snmp/5.3.x/agent/.libs/:/home/rks/snmp/5.3.x/snmplib/.libs/:home/rks/snmp/5.3.x/agent/helpers/.libs/
$ make test TESTOPTS="-T 37 -V"
./RUNTESTS -a -D `pwd`/.. -T 37 -V
/usr/home/rks/snmp/5.3.x/testing
path is /usr/home/rks/snmp/5.3.x/testing:/usr/home/rks/snmp/5.3.x/agent:/usr/home/rks/snmp/5.3.x/apps:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/rks/bin
top of build is /usr/home/rks/snmp/5.3.x
source testing is /usr/home/rks/snmp/5.3.x/testing
/usr/home/rks/snmp/5.3.x/apps/snmpusm
37:testing snmpd embedded perl support (using NetSNMP::agent).../tmp/snmp-test-37-36835/snmpd.conf contains:
[snmp] persistentdir /tmp/snmp-test-37-36835/persist
smuxsocket /dev/null
com2sec testcommunitysec default testcommunity
group testcommunitygroup v2c testcommunitysec
view all included .1 80
access testcommunitygroup "" any noauth exact all none none
perlInitFile /tmp/snmp-test-37-36835/snmp_perl.pl
perl do '/tmp/snmp-test-37-36835/hello.pl';
perl print STDERR "registered_perl_agent_ok";
running: snmpd -d -r -U -p /tmp/snmp-test-37-36835/snmpd.pid -Lf /tmp/snmp-test-37-36835/snmpd.log  -C -c /tmp/snmp-test-37-36835/snmpd.conf
checking output for "NET-SNMP version"...0 matches found
checking output for "NET-SNMP version"...1 matches found

EXECUTING: snmpget -v2c -c testcommunity udp:localhost:8765 .1.3.6.1.4.1.8872.9999.9999.1.0

Command Output:
MIBDIR /usr/home/rks/snmp/5.3.x/testing/../mibs
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  SNMPv2-SMI::enterprises.8872.9999.9999.1.0 = STRING: "hello world"
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
checking output for "hello world"...1 matches found
checking output for "restarted"...1 matches found

EXECUTING: snmpget -v2c -c testcommunity udp:localhost:8765 .1.3.6.1.4.1.8872.9999.9999.2.0

Command Output:
MIBDIR /usr/home/rks/snmp/5.3.x/testing/../mibs
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  SNMPv2-SMI::enterprises.8872.9999.9999.2.0 = STRING: "hello again world"
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
checking output for "hello again world"...1 matches found
checking output for "shutting down"...1 matches found
Agent Output:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= [stdout]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= [logfile]
/tmp/snmp-test-37-36835/snmpd.conf: line 2: Warning: Unknown token: smuxsocket.
NET-SNMP version 5.3.1.rc1
Received SNMP packet(s) from UDP: [127.0.0.1]:53180
  GET message
    -- enterprises.8872.9999.9999.1.0
Reconfiguring daemon

NET-SNMP version 5.3.1.rc1 restarted
/tmp/snmp-test-37-36835/snmpd.conf: line 2: Warning: Unknown token: smuxsocket.
Received SNMP packet(s) from UDP: [127.0.0.1]:56542
  GET message
    -- enterprises.8872.9999.9999.2.0
Received TERM or STOP signal...  shutting down...
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
checking output for "shutting down"...1 matches found
Agent Output:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= [stdout]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= [logfile]
/tmp/snmp-test-37-36835/snmpd.conf: line 2: Warning: Unknown token: smuxsocket.
NET-SNMP version 5.3.1.rc1
Received SNMP packet(s) from UDP: [127.0.0.1]:53180
  GET message
    -- enterprises.8872.9999.9999.1.0
Reconfiguring daemon

NET-SNMP version 5.3.1.rc1 restarted
/tmp/snmp-test-37-36835/snmpd.conf: line 2: Warning: Unknown token: smuxsocket.
Received SNMP packet(s) from UDP: [127.0.0.1]:56542
  GET message
    -- enterprises.8872.9999.9999.2.0
Received TERM or STOP signal...  shutting down...
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
ok
Summary: 1 / 1 succeeded.