Last active
December 21, 2022 13:16
-
-
Save gabrielmathias/976d43f99cb2340d7f51cf85365ca32a to your computer and use it in GitHub Desktop.
Checklist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env bash | |
# RUN ME $> bash <(curl -sL https://gist.githubusercontent.com/gabrielmathias/976d43f99cb2340d7f51cf85365ca32a/raw/report.sh) > report.txt | |
echo "OS checks - v0.0.1-SNAPSHOT" | |
lsb_release -a || echo -n "" | |
cat /etc/os-release || echo "/etc/os-release missing" | |
cat /etc/issue || echo "/etc/issue missing" | |
hostnamectl || echo "This system does not have hostnamectl command" | |
cat /etc/redhat-release || echo "/etc/redhat-release missing" | |
cat /etc/lsb-release || echo "/etc/lsb-release missing" | |
cat /etc/*release || echo -n "" | |
echo "Memory checks" | |
free -h | |
echo "Disk checks" | |
df -h | |
echo "Docker checks" | |
docker version || echo "Docker not running" | |
docker ps || echo -n "" | |
docker volume ls || echo -n "" | |
echo "CPU checks" | |
cat /proc/cpuinfo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment