Listing & resetting manually set port speeds

Greeting fellow LibreNMS users,

I’m noticing that LibreNMS now* ignores SNMP values for port speed if the port speed has been set manually.

Is there a way of listing ports that have had their speed set manually?

Is there a way of resetting these port speeds so that their values will come in via SNMP again?

Thanks.

  • I’m not sure when it started doing this but it didn’t a few years ago.

select * from devices_attribs where attrib_type LIKE 'ifSpeed:%';

You can then delete the ones you don’t want anymore, after a poll of the device the port speeds will reset.

Thank you, that worked like a charm.

Is there anywhere to record a port’s desired speed? For example, if I have a 1G port that’s negotiating at 100Mbps I’d want that highlighted? Ideally when a device is first added via SNMP then the desired speed would be set then unless overwritten by operator.
Similar to high and low thresholds for other sensors.

If you mean say a 1Gb port on a cisco switch which has speed 100 set then no I don’t think so as I believe snmp just tells us the port is 100Mb.

No, I don’t mean for a port that has its speed manually set.

Yes, I understand the SMTP will report the port is 100Mbps. What I’d like is a threshold to alert me that the port is not doing 1Gbps like it should.
This would be a pretty common thing to monitor so I’m wondering if I’m missing something obvious with how I’m using LibreNMS?

The only way I can think of doing it is to put ports into groups depending on their desired (non faulty) speed and create rules based on that but it seems a hack?

You might think it’s a common thing but how is LibreNMS supposed to know this port should be 1Gb when it’s being told it’s 100Mb?

Anyway, a way around that would be for you to use Interface Description Parsing - LibreNMS Docs, configure the port type and speed there then you can access that info in your rules under ports.port_descr_speed and ports.port_descr_type