UNIX Diagnostics
Version
hostnamectl status
dmidecode -s system-uuidcat /proc/sys/kernel/random/boot_id | tr -d '-'dmidecode -s system-manufacturercat /etc/os-release | grep PRETTY | awk -F\" '{print $2}'cat /etc/os-release | grep CPE | awk -F\" '{print $2}'uname -runame -i
lsb_release -a
cat /etc/*release
uname -a
uname -s
uname -n
uname -r
uname -v
uname -m
uname -p
uname -i
uname -o
uname --all
uname --kernel-name
uname --nodename
uname --kernel-release
uname --kernel-version
uname --machine
uname --processor
uname --hardware-platform
uname --operating-system
Linux
mymachine
5.15.0-58-generic
#64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023
x86_64
x86_64
x86_64
GNU/Linux
cat /etc/issue
cat /proc/version
inxi -S -c 5
Uptime
uptime
17:55:03 up 18 days, 8:11, 4 users, load average: 0.29, 0.37, 0.39
last -x | grep reboot
last -x -F reboot
reboot system boot 3.10.0-1160.105. Thu Jan 18 09:43:07 2024 - Mon Feb 5 17:55:49 2024 (18+08:12)
wtmp begins Wed Nov 15 11:08:43 2023
last -x | grep shutdown
last -x -F shutdown
shutdown system down 3.10.0-862.11.6. Thu Jan 18 09:42:53 2024 - Thu Jan 18 09:43:07 2024 (00:00)
wtmp begins Wed Nov 15 11:08:43 2023
inxi -I -c 5
Uptime is also shown in the output of...
top
htop
See also:
tuptime
To see the last boot time...
who -b
htop
AIX
For AIX you can also review the error report for information...
errpt -a
and the console log (as 'root')...
alog -t console -o
If you cannot get enough information from the server, you may be able to get more from the HMC e.g. lssvcevents -t consoleLoad
To monitor load use one of these commands...
watch uptime
or
tload
Support
eol all
eol mysql
Bibliography
Versionhttps://www.howtogeek.com/206240/how-to-tell-what-distro-and-version-of-linux-you-are-running/
Uptimehttps://unix.stackexchange.com/questions/145761/find-last-shutdown-timehttps://www.linuxhelp.com/how-to-install-tuptime-in-linuxhttps://www.toolbox.com/tech/operating-systems/question/how-to-check-when-was-the-last-system-shutdown-051007/https://www.ibm.com/support/pages/how-investigate-system-reboothttps://www.makeuseof.com/how-to-check-shutdown-and-restart-history-linux/
I/Ohttps://linux.die.net/man/1/iostathttp://www.webhostingtalk.com/showthread.php?t=1029791
Boot IDhttp://0pointer.de/blog/projects/ids.html
Machine IDhttps://stackoverflow.com/questions/10152762/best-way-to-get-machine-id-on-linux