Raja's Exocortex

Diagnostics for Ubuntu

Use the below shell script to capture diagnostic output for a Linux server.

#!/bin/bash
# Filename: diagnostics.sh
# Diagnostics script for capturing Linux server details

set -x

date

lsb_release -a
uname -a
dmesg

lscpu
lspci -v
lsblk -f
lshw
multipath -ll
df -h
mount

sysctl -a

ip address
ip route
brctl show

dpkg -l
rpm -qa

systemctl list-unit-files

docker images
docker ps -a

ps auxww