Running nhSnmpTool command to fetch device MIB may result into following error.
nhSnmpTool -c ABC!+@@!$ xx.xx.xx.xx
SNMP data. Output is being written here:
ERROR: Error when sapwalk2:
Error: Recvfrom failed
There can be a multiple factors resulting into the above error, but mentioned below are some of the most common issues we come across.
1. SNMP version - Check the SNMP version on the device, and if it is set to use only V2 or V1, then use argument -v2c -v1 or -v3
2. SNMP port - Command uses 161 port by default. If the device is configured to a different port, use -p argument to query on the particular port. For e.g. SystemEDGE agent uses -1691
3. Special Community String - Due to security policy the community strings may contain special characters. Please try following samples if this is the case.
a. Add double quotes before and after the community string.
nhSnmpTool -c "ABC!+@@!$" xx.xx.xx.xx
b. Add -old flag with double quotes.
nhSnmpTool -c "ABC!+@@!$" xx.xx.xx.xx -old
c. Do not use quotes at all and just use -old flag.
nhSnmpTool -c ABC!+@@!$ xx.xx.xx.xx -old