NetApp snapmirror lagtime check cdot with PowerShell

# Snapmirror cleanup – update all snapmirrors with lagtime over one week and idle

$mirrors = @()

Get-NcSnapmirror | %{
$sm = “” | Select “Source”,”Destination”,”Status”,”State”,”LagTime”

$sm.Source = $_.SourceLocation
$sm.Destination = $_.DestinationLocation
$sm.Status = $_.Status
$sm.State = $_.MirrorState
$sm.LagTime = $_.LagTime

$mirrors += $sm

}

$mirrors

write-output $mirrors | export-csv snap.csv

# write-output $mirrors | Format-table -AutoSize

# write-Output $mirrors | where- {$sm.LagTime -gt 604800 -and $sm.Status -eq “idle”} | Format-Table -AutoSize

NetApp update shelf firmware cdot

From the CDOT CLI:

Change to the advanced privilege level:

set -priv adv

To download the firmware:

system firmware download -package http://web_server/all_shelf_fw.zip -nodenodename

To manually update the disk shelf firmware without rebooting:

system node run -node nodename -command storage download shelf

To manually update the ACPP firmware without rebooting:

system node run -node nodename -command storage download acp

~ from cosonoks’s blog