UNIX Diagnostics

UNIX Diagnostics

Version

hostnamectl status

   Static hostname: mymachine         Icon name: computer-vm           Chassis: vm        Machine ID: 76a769818b55467cb184f22a20114f4z           Boot ID: 58e88f32215e4389b2871derda35779a    Virtualization: vmware  Operating System: Oracle Linux Server 7.5       CPE OS Name: cpe:/o:oracle:linux:7:5:server            Kernel: Linux 3.10.0-862.11.6.el7.x86_64      Architecture: x86-64
hostname

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 

LSB Version: core-11.1.0ubuntu4-noarch:printing-11.1.0ubuntu4-noarch:security-11.1.0ubuntu4-noarchDistributor ID: UbuntuDescription: Ubuntu 22.04.1 LTSRelease: 22.04Codename: jammy

cat /etc/*release

DISTRIB_ID=UbuntuDISTRIB_RELEASE=22.04DISTRIB_CODENAME=jammyDISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"PRETTY_NAME="Ubuntu 22.04.1 LTS"NAME="Ubuntu"VERSION_ID="22.04"VERSION="22.04.1 LTS (Jammy Jellyfish)"VERSION_CODENAME=jammyID=ubuntuID_LIKE=debianHOME_URL="https://www.ubuntu.com/"SUPPORT_URL="https://help.ubuntu.com/"BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"UBUNTU_CODENAME=jammy

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

Ubuntu 22.04.1 LTS \n \l

cat /proc/version

Linux version 5.15.0-58-generic (buildd@lcy02-amd64-101) (gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023

inxi -S -c 5

System:  Host: mmymachine Kernel: 5.15.0-60-generic x86_64    bits: 64 Desktop: GNOME 42.5 Distro: Ubuntu 22.04.2 LTS (Jammy Jellyfish)

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 console

Load

To monitor load use one of these commands...

watch uptime

or

tload

Support

eol all

eol mysql

Bibliography