summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2012-02-21 11:23:13 -0800
committerStephen Hemminger <shemminger@vyatta.com>2012-02-21 11:35:58 -0800
commit7bca34640d477540dbc8628d4734cb7fd14a96dd (patch)
tree17e134ce648cbadceae8edc2538b29f87b6b4ac3 /functions
parent0714631e49c6cd616e8afa5fea21ccc0925a72ca (diff)
downloadvyatta-op-7bca34640d477540dbc8628d4734cb7fd14a96dd.tar.gz
vyatta-op-7bca34640d477540dbc8628d4734cb7fd14a96dd.zip
Add bridge info to show tech support
Put bridge info in show tech support Also show ethernet offload settings
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/tech-support17
1 files changed, 12 insertions, 5 deletions
diff --git a/functions/tech-support b/functions/tech-support
index cf1fc2f..570ef2d 100755
--- a/functions/tech-support
+++ b/functions/tech-support
@@ -100,24 +100,31 @@ header Ethernet
header Interface statistics
ip -s link show
-for eth in $(cd /sys/class/net; echo eth*)
+for eth in $(/opt/vyatta/sbin/vyatta-interfaces.pl --show=ethernet)
do header "Physical Interface statistics for $eth"
sudo ethtool -S $eth
done
-for eth in $(cd /sys/class/net; echo eth*)
+for eth in $(/opt/vyatta/sbin/vyatta-interfaces.pl --show=ethernet)
do header "Physical Interface Details for $eth"
show interfaces ethernet $eth physical
+ /sbin/ethtool -k $eth
done
-header Physical Interface Offload Settings and Capabilities
-sudo ethtool -K
-
header "ARP Table (Total entries)"
show arp
header Number of incomplete entries in ARP table
show arp | grep incomplete | wc -l
+
+header Bridge
+/usr/sbin/brctl show
+for br in $(/opt/vyatta/sbin/vyatta-interfaces.pl --show=bridge)
+do header "Bridge Information for $br"
+ /usr/sbin/brctl showstp $br
+ /usr/sbin/brctl showmacs $br
+done
+
header Serial
header "WAN Interface Hardware Information (wanrouter hwprobe)"