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:
parent
c7f7d6dd5b
commit
fe11c0d771
1 changed files with 3 additions and 3 deletions
|
@ -149,6 +149,7 @@ cat_file /usr/bin/iiab-gen-iptables
|
||||||
#cat_file /tmp/all-ansible-vars
|
#cat_file /tmp/all-ansible-vars
|
||||||
|
|
||||||
echo -e "\n 3. Output of Commands:\n"
|
echo -e "\n 3. Output of Commands:\n"
|
||||||
|
cat_cmd 'sudo iptables-save' 'Firewall rules'
|
||||||
cat_cmd 'uname -a' 'Linux kernel'
|
cat_cmd 'uname -a' 'Linux kernel'
|
||||||
cat_cmd 'free' 'RAM memory'
|
cat_cmd 'free' 'RAM memory'
|
||||||
cat_cmd 'lscpu' 'CPU details'
|
cat_cmd 'lscpu' 'CPU details'
|
||||||
|
@ -159,10 +160,9 @@ cat_cmd 'ip addr' 'Network interfaces'
|
||||||
cat_cmd 'ifconfig' 'Network interfaces (old view)'
|
cat_cmd 'ifconfig' 'Network interfaces (old view)'
|
||||||
cat_cmd 'brctl show' 'Bridge for LAN side'
|
cat_cmd 'brctl show' 'Bridge for LAN side'
|
||||||
cat_cmd 'netstat -rn' 'Routing table'
|
cat_cmd 'netstat -rn' 'Routing table'
|
||||||
cat_cmd 'netstat -natp' 'Ports/Services in use'
|
cat_cmd 'sudo netstat -natp' 'Ports/Services in use'
|
||||||
cat_cmd 'iptables-save' 'Firewall rules'
|
|
||||||
cat_cmd 'systemctl status dnsmasq' 'Is dnsmasq Ok?'
|
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?
|
#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"
|
echo -e "\n 4. Content of Directories, 1-level deep:\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue