I want to know if this is possible to do:
I am able to make a custom poller that returns the admin status of every interface in a switch stack. It returns 1 for up and 2 for down. So when I poll the switch, I'll get something like 1,1,1,1,2,2,2,1,2,1,1,2,1,2,2,2, etc etc.
What I want to do is count how many ports are in the down state, or the number 2. Is there any way to do this?