Is there a way to monitor conditions (as with ipsla etc) in a switch (or specific to a given port channel) and trigger the removal/shutdown of a member from within a port-channel? Example - after x% errors, remove the interface from service/throw an alert. Thank you in advance for your feedback!
+1 @BrianWinningJr. also, use LACP (Port Channel Active) to ensure that the link is up end-to-end. This will automatically remove failed links and return them to service.
Be careful if you opt to automate this that you don't end up removing all ports from a port channel!
One problem with removing interfaces from a channel is that it is a link, and you suddenly have multiple links between the two devices: the channel and the interface removed from the channel. Then you have have STP deciding which link is blocking, and which link is forwarding, and you may not want what STP decides (the failing link is the one forwarding).
You can certainly get alerts on interface/link problems via SNMP or some other alert mechanism that you have set up.
I just thought of a possible solution that I think we are going to try(for alerting only, not shutting down interfaces).
Use multiple IP SLA sessions (possibly with IP SLA responder) on each side and set source/dest IPs(and possibly udp port if doing src/dst port load-balancing) to ensure traffic in each session is hashed over a specific link in the port-channel. Set thresholds as needed and then use EEM to shutdown interface if SLA session fails.