In Kürze bekommt der Check Snapshots einen weiteren Schalter: ‑‑snapmirror_label_matches
Mit diesem lassen sich Auswertungen betreffend den Platzverbrauch oder auch die Anzahl auf Basis des snap-mirror-lable durchführen. Somit kann auch gezielt nach Snapshots gesucht werden, die kein snap-mirror-lable haben.
Folgend ein paar Beispiele:
$ ./check_netapp_pro.pl Snapshots ...
NETAPP_PRO SNAPSHOTS OK - 30 snapshots on 3 volumes checked.
vol12: 3.3% / 10 snapshots
vol11: 3.3% / 10 snapshots
vol0: 0.0% / 10 snapshots
# consider only weekly snapmirrors
$ ./check_netapp_pro.pl Snapshots ... ‑‑snapmirror_label_matches=weekly
NETAPP_PRO SNAPSHOTS OK - 6 snapshots on 3 volumes checked.
vol11: 0.6% / 2 snapshots
vol12: 0.6% / 2 snapshots
vol0: 0.0% / 2 snapshots
# find snapshots with no snapmirror-label set (^$ matches the empty string)
$ ./check_netapp_pro.pl Snapshots ... ‑‑snapmirror_label_matches=^$
NETAPP_PRO SNAPSHOTS OK - 18 snapshots on 3 volumes checked.
vol11: 2.1% / 6 snapshots
vol12: 2.1% / 6 snapshots
vol0: 0.0% / 6 snapshots
Dieser Schalter wird voraussichtlich in der Version 3.3.0 verfügbar sein.