etingof / snmpfwd

SNMP Proxy Forwarder
http://snmplabs.com/snmpfwd/
BSD 2-Clause "Simplified" License
67 stars 18 forks source link

snmpwalk fails with SNMP Proxy Forwarder targeting a Remote Host #47

Open bravehearts07 opened 4 years ago

bravehearts07 commented 4 years ago

Hello Team, I was attempting to use SNMP Proxy Forwarder to poll the devices. To Simulate the polling following were setup:

  1. Server_A(15.153.133.194) hosts SNMP Proxy forwarder, both Server and Client parts run on the same host.

  2. Server B(15.153.133.193) is SNMP enabled, such that snmpwalk -v 1 c public sysname responds with the host name of Server B.

Server & Client Process run as expected. [ratuser@rrcoemaxis02 ~]$ ps -eaf |grep snmpfwd ratuser 6354 1 1 13:34 pts/2 00:00:04 /kits/Python-3.8.1/python /usr/local/bin/snmpfwd-server.py --debug-snmp=all --debug-asn1=all --logging-method=file:/tmp/serve r.log --log-level=debug --config-file=/root/snmpfwd_configs/server_snmpv2Commands.cfg

ratuser 7011 6951 9 13:41 pts/2 00:00:00 /kits/Python-3.8.1/python /usr/local/bin/snmpfwd-client.py --debug-snmp=all --debug-asn1=all --logging-method=file:/tmp/clien t.log --log-level=debug --config-file=/root/snmpfwd_configs/client_snmpv2Commands.cfg ratuser 7040 6951 0 13:41 pts/2 00:00:00 grep --color=auto snmpfwd

Output [ratuser@rrcoemaxis02 ~]$ snmpwalk -v2c -c public 127.0.0.1:1161 system Timeout: No Response from 127.0.0.1:1161

[ratuser@rrcoemaxis02 ~]$ snmpwalk -v1 -c public 127.0.0.1:1161 system Timeout: No Response from 127.0.0.1:1161

snmpwalk to actual host [ratuser@rrcoemaxis02 ~]$ snmpwalk -v2c -c public 15.153.133.193 sysname SNMPv2-MIB::sysName.0 = STRING: rrcoemaxis01

[ratuser@rrcoemaxis02 ~]$ snmpwalk -v1 -c public 15.153.133.193 sysname SNMPv2-MIB::sysName.0 = STRING: rrcoemaxis01

Configuration Files client_snmpv2Commands.txt server_snmpv2Commands.txt

Log Files client.log server.log