From e70824776f0635b28587dbc029155a9575c593c6 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Mon, 25 May 2020 18:20:34 +0000 Subject: [PATCH] Added status --- Scripts/status | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 Scripts/status diff --git a/Scripts/status b/Scripts/status new file mode 100755 index 00000000..6cd1f2fc --- /dev/null +++ b/Scripts/status @@ -0,0 +1,22 @@ +#!/bin/sh +# NOTE: to be started as superuser! +# requires package hddtemp and smartctl! + +echo "" +hostnamectl +echo " Uptime: `uptime --pretty` since `uptime --since`" +echo " HDD Temperature: `hddtemp --unit=C /dev/sda`" + +echo "\n+++ Checking S.M.A.R.T. +++" +smartctl --smart=on --nocheck=standby --offlineauto=on --health /dev/sda + +echo "\n+++ Checking Filesystem +++" +zpool list +zpool status + +echo "\n+++ Checking Updates +++" +apt update && apt upgrade +snap refresh + +echo "\n+++ Cleaning Swap Space +++" +swapoff --all && swapon --all