-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNMP device not reachable : "Request timeout" #119
Comments
@stlaperriere - try setting your ServiceBindAddress to '0.0.0.0' in the configuration toml. This is the interface on which the service's REST server should listen. By default the server is to listen on the interface to which the Host option resolves (leaving it blank). A value of 0.0.0.0 means listen on all available interfaces. |
I have the same issue. What I found out is that the constant COMMUNITY_ACCESS in const.go is defined as "private". It get's applied directly without considering the community attribute defined in the device profile. See for example snmpclient.go - GetValues. As a result currently only attributes with the default community "private" seem to work. In my case, changing the constant to "public" (as this is used in my device profile) resolved the issue. |
hey guys, I this is the log i got from the terminal?
from what i understand the code is sending a request( and i see the ethernet led blinking) and receiving , but it can decode it . |
this issue is marked |
Hello 👋
I am trying to set up a device-snmp with EdgeX to acquire some data. Everything is done using version
1.3.1
. I'm still at the PoC stage, so I am mocking a device using snmpsim.The issue
The device-snmp is so far failing to acquire any data from the mocked device. Here are the logs:
My configuration
Attached to this issue are all the config files device-snmp-config.zip Here are the highlights:
snmpsim
exposes an OID1.3.6.1.2.1.1.1.0
which returns the stringHello world
.snmpsim
runs natively on my Ubuntu machine and the Edgex microservices run with Docker, using abridge
network.snmpsim
with endpoint172.17.0.1:1024
. I gave the same IP address and port to the device provisioned in the DeviceList:The debugging I tried
At first I thought the problem was related to some networking misconfiguration. However, I entered in the device-snmp running container and was able to acquire the data from my mocked device using snmpwalk command:
which yielded the correct payload:
SNMPv2-MIB::sysDescr.0 = STRING: Hello world
I suspect my problem is either my Edgex configuration is wrong, or that there is a bug inside device-snmp. Am I missing something?
Thank you,
Sam
The text was updated successfully, but these errors were encountered: