Query non-standard port of SNMP with snmpwalk


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.:
root@darkstar# snmpwalk -v 2c -c notpublic 12.120.186.8:7777