summaryrefslogtreecommitdiff
path: root/functions/tech-support
diff options
context:
space:
mode:
authorDeepti Kulkarni <deepti@vyatta.com>2010-06-23 21:43:43 +0000
committerDeepti Kulkarni <deepti@vyatta.com>2010-06-23 21:43:43 +0000
commita2aea11799a4ec4fec15211c96518cdab0641fbb (patch)
tree513480271a61494d74f5a8e4da6028083abd11a1 /functions/tech-support
parente2562dc79c8077f8a8c1a136bb5939f2cad93ec4 (diff)
downloadvyatta-op-a2aea11799a4ec4fec15211c96518cdab0641fbb.tar.gz
vyatta-op-a2aea11799a4ec4fec15211c96518cdab0641fbb.zip
Revert "Added new command to print PCI device information."
This reverts commit e2562dc79c8077f8a8c1a136bb5939f2cad93ec4.
Diffstat (limited to 'functions/tech-support')
-rwxr-xr-xfunctions/tech-support59
1 files changed, 8 insertions, 51 deletions
diff --git a/functions/tech-support b/functions/tech-support
index e5c0034..667747f 100755
--- a/functions/tech-support
+++ b/functions/tech-support
@@ -83,12 +83,7 @@ header Configuration File
cat /opt/vyatta/etc/config/config.boot
header Running configuration
-ret_value=`id -gn`
-if [ "$ret_value" == "vyattacfg" ]; then
- run show configuration
-else
- show configuration
-fi
+show configuration
header Package Repository Configuration File
cat /etc/apt/sources.list
@@ -115,35 +110,17 @@ done
for eth in $(cd /sys/class/net; echo eth*)
do header "Physical Interface Details for $eth"
- ret_value=`id -gn`
- if [ "$ret_value" == "vyattacfg" ]; then
- run show interfaces ethernet $eth physical
-else
show interfaces ethernet $eth physical
-fi
done
header Physical Interface Offload Settings and Capabilities
sudo ethtool -K
header "ARP Table (Total entries)"
-do header "Physical Interface Details for $eth"
- ret_value=`id -gn`
- if [ "$ret_value" == "vyattacfg" ]; then
- run show arp
-else
- show arp
- fi
-done
+show arp
header Number of incomplete entries in ARP table
- ret_value=`id -gn`
- if [ "$ret_value" == "vyattacfg" ]; then
- run show arp | grep incomplete | wc -l
-else
- show arp | grep incomplete | wc -l
- fi
-
+show arp | grep incomplete | wc -l
header Serial
header "WAN Interface Hardware Information (wanrouter hwprobe)"
@@ -342,9 +319,6 @@ dmesg
header PCI Info
sudo lspci -vvx
-header PCI Vendor and Device Codes
-sudo lspci -nn
-
header System Info
${vyatta_bindir}/vyatta-show-dmi
@@ -379,20 +353,10 @@ header Entitlement
show entitlement
header NTP
-ret_value=`id -gn`
-if [ "$ret_value" == "vyattacfg" ]; then
- run show ntp
-else
- show ntp
-fi
+show ntp
header Zebra
-ret_value=`id -gn`
-if [ "$ret_value" == "vyattacfg" ]; then
- run show zebra
-else
- show zebra
-fi
+show zebra
###
@@ -438,18 +402,11 @@ fi
header DHCP Client
header DHCP Client Leases
-ret_value=`id -gn`
-if [ "$ret_value" == "vyattacfg" ]; then
- is_dhcp=`run show dhcp client leases | wc -l`
-else
- is_dhcp=`show dhcp client leases | wc -l`
-fi
+is_dhcp=`show dhcp client leases | wc -l`
if [ -z is_dhcp ]; then
echo "DHCP client is not configured"
-elif [ "$ret_value" == ""vyattacfg ]; then
- run show dhcp client leases
-else
- show dhcp client leases
+else
+show dhcp client leases
fi