Skip to content

add test for snmp #33

Description

@sopos

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions