diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-06-10 22:14:06 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-06-10 22:14:06 +0200 |
commit | 98c47096b1b008066963b8e99ce792f0f5127345 (patch) | |
tree | 81d61e4f5cc2a11fc2b82aa0d34f92be80b8d737 /functions/tech-support | |
parent | 83234bc6a31775c0c750e2d90176673dd8b5f3c8 (diff) | |
download | vyatta-op-98c47096b1b008066963b8e99ce792f0f5127345.tar.gz vyatta-op-98c47096b1b008066963b8e99ce792f0f5127345.zip |
Related to T689: update the show tech-support scripts.
Remove references to Vyatta.
Remove all references to serial WAN interfaces: not supported since forever.
Remove references to IPS, also not supported since forever.
Update configuration path for NAT.
Do not try to check if VRRP is configured since it can be inside VIFs,
the old check was incomplete.
Diffstat (limited to 'functions/tech-support')
-rwxr-xr-x | functions/tech-support | 111 |
1 files changed, 10 insertions, 101 deletions
diff --git a/functions/tech-support b/functions/tech-support index e4602d2..5c619d6 100755 --- a/functions/tech-support +++ b/functions/tech-support @@ -75,7 +75,7 @@ header Entitlement show entitlement fi -header Vyatta Version and Package Changes +header VyOS Version and Package Changes show version all header Configuration File @@ -104,12 +104,12 @@ header Ethernet header Interface statistics ip -s link show -for eth in $(/opt/vyatta/sbin/vyatta-interfaces.pl --show=ethernet) +for eth in $(${vyos_completion_dir}/list_interfaces.py --type=ethernet) do header "Physical Interface statistics for $eth" sudo ethtool -S $eth done -for eth in $(/opt/vyatta/sbin/vyatta-interfaces.pl --show=ethernet) +for eth in $(${vyos_completion_dir}/list_interfaces.py --type=ethernet) do header "Physical Interface Details for $eth" show interfaces ethernet $eth physical /sbin/ethtool -k $eth @@ -123,83 +123,12 @@ show arp | grep incomplete | wc -l header Bridge /sbin/brctl show -for br in $(/opt/vyatta/sbin/vyatta-interfaces.pl --show=bridge) +for br in $(${vyos_completion_dir}/list_interfaces.py --type=bridge) do header "Bridge Information for $br" /sbin/brctl showstp $br /sbin/brctl showmacs $br done -header Serial - -header "WAN Interface Hardware Information (wanrouter hwprobe)" -is_sangoma='lspci -n -d '1923:*'' -is_adsl='lspci -n -d '14bc:*'' -if [ -z "$is_sangoma" -a -z "$is_adsl" ]; then - - sudo wanrouter hwprobe - -header "WAN Interface Software Version (wanrouter version)" -wanrouter version - -header "WAN Interface Debugging Information (wanrouter debug)" -wanrouter debug - -header "WAN Interface Connection Status Information (wanrouter summary)" -wanrouter summary - -header "WAN Interface Information Summary (wanrouter status)" -wanrouter status - -header "WAN Interface Driver Information (wanrouter modules)" -wanrouter modules - -if [ -e /etc/wanpipe/wanrouter.rc ]; then - header "WAN Interface Startup Script (/etc/wanpipe/wanrouter.rc)" - cat /etc/wanpipe/wanrouter.rc -fi - -header WAN Interfaces -wanifs=( /sys/class/net/wan* ) -wanifs=`echo -n ${wanifs[@]##*/}` - -echo "wanifs are $wanifs" - -for ifname in $wanifs ; do - header "wanpipemon -i $ifname -c sc" - sudo wanpipemon -i $ifname -c sc - - header "wanpipemon -i $ifname -c so" - sudo wanpipemon -i $ifname -c so - - header "wanpipemon -i $ifname -c xcv" - sudo wanpipemon -i $ifname -c xcv - - header "wanpipemon -i $ifname -c xru" - sudo wanpipemon -i $ifname -c xru - - header "wanpipemon -i $ifname -c xm" - sudo wanpipemon -i $ifname -c xm - - header "wanpipemon -i $ifname -c xl" - sudo wanpipemon -i $ifname -c xl - - header "wanpipemon -i $ifname -c Ta" - sudo wanpipemon -i $ifname -c Ta -done - -for i in /etc/wanpipe/wanpipe*.conf ; do - if [ -e $i ]; then - header $i - cat $i - fi -done - -header "WAN Interface Configuration Log (wanrouter conflog)" -wanrouter conflog - -else -echo "Wanpipe not configured" -fi header ROUTING @@ -465,16 +394,6 @@ else echo "Firewall is not configured" fi -header IPS -if cli-shell-api existsActive content-inspection; then - header IPS log - show ips log - header IPS Update-Log - show ips update-log -else - echo "IPS is not configured" -fi - header IPSec if cli-shell-api existsActive vpn ipsec; then header IPSec Status @@ -498,7 +417,7 @@ else fi header NAT -if cli-shell-api existsActive service nat; then +if cli-shell-api existsActive nat; then header NAT Rules show nat rules header NAT Statistics @@ -510,12 +429,11 @@ else fi -header NETFLOW -if cli-shell-api existsActive system flow-accounting netflow; then - header NetFlow Accounting +header FlowAccounting +if cli-shell-api existsActive system flow-accounting; then show flow-accounting else - echo "Netflow is not configured" + echo "Flow accounting is not configured" fi header OPENVPN @@ -618,17 +536,8 @@ else fi header VRRP -found=0 -for eth in $(cd /sys/class/net; echo eth*); do - if cli-shell-api existsActive interfaces ethernet $eth vrrp; then - header \''show vrrp'\' - show vrrp - found=1 - fi -done -if [ $found -eq 0 ]; then - echo "VRRP is not configured" -fi +# XXX: not checking if configured, we'd have to walk all VIFs +show vrrp detail header WAN LOAD BALANCING if cli-shell-api existsActive load-balancing wan; then |