Check | Command | Output |
---|---|---|
Physical Memory | grep -i memtotal /proc/meminfo | MemTotal: 16388332 kB |
Swap Space | cat /proc/meminfo|grep -i swap | SwapCached: 0 kB SwapTotal: 8388604 kB SwapFree: 8388604 kB |
Swapping Check | sar -W | 00:00:00 pswpin/s pswpout/s 00:10:02 0.00 0.00 00:20:04 0.00 0.00 |
Scheduled tasks | crontab -l note this user specific | 30 17 * * * /home/oracle/bin/rman_archive_log_delete.sh -i TEST1A1 -d 1 > /var/tmp/rman_purge_TEST1A1.log 2>&1 |
Server Logs | not a command but the log file is stored in below location /var/log/messages | sample contents: Jul 17 16:20:20 rac01-a dbus[982]: [system] Successfully activated service ‘org.freedesktop.problems’ Jul 17 16:20:20 rac01-a dbus-daemon: dbus[982]: [system] Successfully activated service ‘org.freedesktop.problems’ Jul 17 16:20:21 rac01-a dbus[982]: [system] Failed to activate service ‘org.bluez’: timed out |
Unix version | uname -a cat /etc/redhat-release | Linux postgres01.localdomain 4.18.0-513.24.1.el8_9.x86_64 #1 SMP Thu Mar 14 14:20:09 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux Red Hat Enterprise Linux release 8.9 (Ootpa) |
file system space | df -h | Filesystem Size Used Avail Use% Mounted on devtmpfs 7.8G 0 7.8G 0% /dev tmpfs 7.9G 2.1M 7.9G 1% /dev/shm tmpfs 7.9G 110M 7.8G 2% /run tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup /dev/mapper/rhel-root 70G 28G 43G 40% / /dev/mapper/rhel-tmp 8.0G 90M 8.0G 2% /tmp /dev/mapper/rhel-home 5.0G 84M 5.0G 2% /home /dev/sda1 1014M 373M 642M 37% /boot tmpfs 1.6G 32K 1.6G 1% /run/user/0 |
Top Memory Processes | ps aux –sort -%mem | head -10 | USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 4101 0.8 5.3 1803476 879228 ? Ssl Jul16 12:39 /usr/libexec/packagekitd root 4583 0.3 1.9 4985468 314480 tty2 Sl+ Jul16 4:51 /usr/bin/gnome-shell |
Top CPU Processes | ps aux –sort -%cpu | head -10 | USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND postgres 190486 17.3 0.9 541956 156680 ? Ss 07:30 94:31 postgres: agent1 pem 127.0.0.1(22766) idle root 4354 4.4 0.0 370212 9728 ? Ss Jul16 63:15 /usr/libexec/sssd/sssd_kcm –uid 0 –gid 0 –logger=files root 1477 3.6 0.1 1873860 20680 ? Sl Jul16 52:20 /usr/edb/pem/agent/bin/pemworker -c /usr/edb/pem/agent/etc/agent.cfg –pid 1476 |
last reboot | last reboot | reboot system boot 4.18.0-513.24.1. Tue Jul 16 16:51 still running reboot system boot 4.18.0-513.24.1. Fri May 3 01:39 – 09:01 (4+07:21) reboot system boot 4.18.0-513.9.1.e Mon Apr 1 14:45 – 01:29 (7+10:43) reboot system boot 4.18.0-513.9.1.e Sun Mar 10 13:05 – 01:29 (29+11:23) |
package check | rpm -qa |grep <replace with package name> | rpm -qa|grep oracle oracle-database-free-23ai-1.0-1.x86_64 |