Log in to ask questions, share your expertise, or stay connected to content you value. Don’t have a login? Learn how to become a member.
I am trying to use SNMP to pull out the upload and download speed of some Juniper SRX 320 routers running Junos 21.3R1.9 .
This is what I am trying to use SNMP to gether for a monitoring solution.
> show interfaces extensive pt-1/0/0 | match bit Bit rate (kbps) : 79999 0 20000 0
The ifIndex of this inferface is 539 and when I run mib walk filtering out for anything to do with 539 I get thise information
I'm not positive this method is the same on pt interfaces but this works on both ge and xe physical ones to hook bandwidth into monitoring by snmp using the discovered snmp if index for the interface.
In principle it is possible to take any value that you see anywhere in a show command and put it in an OID. This can be done by using the Utility MIB and an event script that runs periodically to read the value and put it in the OID.
Please see https://www.juniper.net/documentation/en_US/release-independent/nce/topics/reference/general/chassis-cluster-utility-mib.html
The sample script there is SLAX, but nowadays we can use Python as well, which you may prefer.
To quickly test the Utility MIB feature itself, you can do like this:
root> request snmp utility-mib set instance testing1 object-type integer object-value 10Utility mib result: successfully populated utility mib database
root> request snmp utility-mib set instance testing2 object-type integer object-value 20Utility mib result: successfully populated utility mib database
root> show snmp mib walk jnxUtilData asciijnxUtilIntegerValue."testing1" = 10 <<<<<< yes, it works!jnxUtilIntegerValue."testing2" = 20 <<<<<< yes, it works!
I'm not sure if you asking to have MIB for a static number of DSL download links, that's set by ISP.
From what I can see the Zabbix Junos template also hasn't got one. Only the upload speed. Picture attached.
Don't you want the real download speed? Then you would need to look for ifHCInOctets and ifHCOutOctets keys. Also, depending you want to monitor the subinterface or physical interface.