Skip to content

CPU Usage from walking interfaces on Juniper switches #694

Answered by SuperQ
neilschelly asked this question in Q&A
Discussion options

You must be logged in to vote

Typicaly what I do for Juniper is to enable caching in the config. I set the JunOS SNMP cache to be 1 second less than my scrape interval.

set snmp stats-cache-lifetime 29

I also broke up my walks into smaller pieces to make JunOS do less work per scrape. I also dropped the ifDescr lookup on JunOS since it wasn't necessary for my setup.

Here's my JunOS generator config:

---
modules:
  # Trimmed down if_mib for slow JunOS devices.
  if_mib_junos:
    walk:
    - sysUpTime
    # ifXTable
    - ifHCInOctets
    - ifHCInUcastPkts
    - ifHCInBroadcastPkts
    - ifHCOutOctets
    - ifHCOutUcastPkts
    - ifHCOutBroadcastPkts
    lookups:
    - source_indexes: [ifIndex]
      lookup: ifAlias
    

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@neilschelly
Comment options

Answer selected by neilschelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants