2.5 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 of about 2000 lines, that can be easily circulated online AND offline.
Just FYI Raspberry Pi OS's /usr/bin/raspinfo serves a very similar purpose, but we do not include that program's 700-to-800 line output at present.
For a more concise "instant" summary of any IIAB machine (about 20-25 lines) try this command instead: /usr/bin/iiab-summary
What iiab-diagnostics
does
Passwords (including Wi-Fi passwords) are auto-redacted as the output file is generated, to protect your community confidentiality.
Finally, the pastebinit
command can be used to auto-upload the output file (human-readable, approx 2000 lines) creating a short URL that makes it much easier to circulate among volunteers.
But first off, the file is compiled by harvesting 1 + 6 kinds of things:
-
Filename Header + Git Hashes + Raspberry Pi Model + OS + CPU Architecture(s)
-
Files specially requested (if you run
sudo iiab-diagnostics PATH/FILE1 PATH/FILE2
) -
Regular Files
-
Content of Directories (1-level deep)
-
Output of Commands
-
Firewall Rules
-
Log Files (last 100 lines of each)
Usage
-
Run it as follows:
iiab-diagnostics
Better yet, for more complete results, run it as root:
sudo iiab-diagnostics
To bundle in yet more files, run:
sudo iiab-diagnostics PATH/FILE1 PATH/FILE2 ...
( All diagnostics will be bundled up into a single human-readable file, placed in: /etc/iiab/diag/ )
-
Make sure you're online, as you will be prompted to auto-publish your newly-compiled diagnostics file to a web pastebin.
Or, you can later/manually upload it using the
pastebinit
command:pastebinit -b sprunge.us < /etc/iiab/diag/NEW-FILE-NAME
Either way, this will generate an actual web link (URL).
-
Post this 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.
Source Code
Please look over the bottom of iiab-diagnostics (lines 127-254 especially) to learn more about which common IIAB files and commands make this rapid troubleshooting possible.