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

Try prefixing sudo in front of 3 cmds that partially fail (fixing incomplete results?)

This commit is contained in:
A Holt 2019-10-13 09:55:27 -04:00 committed by GitHub
parent c7f7d6dd5b
commit fe11c0d771
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"