From fe11c0d771cfff503bc9136331b93fc6505b5b3e Mon Sep 17 00:00:00 2001 From: A Holt Date: Sun, 13 Oct 2019 09:55:27 -0400 Subject: [PATCH] Try prefixing sudo in front of 3 cmds that partially fail (fixing incomplete results?) --- scripts/iiab-diagnostics | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/iiab-diagnostics b/scripts/iiab-diagnostics index 57fd075ba..46e8bda5f 100755 --- a/scripts/iiab-diagnostics +++ b/scripts/iiab-diagnostics @@ -149,6 +149,7 @@ cat_file /usr/bin/iiab-gen-iptables #cat_file /tmp/all-ansible-vars echo -e "\n 3. Output of Commands:\n" +cat_cmd 'sudo iptables-save' 'Firewall rules' cat_cmd 'uname -a' 'Linux kernel' cat_cmd 'free' 'RAM memory' cat_cmd 'lscpu' 'CPU details' @@ -159,10 +160,9 @@ cat_cmd 'ip addr' 'Network interfaces' cat_cmd 'ifconfig' 'Network interfaces (old view)' cat_cmd 'brctl show' 'Bridge for LAN side' cat_cmd 'netstat -rn' 'Routing table' -cat_cmd 'netstat -natp' 'Ports/Services in use' -cat_cmd 'iptables-save' 'Firewall rules' +cat_cmd 'sudo netstat -natp' 'Ports/Services in use' cat_cmd 'systemctl status dnsmasq' 'Is dnsmasq Ok?' -cat_cmd 'journalctl -u dnsmasq' 'dnsmasq log' +cat_cmd 'sudo journalctl -u dnsmasq' 'dnsmasq 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" 15-19 lines above? echo -e "\n 4. Content of Directories, 1-level deep:\n"