mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-29 03:13:55 +01:00
Added status
This commit is contained in:
parent
ab8ab2a9ba
commit
e70824776f
22
Scripts/status
Executable file
22
Scripts/status
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user