Commit 1ae560ff authored by Martin Mai's avatar Martin Mai
Browse files


parent 2e299035
## tasks checkliste patches manuell einspielen und server restarten
### patches einspielen
ssh root@141.13.<salt-master-ip>
touch /root/
#salt -E "$target" pkg.list_upgrades
salt -E "$target" pkg.upgrade dist-upgrade
#### restart
salt -E "$target" /usr/lib/update-notifier/update-motd-reboot-required
salt -E "$target" '/usr/lib/update-notifier/update-motd-reboot-required
| egrep "System restart required|Neustart des Systems erforderlich" && ! find /root/* && init 6'
sh /root/
## Wartung
### / Info
salt "$target" uptime
salt "$target" 'find /root/* '
salt "$target" pkg.list_repos
salt "$target" pkg.refresh_db
salt "$target" pkg.info_installed update-notifier-common
salt -E "$target" disk.usage
salt -E "$target" disk.percent /var
salt -E "$target" status.meminfo
salt -E "$target" stauts.diskusage
salt -E "$target" status.loadavg
salt -E "$target" status.meminfo
# Platz freigeben
#belegung anschauen
du -h --total --max-depth=1 /var 2>temp.2
du --exclude=/var/moodledata-moodle-upgrade --max-depth=1 /var/lib/ | sort -n
du --max-depth 2 --one-file-system /var/log/ | sort -n -r
#Unbenutzte Linux Kernel Headers und Module entfernen
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment