On Tue, 14 Dec 2010, David Dreezer wrote: > > I can get that information for you tonight (us pacific) but I will > unfortunately not have access to that box until that time as it is not web > accessible and I am not physically at the facility at the moment. When last > I looked it was > > r...@db099:~# ip link show up > 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN > link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 > 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP > qlen 100 > link/ether 00:30:48:72:21:d6 brd ff:ff:ff:ff:ff:ff > 3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state > DOWN qlen 1000 > link/ether 00:30:48:72:21:d7 brd ff:ff:ff:ff:ff:ff
Now, that's really odd. If I take that output, store it in a file and pass it to Thomas' modified filter: > + netdevices_up=$(ip link show up | grep "^[1-9$].*LOWER_UP" | cut -d : -f > 2 | cut -d ' ' -f 2 | grep -v "^lo" | sort | uniq) I get 'eth0' _only_, but if I use the old version of that line: > - netdevices_up=$(ip link show up | grep "^[1-9$]" | cut -d : -f 2 | cut > -d ' ' -f 2 | grep -v "^lo" | sort | uniq) I get 'eth0 eth1' which makes me think you're still using the old version. Cheers, -- Cristian