Reset Interface Stats?

Hi,

I have a switch that has two interfaces with an error count. I have resolved the error with the physical medium, and the interfaces are now down, as per this:

TenGigabitEthernet1/1/10 is down, line protocol is down (notconnect)
  Hardware is Ten Gigabit Ethernet Port, address is f8c2.88f6.23c9 (bia f8c2.88f6.23c9)
  Description: TRUNK UP/DOWN-LINK
  MTU 1500 bytes, BW 10000000 Kbit/sec, DLY 10 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Full-duplex, Auto-speed, link type is auto, media type is No XCVR
  input flow-control is off, output flow-control is off
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input never, output never, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     0 packets input, 0 bytes, 0 no buffer
     Received 0 broadcasts (0 multicasts)
     0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 input packets with dribble condition detected
     0 packets output, 0 bytes, 0 underruns
     0 output errors, 0 collisions, 3 interface resets
     0 unknown protocol drops
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier
     0 output buffer failures, 0 output buffers swapped out

Unfortunately, LibreNMS still picks up there ports as errored, as displayed here:

https://imgur.com/Dveos1B

How do I reset these two interfaces on the switch?

Should clear on the next poll cycle, usually every 5 min by default. If the device is reporting back the correct data via snmp.

pastebin the output of poller.php -h HOSTNAME -d

Thanks mate. Has definitely been more than 5 minutes since these errors were cleared (probably a month or so, and the device has been rebooted since then).

Pastebin:

https://pastebin.com/miNp9Mjh

That is just a counter value so it will only increase. If you want to see current errors take a look at the graphs

As @laf says that is a count of all errors since boot. You can reboot your device to clear them. (the number is supplied by your device, not LibreNMS)

I cleared the interface counters though?

I understand that the information is provided by the device, but I can’t see an In or Out errors in the poller dump, unless I’m missing something :slight_smile:

Clearing interface counters afaik doesn’t reset the snmp ones. Feel free to post the poller debug output but honestly, what we’ve responded with is how it is.

1 Like