Hello,
Den mån 13 okt. 2025 kl 18:48 skrev Jseb Tarot <
tarotcrcu...@gmail.com>:
>
> Why to scrap all mib.scrap only the value needed!. Personnaly a select branch needed and that it.
>
> I recommande to do that.
To be clear I'm only scraping a few(30) OIDs. Something like this:
time for i in 1.3.6.1.2.1.25.1.1 1.3.6.1.2.1.2.2.1.8
1.3.6.1.2.1.2.2.1.1 1.3.6.1.2.1.31.1.1.1.1 1.3.6.1.2.1.31.1.1.1.18
1.3.6.1.2.1.2.2.1.2 (and so on); do snmpbulkwalk -v2c -Cr10 -On -c
community 192.0.2.2 $i; done
takes about 4-10s, while snmp_exporter with the following
generator.yml takes at least 40, and up to 90+ seconds:
my-switch:
walk:
- hrSystemUptime # 1.3.6.1.2.1.25.1.1
- ifOperStatus # 1.3.6.1.2.1.2.2.1.8
- ifIndex # 1.3.6.1.2.1.2.2.1.1
- ifName # 1.3.6.1.2.1.31.1.1.1.1
- ifAlias # 1.3.6.1.2.1.31.1.1.1.18
- ifDescr # 1.3.6.1.2.1.2.2.1.2
- (and so on...)
timeout: 30s
max_repetitions: 10
lookups:
- source_indexes: [ifIndex]
lookup: ifDescr
- source_indexes: [ifIndex]
lookup: ifAlias
- source_indexes: [ifIndex]
lookup: ifName
Regards,
Wilhelm