0

I want to capture snmpget message in my Ubuntu machine using netcat
I ran the following commands in the order shown below.
I am using netcat-openbsd.

  1. nc -lu 127.0.0.1 1161
  2. pip install snmpclitools
  3. snmpget -v2c -c public 127.0.0.1:1611 sysDescr.0

I am expecting to see the message in netcat console output but nothing is showing up.
What am I doing wrong here?

1
  • You can use tcpdump or a real SNMP tool like snmptrapd for observing SNMP traffic. netcat is the wrong tool for structured binary protocols like SNMP. Commented Jul 28 at 14:52

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.