#show version
Cisco IOS XE Software, Version 03.16.04b.S - Extended Support Release
Cisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 15.5 (3)S4b, RELEASE SOFTWARE (fc1)
I am trying to create a python script using pysnmp to get the AVG BUSY5 from my router. I have already used the 3 OIDs indicated on this page https://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15215-collect-cpu-util-snmp.html none of them did not work.
And this is how the python code looks like
.
.
.
x = input("IP Address: ");
print(get(x, ['.1.3.6.1.4.1.9.9.109.1.1.1.1.8'], hlapi.CommunityData('public')))
print(get(x, ['.1.3.6.1.4.1.9.9.109.1.1.1.1.5'], hlapi.CommunityData('public')))
print(get(x, ['.1.3.6.1.4.1.9.2.1.58'], hlapi.CommunityData('public')))
.
.
.
.and the output is
IP Address: 192.168.55.250
{'1.3.6.1.4.1.9.9.109.1.1.1.1.8': ''}
{'1.3.6.1.4.1.9.9.109.1.1.1.1.5': ''}
{'1.3.6.1.4.1.9.2.1.58': ''}Am I missing something here?
I tried retrieving the hostname and interfaces of the router, it works.
I'll appreciate every help thanks!