# can't get data from device, but snmpwalk does.

**URL:** <https://discuss.prometheus.io/t/cant-get-data-from-device-but-snmpwalk-does/1885>\
**Category:** snmp\_exporter\
**Created:** [September 14, 2023, 6:03am UTC](https://discuss.prometheus.io/t/cant-get-data-from-device-but-snmpwalk-does/1885 "2023-09-14T06:03:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aliuzzz](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/aliuzzz/32/790_2.png) [@aliuzzz](https://discuss.prometheus.io/u/aliuzzz)\
**Post date:** [September 14, 2023, 6:03am UTC](https://discuss.prometheus.io/t/cant-get-data-from-device-but-snmpwalk-does/1885/1 "2023-09-14T06:03:46Z")

</div>

this is my snmp.yml，I have used a new template, sysuptime can be obtained, and ifnumber can also be obtained normally, but sysname has been invalidated. What is the reason for this? My snmp\_ Exporter startup did not see relevant error logs

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/prometheus/original/1X/00a51ce53929ba57987362189e36b5a7cd597c88.png)  
 ![image](https://europe1.discourse-cdn.com/flex017/uploads/prometheus/original/1X/1063f4858f3e0034c51530be7b5a0721725206dc.png)  
 ![image](https://europe1.discourse-cdn.com/flex017/uploads/prometheus/original/1X/261d686ff821ef6fbef8daaaeb80c2272f7e6b74.png)

---

<div class="post-metadata">

**Author:** ![merle](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/merle/32/1002_2.png) [@merle](https://discuss.prometheus.io/u/merle)\
**Post date:** [June 30, 2024, 7:49am UTC](https://discuss.prometheus.io/t/cant-get-data-from-device-but-snmpwalk-does/1885/2 "2024-06-30T07:49:51Z")

</div>

bro，I have the same problem. Have you solved it?

---

<div class="post-metadata">

**Author:** ![BradKnowles](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/bradknowles/32/1012_2.png) [@BradKnowles](https://discuss.prometheus.io/u/BradKnowles)\
**Post date:** [July 11, 2024, 7:36pm UTC](https://discuss.prometheus.io/t/cant-get-data-from-device-but-snmpwalk-does/1885/3 "2024-07-11T19:36:52Z")

</div>

I don’t have this problem. My problem is described at github .com/prometheus/snmp\_exporter/discussions/1202#discussioncomment-10021820

I will repeat that information here:

> We seem to be having a similar problem with about half of our Ethernet switches in one datacenter. But the problem seems randomly distributed between Cisco and Juniper switches. I’ve set the `scrape_interval` to be 300s and the `scrape_timeout` to be 200s, but almost all of the failures have a very suspicious looking `scan_duration` of right around 20s. We are only querying `if_mib`.

Is there any other information that I can provide?

This appears to be related to github. com/prometheus/snmp\_exporter/issues/367 and github. com/prometheus/snmp\_exporter/issues/850 but both of those issues were closed because the problem was supposedly fixed.

I’ve also posted about this issue at old.reddit. com/r/PrometheusMonitoring/comments/1e0qjsz/differences\_between\_snmp\_exporter\_and\_snmpwalk/? and in the CNCF Slack channel Prometheus at cloud-native.slack. com/archives/C167KFM6C/p1720710093899439

Are there any other places that people would suggest that could be good resources for this question?

Or any other suggestions in general?

Thanks!

PS: Sorry that I had to break all the links, but apparently new users aren’t allowed to post links here.
