Event interface half-duplex

Hi

I have problems with some devices and I need to configurate a notification to email when a interface ethernet is in half duplex state. I didn´t find the opcion in polling, service, snmp…
Anyone knows if it is possible this event?

Thanks!

The trouble is the extra load it will add to the device, if you create this probe I recommend setting the run time to once a day. Unfortunately you can’t specify the time of day. Also if you just put it on the device label you can modify the label refresh interval for just that device.

oid 1.3.6.1.2.1.10.7.2.1.19.x has a status of unknown, halfDuplex, fullDuplex
oid 1.3.6.1.2.1.2.2.1.2.x is the corresponding interface name

So take a column of the interface status then if you find one that is half duplex complain.
The only problem is the function will exit on the half duplex interface it finds. Therefore you should move the devices that only run at half duplex to the end of the switch or make different probes for different switches…

if in the array of interfaces one contains “halfDuplex” concatenate the interface description and generate an error.

There is not a probe built specifically for this but it will take a little while so maybe tomorrow or later today.

After testing with this probe a few times it doesn’t seem very cpu intesnive but I was testing on a 48 port switch, it could be hard on switches with a few hundred ports so adjust accordingly.

Here is a function that returns 1 on the first interface that is half duplex.
halfDuplex-Function000040.png
if(array_find(oid_column(“1.3.6.1.2.1.10.7.2.1.19”),“halfDuplex (2)”)+1,1,0)

You can put that function directly on a label [halfDuplex()]
If you do put it on a label maybe you would change it to something like this.
if(array_find(oid_column(“1.3.6.1.2.1.10.7.2.1.19”),“halfDuplex (2)”)+1,“Half Duplex interface found”,“”)

And if you want to use it as a probe.. bbl

The array elements for interface name and interface duplex are not symmetrical on Cisco devices. For example if I say the 37th element in the array is half duplex then go try to find the interface name for the 37th element in the oid for interface name it is not the correct interface. Vlans are first in the interface name list and they don’t have a duplex so the arrays are out of alignment by the number of vlans.

So the best you can do is get an email that says device x has a half duplex interface then you will have to go find it your self.

Here is a probe.

The thing is you can use the array element to help determine which interface it is. So change the function so it just returns the array element and then you will get a whole number for the interface that is half duplex.
Function
array_find(oid_column(“1.3.6.1.2.1.10.7.2.1.19”),“halfDuplex (2)”)+1
Probe
if(halfDuplex()=0, “”, halfDuplex()-1)
halfDuplex_Probe - Probe000041.png
Service000042.png