On AIX a command allows to switch from one ethernet port to another in a etherchannel (team).
ent0 and ent1 are defined as etherchannel in type failover. The etherchannel adapter is ent2.
To swicth on the backup adapter:
[root@srv1]/root# /usr/lib/methods/ethchan_config -f 'ent2'
Check the errorlog to detect the swicth.
[root@srv1]/root# errpt -a --------------------------------------------------------------------------- LABEL: ECH_CHAN_FAIL IDENTIFIER: F3846E13 Date/Time: Fri Nov 5 16:43:10 CET 2010 Sequence Number: 13016 Machine Id: 00C0FD9C4C00 Node Id: srv1 Class: H Type: PERM Resource Name: ent2 Resource Class: adapter Resource Type: ibm_ech Location: Description ETHERCHANNEL FAILOVER Probable Causes CABLE SWITCH ADAPTER Failure Causes CABLES AND CONNECTIONS Recommended Actions CHECK CABLE AND ITS CONNECTIONS IF ERROR PERSISTS, REPLACE ADAPTER CARD. Detail Data All primary EtherChannel adapters failed: switching over to backup adapter
To switch back to primary:
[root@srv1]/root# /usr/lib/methods/ethchan_config -f 'ent2'
[root@srv1]/root# errpt -a --------------------------------------------------------------------------- LABEL: ECH_CHAN_RCVRY IDENTIFIER: 8650BE3F Date/Time: Fri Nov 5 16:43:41 CET 2010 Sequence Number: 13017 Machine Id: 00C0FD9C4C00 Node Id: srv1 Class: H Type: INFO Resource Name: ent2 Resource Class: adapter Resource Type: ibm_ech Location: Description ETHERCHANNEL RECOVERY Probable Causes CABLE SWITCH ADAPTER Failure Causes CABLES AND CONNECTIONS Recommended Actions CHECK CABLE AND ITS CONNECTIONS IF ERROR PERSISTS, REPLACE ADAPTER CARD. Detail Data A primary adapter in the EtherChannel recovered: returning to main channel