[j-nsp] SNMP very slow on MX10003

Leon Kramer leonkramer at gmail.com
Mon May 25 12:25:38 EDT 2020


Hello,

we meter approximately 500 logical subinterface counters (e.g. ae0.95,
ae0.96, etc) of our Juniper MX10003. While this works it is also too
slow as we fetch the data every 60 seconds.

snmpbulkwalks of IF-MIB::ifHCInOctets and IF-MIB::ifHCOutOctets take
anything from 1 to 180 seconds.

The time it takes increases noticeably as more subinterfaces are configured.

I know Juniper is not known for fast SNMP queries, but is there
anything you can do to increase performance? 500 interfaces should
really not be too much for a fairly new router imho.
We already have some interface filters in place, but apparently they
are not sufficient.

If you think that SNMP is too slow, what alternative can you recommend
for fetching interface counters?

Thank you for your help.


Kind Regards
Leon Kramer


> show version
Model: mx10003
Junos: 18.4R2-S3


> show configuration snmp
interface [ fxp0.0 ];
filter-interfaces {
    interfaces {
        "fe-[0-9]/[0-9]/[0-9]+\.[0-9]+";
        "xe-[0-9]/[0-9]/[0-9]+\.[0-9]+";
        "ge-[0-9]/[0-9]/[0-9]+\.[0-9]+";
        "et-[0-9]/[0-9]/[0-9]+\.[0-9]+";
    }
    all-internal-interfaces;
}
filter-duplicates;
community xxx {
    authorization read-only;
    routing-instance mgmt_junos;
}
community xxx {
    authorization read-only;
    routing-instance mgmt_junos;
}
community xxx {
    authorization read-only;
    routing-instance mgmt_junos;
}
community xxx {
    authorization read-only;
    routing-instance mgmt_junos;
}
routing-instance-access;


More information about the juniper-nsp mailing list