From 245859bd832f134f861ae8b110d27d6c2e92d80e Mon Sep 17 00:00:00 2001 From: Emmanuel Kasper Date: Mon, 6 Feb 2017 15:37:23 +0100 Subject: [PATCH] Use ip from iproute2 package instead of net-tools iproute2 is a direct depency from pve-qemu-kvm and should be always available use -statistics so we get the RX/TX traffic sum like ifconfig use -details to get extra info like current vlan_protocol --- PVE/Report.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Report.pm b/PVE/Report.pm index 901fcf85..6717d286 100644 --- a/PVE/Report.pm +++ b/PVE/Report.pm @@ -27,7 +27,7 @@ if (system('command -v multipath > /dev/null 2>&1') == 0) { my @machines = ('qm list', sub { dir2text('/etc/pve/qemu-server/', '\d.*conf') }); -my @net = ('ifconfig', 'cat /etc/network/interfaces', sub { dir2text('/etc/pve/firewall/', '.*fw') }, +my @net = ('ip -details -statistics address', 'cat /etc/network/interfaces', sub { dir2text('/etc/pve/firewall/', '.*fw') }, 'iptables-save'); my @cluster = ('pvecm nodes', 'pvecm status');