2 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 4 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
- /etc/resolv.conf
- /etc/network/interfaces
- /usr/bin/iiab-gen-iptables
- /.iiab-image
-
Contents of Directories:
- /etc/network/interfaces.d
- /etc/sysconfig/network-scripts/if-cfg*
- /etc/NetworkManager/system-connections
- /etc/systemd/network/
-
Output from Commands:
- ip addr # Network interfaces
- ifconfig # Network interfaces (old view)
- brctl show # Bridge for LAN side
- netstat -rn # Routing table
- netstat -natp # Ports/Services in use
- iptables-save # Firewall rules
- systemctl status dnsmasq # Is dnsmasq Ok?
- journalctl -u dnsmasq # dnsmasq log
- ansible localhost -m setup 2>/dev/null # All Ansible facts
-
Log Files -- last 100 lines:
- /opt/iiab/iiab-install.log
- /opt/iiab/iiab-network.log
- /opt/iiab/iiab-debug.log
- /opt/iiab/iiab-admin-console/admin-install.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.