How to find the active network inteface on etherchannel


 
Thread Tools Search this Thread
Operating Systems AIX How to find the active network inteface on etherchannel
# 1  
Old 04-08-2009
How to find the active network inteface on etherchannel

I have a server with multiple network interfaces. 2 of these interfaces, lets say en2 and en6 make up an etherchannel interface, which let's say en8.

when I run the command

lsattr -El ent8

I can see the designated primary and backup interfaces as ent6 and ent2, in the given order. But since I have no control over the network switches, I do not see if a switch had problems and my etherchannel failed over to the backup interface or not and, to my surprise, this happens more often than one might think.

So far, the only method I found to determine which physical interface is actively handling the network traffic passing thru the etherchannel'ed IP address is, running the command

entstat -d en8

in few second intervals while watching the individual interface while watching the transmit and receive statistics of individual network adapters in the channel, determining the active one depending on which adapter's numbers are increasing.

I was wondering if there is a command that tells me straight out, which interface in the etherchannel is actually active and which is acting as a backup adapter at any given time. Is there such a command ?

Thanks for all help in advance
# 2  
Old 04-08-2009
Hi thenomad,

netstat -v should be the command you're searching for

Kind regards
zxmaus
# 3  
Old 04-09-2009
Quote:
Originally Posted by zxmaus
Hi thenomad,

netstat -v should be the command you're searching for

Kind regards
zxmaus
The output for this comman is quite long and provides pretty much the same information as entstat -d enX command for ann exX values. How can I tell the status of my 2 etherchannel'ed interfaces telling which one is up and which on is in backup mode from the output of this command ?
# 4  
Old 04-09-2009
errpt should tell you if the primary has failed over and when it fails back.
# 5  
Old 04-10-2009
Quote:
Originally Posted by dukessd
errpt should tell you if the primary has failed over and when it fails back.

Yeah that is a good idea but going thru the errpt output for interface failures is not something I really want to do. In addition, this command I am looking for, will be given to the folks with no way of having root access (weblogic admins) to assist them in their troubleshooting efforts. So, I need to know at any given time which one interface out of a two interface etherchannel (configured in active/passive way) is the active one at any given moment.

Is there a light at the end of the tunnel for me ?
# 6  
Old 04-13-2009
Primary etherchannel adapter

The info you need is in the 'entstat -d' output (or netstat -v). Here's what I use to check our systems.

# entstat -d ent5 | egrep "Active|Backup|ETH"
ETHERNET STATISTICS (ent5) :
Active channel: backup adapter
ETHERNET STATISTICS (ent3) :
Switch ID: ETHERNET0
Backup adapter - ent2:
ETHERNET STATISTICS (ent2) :
Switch ID: ETHERNET0

So this shows me that my etherchannel (ent5) is comprised of ent2 and ent3, and that the current Active channel is the backup adapter which is adapter ent2.

HTH!
# 7  
Old 04-13-2009
Quote:
Originally Posted by homeyjoe
The info you need is in the 'entstat -d' output (or netstat -v). Here's what I use to check our systems.

# entstat -d ent5 | egrep "Active|Backup|ETH"
ETHERNET STATISTICS (ent5) :
Active channel: backup adapter
ETHERNET STATISTICS (ent3) :
Switch ID: ETHERNET0
Backup adapter - ent2:
ETHERNET STATISTICS (ent2) :
Switch ID: ETHERNET0

So this shows me that my etherchannel (ent5) is comprised of ent2 and ent3, and that the current Active channel is the backup adapter which is adapter ent2.

HTH!

But my question is, when the active interface fails for some reason (say someone unplugged the wrong cabe on the switch side, simple mistake) will the ent2 and ent3 change positions in the entstat output, i.e., will I see ent2 as my active adapter and ent3 as the backup (or maybe in a failed state) ?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Could you help me writing a script showing which network connections are currently active?

Could you help me writing a script showing which network connections are currently active? Means output should be something like: "eth0, wlan1, wlan3" Problem: The output is supposed to happen on a 16x2 LCD Display. Currently I am doing a "Ifconfig" as output, but its too fast for the... (2 Replies)
Discussion started by: lordofazeroth
2 Replies

2. Solaris

V490 Network Active Hardware no IP

Hi All, Been a while since I touched a Solaris box so thought I would fire one up just to keep a hand in and I am amazed I have stumbled so early on. I am using a Sun v490, running latest patch of Solaris 10. The system shows the interfaces are configured (ifconfig netstat etc) but no IP is... (4 Replies)
Discussion started by: Diar
4 Replies

3. AIX

How to active this network adapter?

When I configure two VIO Servers, VIOS1 used to ping its gateway, after I configured second VIOS2, VIOS1 cannpt ping its gateway, when I run this command: entstat -all ent#|grep -i priority Priority: 5 Active: False How to make Active to True? (1 Reply)
Discussion started by: rainbow_bean
1 Replies

4. Windows & DOS: Issues & Discussions

Windows Active Network Connection Override

Hi All, I use two Network Connections at work: Wireless and LAN. Wireless network has no limitations, but LAN internet has a web filter. I start a download using my Wireless conn. (At this point, LAN is disabled) But when I activate my LAN connection my download stops immediately. LAN... (4 Replies)
Discussion started by: kalavkalav
4 Replies

5. Solaris

how to know inteface name in ULTRA 20

hi friends, I have brand new Sun Ultra 20 WS installed. It was preinstalled with Solaris 10 6/06 system, in ifconfig -a command only loop back intervace is showing. and /etc/path_to_install also not able to find the interface name. my questions are: 1. Is there any command to get... (1 Reply)
Discussion started by: subhankar
1 Replies

6. Shell Programming and Scripting

network active shell script

can anyone help me find a script that i can use to see whether a network is up and if it aint up then create a new network. (0 Replies)
Discussion started by: king_jon85
0 Replies

7. Linux

active network connections

how can i see active network connections (1 Reply)
Discussion started by: youmna
1 Replies

8. AIX

EtherChannel network redundance problem

Problem description: On the condition of EtherChannel function of AIX, when the data exchange between the nodes on the network, there sometimes lost datat packets and cause the application failed. Once we deconfig EtherChannel and use the single adapter configuration, the application works... (0 Replies)
Discussion started by: Frank2004
0 Replies

9. IP Networking

configuring more than one ip for an inteface pemanently (linux)

Hi does anybody know how we can add more than one ip for NIC(in Redhat Linux 7.2)? i usually do it by using this command ifconfig eth0 add <ip addresss> netmask <..............> up or ; ip address add 192.168.20.1/24 dev eth0 or adding it manually to file in... (12 Replies)
Discussion started by: hessam
12 Replies
Login or Register to Ask a Question