1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
iiab/scripts/iiab-diagnostics.README.md

52 lines
1.5 KiB
Markdown
Raw Normal View History

## Objective
2019-06-23 08:03:11 +00:00
To streamline troubleshooting of remote Internet-in-a-Box (IIAB) installations, we bundle up common machine/software diagnostics, all together in 1 human-readable small 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 it easier to pass around.
But first off, the file is compiled by harvesting 5 main kinds of things:
2019-06-23 08:35:53 +00:00
1. Files specially requested (if you run ``sudo iiab-diagnostics PATH/FILE1 PATH/FILE2``)
2019-06-23 08:03:11 +00:00
2. Regular Files
3. Content of Directories, 1-level deep
4. Output of Commands
5. Log Files: (last 100 lines of each)
## Usage
1. Run it as follows:
```
sudo iiab-diagnostics
```
2019-06-23 08:03:11 +00:00
To bundle in more files, run:
```
2019-06-23 08:35:53 +00:00
sudo iiab-diagnostics PATH/FILE1 PATH/FILE2 ...
2019-06-23 08:03:11 +00:00
```
2019-06-23 08:35:53 +00:00
( All diagnostics will be bundled up into a single human-readable file, placed in: /etc/iiab/diag/ )
2019-06-23 08:35:53 +00:00
2. Make sure you're online, and upload the new file using the ``pastebinit`` command:
```
2019-06-23 08:35:53 +00:00
pastebinit < /etc/iiab/diag/NEW-FILE-NAME
```
2019-06-23 08:35:53 +00:00
This will generate an actual web link (URL).
2019-06-23 08:35:53 +00:00
3. 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.
4. If you don't understand Step 3, email everything to bugs@iiab.io instead.
2019-06-23 08:03:11 +00:00
## Source Code
2019-06-23 08:35:53 +00:00
Please look over the bottom of [iiab-diagnostics](iiab-diagnostics) to learn more about which common IIAB files and commands make this rapid troubleshooting possible.