Page MenuHomeVyOS Platform

ENHANCEMENT: Update tech-support archive and output content
Open, HighPublicFEATURE REQUEST

Description

Summary

Extend and improve the tech-suport archive

generate tech-support archive
show tech-support report

Extended commands to collect:

  1. If there are .iso files in the /config or /home/xxx directory, they have to be excluded from the archive (some customers save vyos-generic.iso images in this place)
  2. Exclude previous/oldest debug-arhcived.tar.gz from the target T7230 Duplicate Data in Tech-Support Archives Due to Inefficient Archiving Logic (generate tech-support archive)
  3. Add hwloc text format + PNG to get NUMA topologies and not only T7134 Add hwloc package to get info and generate CPU - Numa topoloogy
  4. Content of the /run/ directory
  5. Add the ability to detect if some third-party packages were install into system (if a used installed own binaries)
  6. Add show kernel modules info sudo lsmod
  7. lspci -knnv
  8. All files and directories from /config
  9. FRR memory → vtysh -c “show memory”
  10. ethtool -m
  11. Include ipsec debug
  12. history → latest N commands run by users.
  13. numactl --hardware
  14. numastat -cm

For the support archive it is necessary to get this info:

date -u "+%Y%m%d%H%M%S"
## SHOW COMMANDS => file: vyos-main-info
show version
show configuration commands
show configuration
show interfaces
show bridge
show arp
show ipv6 neighbors
show system storage
show system image details
## Route information: => file: routing-info
show ip route bgp | head -108
show ip route cache
show ip route connected
show ip route forward | head -108
show ip route isis | head -108
show ip route kernel
show ip route ospf | head -108
show ip route rip | head -108
show ip route static
show ip route summary
show ip route supernets-only | head -108
show ip route table all | head -108
show ip route vrf all | head -108
show ipv6 route bgp | head -108
show ipv6 route cache
show ipv6 route connected
show ipv6 route forward | head -108
show ipv6 route isis | head -108
show ipv6 route kernel
show ipv6 route ospfv3 | head -108
show ipv6 route rip | head -108
show ipv6 route static
show ipv6 route summary
show ipv6 route table all | head -108
show ipv6 route vrf all | head -108
show bfd peers
show evpn mac vni all
show evpn next-hops vni all
show evpn rmac vni all
show evpn access-vlan
show evpn arp-cache
show evpn es
show evpn es-evi
show mpls pseudowire
show mpls table
show mpls ldp binding
show mpls ldp discovery
show mpls ldp interface
show mpls ldp neighbor
show rpki cache-server
show rpki cache-connection
## FRR commands -> file: frr-info
vtysh -c 'show running-config'
vtysh -c 'show memory'
vtysh -c 'show work-queues'
vtysh -c 'show ip nht'
vtysh -c 'show ipv6 nht'
vtysh -c 'show dmvpn'
vtysh -c 'show event cpu'
vtysh -c 'show event poll'
vtysh -c 'show event timers'
vtysh -c 'show segment-routing srv6 locator'
vtysh -c 'show segment-routing srv6 manager'
## PROC -> file: proc-and-sysctl-info
cat /proc/net/dev
cat /proc/modules
cat /proc/loadavg
cat /proc/interrupts
cat /proc/softirqs
cat /proc/net/softnet_stat
cat /proc/meminfo
cat /sys/devices/system/node/node*/meminfo
cat /proc/vmstat
cat /proc/devices
cat /proc/partitions
cat /proc/mounts
cat /proc/cmdline
sysctl -a
## Netstat -> file: net-and-processes-info
netstat --interfaces
netstat --listening
ss -s
ss -a -e -m -p
ps -eF
## Physical interfaces -> file: ethtool-info
ip -s -d link show
# For all Ethernet interfaces:
ethtool --driver {iface}
ethtool --statistics {iface}
ethtool --show-ring {iface}
ethtool --show-coalesce {iface}
ethtool --pause {iface}
ethtool --show-features {iface}
ethtool --phy-statistics {iface}
ethtool --module-info {iface}
## -> file: lspci-and-numa-info
lspci -knnv
numactl --hardware
numastat -cm
## Firewall -> file: nftables-info
sudo nft list ruleset
## Packages -> file: dpkg-and-modules-info
dpkg --list
diff /usr/lib/live/mount/rootfs/*.squashfs/var/lib/dpkg/status /var/lib/dpkg/status
sudo lsmod
## Resouces -> file: sytem-rources-info
# CPU
lscpu
# Memory
free -lhv
# Storage
fdisk --list /dev/${disks}
df -ah
df -ahi

##IPSEC Debug -> file: ipsec-debug-info
swanctl -L
swanctl -l
swanctl -P
ip x sa show
ip x policy show
ip tunnel show
ip address
ip rule show
ip route | head -100
ip route show table 220
# VPP -> file: vpp-info
sudo vppctl show version verbose cmdline
sudo vppctl show hardware-interfaces
sudo vppctl show interface address
sudo vppctl show interface
sudo vppctl show errors
sudo vppctl show runtime
sudo vppctl show memory api-segment stats-segment numa-heaps main-heap map verbose
sudo vppctl show buffers
sudo vppctl show physmem detail
sudo vppctl show physmem map
sudo vppctl show cpu
sudo vppctl show threads
sudo vppctl show node counters
sudo vppctl show l2fib
sudo vppctl show bridge-domain
sudo vppctl show ip fib | head -100
sudo vppctl show ip neighbors
sudo vppctl show ip6 fib | head -100
sudo vppctl show ip6 neighbors
sudo vppctl show mpls fib
sudo vppctl show mpls tunnel
sudo vppctl show trace

Files/folders

# except /var/log/messages.*
/var/log
# Sync and flush logs via journalctl before this!
/var/log/journal
/etc
# Exclude .iso files
/home
/root
/opt/vyatta/etc/config
# Exclude .iso files
# Exclude previous tech-support archives.
/tmp
/run

Extend show tech-support report

cat /opt/vyatta/etc/config/config.boot
# content of every file in folders
/opt/vyatta/etc/config/scripts/
/run/udev/vyos/
atop -a -y -1 -c -g -C 1 1 | tee
atop -a -y -1 -c -m -M 1 1 | tee
atop -a -y -1 -c -d -D 1 1 | tee
atop -a -y -1 -c -n -N 1 1 | tee
top --iterations 1 --batch-mode --accum-time-toggle

Use case

Have improvement tech-support archive

Details

Version
-
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Feature (new functionality)

Event Timeline

Viacheslav triaged this task as High priority.