Getting router information via SNMP

Created by Yuriy Andamasov, Modified on Wed, 17 Jan at 4:42 PM by Srividya Anantapatnaikuni

Article review date2024-01-17
Validated for VyOS versions
1.2.5, 1.3.5, 1.4.0, 1.5.x

To get data via SNMP you need to know OID (Object IDentificator) or MIB (Management Information Base). 

All available MIBs/OIDs possible to get via snmpwalk, as an example

#snmpwalk -v -c
#snmpwalk -v2c -c somecommunity 198.51.100.1

Frequently used OIDs:

CPU usage

percentage of user CPU time: .1.3.6.1.4.1.2021.11.9.0
percentages of system CPU time: .1.3.6.1.4.1.2021.11.10.0
percentages of idle CPU time: .1.3.6.1.4.1.2021.11.11.0
raw user cpu time: .1.3.6.1.4.1.2021.11.50.0
raw system cpu time: .1.3.6.1.4.1.2021.11.52.0
raw idle cpu time: .1.3.6.1.4.1.2021.11.53.0

Load Average

1 minute Load: .1.3.6.1.4.1.2021.10.1.3.1
5 minute Load: .1.3.6.1.4.1.2021.10.1.3.2
15 minute Load: .1.3.6.1.4.1.2021.10.1.3.3

Memory Statistics

Total RAM in machine: .1.3.6.1.4.1.2021.4.5.0
Total RAM used: .1.3.6.1.4.1.2021.4.6.0
Total RAM Free: .1.3.6.1.4.1.2021.4.11.0
Total Swap Size: .1.3.6.1.4.1.2021.4.3.0
Available Swap Space: .1.3.6.1.4.1.2021.4.4.0

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article