forked from fleschutz/PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstatus
More file actions
executable file
·25 lines (21 loc) · 830 Bytes
/
Copy pathstatus
File metadata and controls
executable file
·25 lines (21 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
# NOTE: to be started as superuser!
# requires package hddtemp and smartctl!
echo ""
hostnamectl
echo " Uptime: `uptime --pretty` since `uptime --since`"
echo " HDD temp: `hddtemp --unit=C /dev/sda`"
echo "-------------------------------------------------------------------------------"
landscape-sysinfo
echo "-------------------------------------------------------------------------------"
free -h
echo "-------------------------------------------------------------------------------"
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 && apt autoremove && snap refresh
echo "\n+++ Cleaning Swap Space +++"
swapoff --all && swapon --all
exit 0