WordPress per CLI updaten

Hallo, heute geht es um das automatisierte Update von WordPress.

Gerade wenn mehrere Seiten betrieben werden artet dies in Arbeit aus. Tools wie Infinite WP sind hier eine Option aber kostefrei nur beschränkt nutzbar.

#!/bin/bash

blacklist="test.santor.de test.santor.de"
rmfiles="wp-config-sample.php license.txt liesmich.html readme.html"
chmod -R g+w /var/www/*/httpdocs/*
cd /var/www

for domain in $(find . -name wp-config.php|awk -F'/' '{print $2}'|sort -u)
do
   count=$(echo $blacklist|grep $domain |wc -l)
   if [ $count -eq 0 ]; then
      echo "############################"
      echo "#  $domain"
      echo "############################"
      cd /var/www/$domain/httpdocs
      wp core update --allow-root
      wp plugin update --all --allow-root
      wp theme update --all --allow-root
      wp language core update --allow-root
      wp language plugin --all update --allow-root
      wp language theme --all update --allow-root
      for rmfile in $rmfiles; do
         if [ -f $rmfile ]; then
            rm $rmfile
         fi
      done
   fi
done
/root/scripts/wp-security.sh

Netapp Performance Überwachen

Es gibt im Netapp Universum diverse Tools wie Netapp Active IQ oder Netapp Cloud Insight um sich die Performance des System anzeigen zu lassen.

Monitoring per CLI

Manchmal reicht das Äquivalent des Top unter Linux:

Hier gibt es diverse Level.

Die Grundparameter des Gesamtsystems sieht man via

set -privilege advanced-> Umschaltung auf den Admin Mode

Warning: These advanced commands are potentially dangerous; use them only when directed to do so by NetApp personnel.Do you want to continue? {y|n}: y -> ja

statistics show-periodic

MyNetapp1: cluster.cluster: 3/9/2022 08:26:05 cpu cpu total fcache total total data data data cluster cluster cluster disk disk pkts pkts avg busy ops nfs-ops cifs-ops ops recv sent busy recv sent busy recv sent read write recv sent —- —- ——– ——– ——– ——– ——– ——– —- ——– ——– ——- ——– ——– ——– ——– ——– ——– 16% 25% 3250 0 3250 0 14.7MB 22.9MB 0% 1.69MB 9.15MB 0% 12.9MB 13.1MB 15.6MB 19.9MB 9196 12862

Granularer sieht mal dies im Kontext vserver

MyNetapp1::*> statistics vserver show -interval 5 -iterations 1 -max 25 -vserver vs_test

MyNetapp1 : 3/9/2022 08:29:30 *Total Read Write Other Read Write Latency Vserver Ops Ops Ops Ops (Bps) (Bps) (us)—————– —— —- —– —– ——– ——- ——-vs_test 5594 3058 276 1369 14919490 3519586 371

Wie gehe ich mit den Daten um?

Pausch kann man hier nichts sagen.

Zum Einen kommt es auf das verwendete System an kleine FAS <->grosse AFF, Spindeln oder SSD? Auch die Netzanbindung ist hier relevant. Die mögliche IO Leistung des Gesamtsystems kann man aus den Datenblättern entnehmen oder sich über die IO Leistung der einzelnen Discs ausrechnen. Latenzen sind immer ein Thema. Hier ist alles unter 10 ms gut. Relevat ist auf jeder Fall auch, ob es sich um Peeks handelt oder die Last grundsätzlich hoch ist.

Openoffice Dokument auf Briefpapier

Ich hatte die Anforderung Briefe zu erstellen die dann als PDf auf dem Firmenbriefpapier abgelegt bzw versand werden können.

Wie tue ich das?

Erst einmal normal den Brief via Openoffice schreiben.

Dann Briefpapier hinterlegen.

Menü – Format / Page-Style /Area Add-Import

Briefpapier aussuchen

Custome Style , Checkbox Scale

Jetzt fehlt nur noch das Erstellen der PDF.

Datei / Export as / PDF

Fertig

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close