Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add test for snmp #33

Open
sopos opened this issue Aug 31, 2016 · 2 comments
Open

add test for snmp #33

sopos opened this issue Aug 31, 2016 · 2 comments

Comments

@sopos
Copy link

sopos commented Aug 31, 2016

snmpd manually executed listens correctly while in this framework netstat does not report anything

# sed 's/^/    /' ./server 
#!/bin/bash -xe

cat > ./config << EOF
rocommunity public
EOF
ip a
/usr/sbin/snmpd -f -c ./config udp6:[::]:161 udp:0.0.0.0:161 tcp:0.0.0.0:161 tcp6:[::]:161 &
ps aux | grep snmp || :
sleep 2
ps uax | grep snmp || :
netstat -putna
wait $!
# sed 's/^/    /' ./client 
#!/bin/bash -e

exec /usr/bin/snmpgetnext -v 2c -c public $DESTINATION .
# sed 's/^/    /' ./deps 
net-snmp
net-snmp-utils
@sopos
Copy link
Author

sopos commented Aug 31, 2016

the client side is also killed just a while after snmpgetnext is started ~200ms

@pavlix
Copy link
Member

pavlix commented Dec 6, 2016

@sopos Sorry for late response.

Your netstat probably doesn't see inside the network namespaces. Debugging with network-testing must be done with care. I would like to improve that in the future. The client should be pretty quick to start. If your services work separately from network-testing, they are probably good for merging and we would fix network-testing afterwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants