PowerShell/Scripts/status.sh

27 lines
842 B
Bash
Raw Normal View History

2020-05-25 20:20:34 +02:00
#!/bin/sh
# NOTE: to be started as superuser!
# requires package hddtemp and smartctl!
echo ""
hostnamectl
2021-01-08 12:32:35 +01:00
timedatectl
2020-05-25 20:20:34 +02:00
echo " Uptime: `uptime --pretty` since `uptime --since`"
2020-12-01 11:03:39 +01:00
echo " HDD temp: `hddtemp --unit=C /dev/sda`"
2020-11-02 20:35:22 +01:00
echo "-------------------------------------------------------------------------------"
landscape-sysinfo
echo "-------------------------------------------------------------------------------"
2020-07-19 21:55:20 +02:00
free -h
2020-11-02 20:35:22 +01:00
echo "-------------------------------------------------------------------------------"
2020-05-25 20:20:34 +02:00
smartctl --smart=on --nocheck=standby --offlineauto=on --health /dev/sda
echo "\n+++ Checking Filesystem +++"
zpool list
zpool status
echo "\n+++ Checking Updates +++"
2020-09-08 18:06:39 +02:00
apt update && apt upgrade && apt autoremove && snap refresh
2020-05-25 20:20:34 +02:00
echo "\n+++ Cleaning Swap Space +++"
swapoff --all && swapon --all
2020-09-29 20:22:28 +02:00
exit 0