This commit is contained in:
conetadm
2024-11-14 21:11:06 +01:00
commit 5718e70f15
657 changed files with 9401652 additions and 0 deletions

34
rancid/asa-admin-clear Executable file
View File

@@ -0,0 +1,34 @@
#/bin/bash
echo Erst nach reboot sind alle Dateien sichtbar
echo Erst reboot einer ASA, die danach die standby Rolle hat
echo Dann Dateien löschen
echo Nächste ASA booten, die danach standby ist
echo Dann auch dort Dateien löschen
echo Danach sind die Rollen wieder wie vor den Vorgängen
echo
echo "speichere konfig asa (pri,act) und reboot"
clogin -c "reload save-config noconfirm" asa-admin-1
echo
echo "warte auf asa (pri,stdby)"
sleep 600
echo
echo "lösche logfiles der asa (pri,stdby)"
clogin -c "failover exec mate del /noconfirm disk0:/log/*" asa-admin-1
echo
echo "speichere konfig asa (sec,act) und reboot"
clogin -c "reload save-config noconfirm" asa-admin-1
echo
echo "warte auf standby der asa (sec,stdby)"
sleep 600
echo
echo "lösche logfiles der asa (sec,stdby)"
clogin -c "failover exec mate del /noconfirm disk0:/log/*" asa-admin-1
echo