We all know that Linux offers some built in tools that are great for troubleshooting purposes, however Windows Operating Systems have limitations. Me being a Windows user primarily (fan of CLI and CLI based tools), I am always looking for different tools. In this post I want to mention two tools that I have been able to use successfully.
My recent use was trying to troubleshoot SNMP on two switches. I was able to use snmpwalk to test SNMP and then utilize PortQry to check the ports via CLI. Here is my method and results:
Non Working – snmpwalk
COMMAND SYNTAX: snmpwalk -r:”ip-address” -c:”community-name” -v:2
Non Working PortQry Test
COMMAND SYNTAX: pq -n “ip-address” -cn !community-name! -e 161 -p udp
![]()
So above I have SNMP testing to a Non Working Switch. snmpwalk fails right away and the PortQry shows that the port is filtered, should say “LISTENING” like in the next example.
Working – snmpwalk
COMMAND SYNTAX: snmpwalk -r:”ip-address” -c:”community-name” -v:2
Working PortQry Test
COMMAND SYNTAX: pq -n “ip-address” -cn !community-name! -e 161 -p udp
![]()
Tags: port query windows, snmp walk, snmpwalk, snmpwalk windows