Ishmael, the main character of Moby Dick, is the codename for my personal project to create a better analysis tool for our company support dumps.
- Python3 installed
- A modern terminal with support for UTF-8 and escape codes for coloring/icons: https://unix.stackexchange.com/questions/303712/how-can-i-enable-utf-8-support-in-the-linux-console
I have the repository downloaded to ~/Projects/ishmael/
and created the following function in my ~/.bashrc
:
ish()
{
clear && ~/Projects/ishmael/ish.py "$@" | sed -f ~/Projects/ishmael/colors.sed
}
From the root of the extracted support dump, run ish
and ouput of the nodes and states will be printed. For output that wraps and busies your terminal (i.e. output is too long to display on one line -- particularly errors for nodes), I use the following pipe:
ish | less -SR
Common node and cluster issues can be gathered from support dump by running the following from the root of extracted support dump directory: (you could also alias this)
bash ~/Projects/ishmael/sd_patterns.sh
Print out is sectioned by:
- search pattern (red)
- number of occurrences (blue)
- last line in file (green for path to file)
TODO: would like to add links and advice for how to fix said error if possible