Stefan Tomanek
2007-Dec-03 00:36 UTC
[Pkg-xen-devel] Bug#437127: xen-utils-common: vif-common fails to identify ip address of ethernet device
I did some fine tuning on the command line, and this one should be an even better alternative: ip -4 -o addr show primary dev $1 | awk '$3 == "inet" {print $4; exit}' | sed 's!/.*!!'
Marc A. Donges
2008-Aug-25 23:13 UTC
[Pkg-xen-devel] Bug#437127: xen-utils-common: vif-common fails to identify ip address of ethernet device
ip -4 -o addr show primary dev eth0 | awk '$3 == "inet" {match($4,"([0-9.]*)",i); print i[1]; exit}' HTH, Marc -- _ _ Marc A. Donges +49 721 6904-2130 'v' Klosterweg 28 / E110 / \ 76131 Karlsruhe W W http://www.hadiko.de/~marc/
Seemingly Similar Threads
- Bug#437127: xen-utils-common: vif-common fails to identify ip address of ethernet device
- Bug#437127: xen-utils-common: vif-common fails to identify ip address of ethernet device
- Bug#437127: Info received (xen-utils-common: vif-common fails to identify ip address of ethernet device)
- Bug#437127: xen-utils-common: vif-common fails to identify ip address of ethernet device
- Bug#499323: logcheck-database: Logcheck fails to ignore certain OpenVPN messages