Hi
i have a nightly script that checking my internal standards (see below). one of them is that a healthy relationship exists for each volume on all my clusters (which will then be monitored for LAGs in OCUM). where i have "$_.group.IsHealthy -contains $false", you can likely also add something like "or $_.group.policy -contains $null" (i didn't checked!). note that his report will not pick up any volumes without snapmirror at all (i have monthly report in OCUM for that)
$SnapMirrors = Get-NcSnapmirror -Controller $clustersSessions
$SnapMirroredVolumesThatDontHaveHealthyCopiesOnDRBKAndRBSVMs = ($SnapMirrors | ? { ($_.DestinationVserver -match "DR|RB|BK") } | group SourceVolume | ? {($_.group.DestinationVserver | select -Unique).count -ne 3 -or $_.group.IsHealthy -contains $false} | ? name -NotMatch "_Root")
The main idea in the script is to catch things that i know i/other might forget and that have caused issues before. the script is a bit too customized to my company to share it all as-is, but if you want more snipps - send me a DM.
Description
-----------
CNAMEs pointing to SVMs with high TTL
CNAMEs missing valid SPNs
Sessions using old CIFS protocols
CIFS Shares that don't have exact match configuration in between DR and PROD
Qtrees without quota
Quota Errors Reported on Volumes
Soft limit quota breaches found
Volumes with quota is set on the qtree but disabled on the Volume
Quota SoftLimit And Threshold Need Alignment
Quota limit seems to be too high
Quota has not yet calculated for some Qtrees
Fpolicy is set on SVM but not connected
Fpolicy policy is set on SVM but not enabled
Snapshot reserve is not set on all the copies equally
The Volume snapshot reserve is set to too higher than the current snapshot usage
SVM root volume don't have copies on all nodes
SnapMirrored Volumes that don't have healthy copies on DR BK and RB SVMs