1.9 KiB
Objective
To streamline troubleshooting of remote Internet-in-a-Box (IIAB) installations, we bundle up common machine/software diagnostics, all together in 1 human-readable file, that can be easily circulated online AND offline.
The pastebinit
command can then be used to upload this file, creating a short URL that makes things even easier.
But first off, the file is compiled by harvesting 3 kinds of things:
-
Files
- /etc/iiab/iiab.env
- /etc/iiab/iiab.ini
- /etc/iiab/local_vars.yml
- /etc/iiab/config_vars.yml
- /etc/iiab/openvpn_handle
- /opt/iiab/iiab-install.log
- /opt/iiab/iiab-debug.log
- /opt/iiab/iiab-network.log
- /etc/resolv.conf
- /etc/network/interfaces
- /usr/bin/iiab-gen-iptables
-
Contents of directories:
- /etc/network/interfaces.d
- /etc/sysconfig/network-scripts/if-cfg*
- /etc/NetworkManager/system-connections
- /etc/systemd/network/
-
Output from commands:
- ansible localhost -m setup 2>/dev/null # All Ansible facts
- ip addr # Network interfaces
- ifconfig # Older view
- brctl show # Bridge for LAN side
- netstat -rn # Routing table
- netstat -natp # Ports/Services in use
- systemctl status dnsmasq # Is dnsmasq running?
- journalctl -u dnsmasq # dnsmasq log
Suggested Usage
-
Run the diagnostics:
sudo iiab-diagnostics
( This will bundle up all the diagnostics, into a new file places in: /etc/iiab/diagnostics/ )
-
Upload the file using the pastebinit command:
pastebinit < /etc/iiab/diagnostics/<name of file you just created>
This will generalte a link (URL).
-
Post the link (URL) to a "New issue" at https://github.com/iiab/iiab/issues
Include a description of the symptoms, and how to reproduce the problem.
-
If you don't understand Step 3, email everything to bugs@iiab.io instead.