Query non-standard port of SNMP with snmpwalk


TLDR: Add colon to the IP address (no space), then the custom port.

Sometimes the simple things are the ones to perplex us the most . Today I needed to add an SNMP monitoring of the Radware Linkproof load balancer listening on the port 7777 . Not a big deal, I thought. But before doing it in the monitoring system I wanted to be sure and tried to query the Linkproof using snmpwalk . To much of my surprise in its help there was no mentioning how to do it . Searching the Google brought me the option of –p that didn't work though. The solution is actually quite simple – immediately after the IP of the device put the port number after the colon e.g. for the port 7777:
root@darkstar# snmpwalk -v 2c -c notpublic 12.120.186.8:7777

Follow me on https://www.linkedin.com/in/yurislobodyanyuk/ not to miss what I publish on Linkedin, Github, blog, and more.