1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #3909 from holta/iiab-diagnostics_dmesg_fixes

iiab-diagnostics: Refine 3+ 'sudo dmesg | grep ...' cmds
This commit is contained in:
A Holt 2025-01-22 18:20:26 -05:00 committed by GitHub
commit b6153b9a05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -201,6 +201,7 @@ cat_dir /etc/netplan # Redacts most passwords above
echo -e "\n 4. Output of Commands:\n"
echo -e "\n\n\n\n4. OUTPUT OF COMMANDS\n" >> $outfile
cat_cmd 'uname -a' 'Linux kernel'
cat_cmd 'sudo dmesg | grep -i "command line:"' 'Kernel boot parameters'
cat_cmd 'free' 'RAM memory'
cat_cmd 'lscpu' 'CPU details'
cat_cmd 'rpi-eeprom-update' 'RPi Bootloader EEPROM'
@ -228,13 +229,13 @@ cat_cmd 'iw list' 'List capabilities of all wireless devices'
cat_cmd 'systemctl status hostapd' 'Downstream Wi-Fi: Is hostapd running?'
cat_cmd 'ls -l /etc/wpa_supplicant' 'Upstream Wi-Fi'
cat_cmd 'ps -AH' 'Process hierarchy: staging of hostapd & wpa_supplicant?'
cat_cmd 'journalctl -b | grep wpa_supplicant' 'wpa_supplicant log since boot'
cat_cmd 'journalctl -b | grep NetworkManager | head -100' 'NetworkManager log since boot'
#cat_cmd 'dmesg | grep brcm' 'Diagnostic messages: RPi Wi-Fi firmware'
cat_cmd 'dmesg | grep Firmware' '(Wi-Fi) firmware boot diagnostics'
cat_cmd 'sudo journalctl -b | grep wpa_supplicant' 'wpa_supplicant log since boot'
cat_cmd 'sudo journalctl -b | grep NetworkManager | head -100' 'NetworkManager log since boot'
#cat_cmd 'sudo dmesg | grep brcm' 'Diagnostic messages: RPi Wi-Fi firmware'
cat_cmd 'sudo dmesg | grep Firmware:' '(Wi-Fi) firmware boot diagnostics'
cat_cmd 'ls -l /lib/firmware/cypress/*43430*' 'WiFi firmware for: RPi Zero W, Zero 2 W & 3'
cat_cmd 'ls -l /lib/firmware/cypress/*43455*' 'WiFi firmware for: RPi 3 B+, 4, 5 & 500'
cat_cmd 'dmesg | grep -i -e 80211 -e 802\.11 -e wireless -e wifi -e wlan -e broadcom -e brcm -e bcm -e realtek | head -100' 'Wi-Fi firmware/driver msgs'
cat_cmd 'sudo dmesg | grep -i -e 80211 -e 802\.11 -e wireless -e wifi -e wlan -e broadcom -e brcm -e bcm -e realtek | head -100' 'Wi-Fi firmware/driver msgs'
cat_cmd 'lspci -nn' 'Devices on PCI buses'
cat_cmd 'env' 'Environment variables'
cat_cmd 'node -v' 'Node.js version'
@ -244,10 +245,10 @@ cat_cmd 'cd /usr/local/calibre-web-py3; sudo git log --graph --oneline --decorat
cat_cmd 'sudo lb --version' 'xklb version'
cat_cmd 'sudo yt-dlp --version' 'yt-dlp version'
cat_cmd 'systemctl status calibre-web' 'Is Calibre-Web running?'
cat_cmd 'journalctl -u calibre-web | tail -100' 'Calibre-Web systemd log'
cat_cmd 'sudo journalctl -u calibre-web | tail -100' 'Calibre-Web systemd log'
cat_tail /var/log/calibre-web.log 100
cat_tail /var/log/xklb.log 300
cat_cmd 'journalctl -t IIAB-CMDSRV' 'Admin Console CMDSRV log'
cat_cmd 'sudo journalctl -t IIAB-CMDSRV' 'Admin Console CMDSRV log'
#cat_cmd 'ansible localhost -m setup 2>/dev/null' 'All Ansible facts' # For cleaner scraping of Ansible vars, consider "./runrole all-vars /tmp/all-ansible-vars" 27-31 lines above?
echo -e "\n 5. Firewall Rules:\n"