Thanks.. And because I don't like to check myself I wrote this powershell script that emails me the status.
The ontap module is required of course.
param($cluster,$emailaddress,$smtpserver)
if ($global:CurrentNcController.name -ne $cluster){connect-nccontroller $cluster}
$subject = 'Report: Disk Replace Status'
$from = 'No-Reply@mydomain.com'
$diskinfo = @()
foreach ($disk in get-ncdisk | where-object { $_.diskraidInfo.diskaggregateinfo.IsReplacing -eq $true })
{
$diskinfo += [PSCustomObject]@{
Disk = $disk.name
Aggregate = $disk.aggregate
RaidGroup = $disk.DiskRaidInfo.DiskAggregateInfo.Raidgroupname
CopyDestinationName = $disk.DiskRaidInfo.DiskAggregateInfo.CopyDestinationName
CopyPercentComplete = $disk.DiskRaidInfo.DiskAggregateInfo.CopyPercentComplete
}
}
if ($diskinfo)
{
$messageParameters = @{
Subject = $subject
Body = $diskinfo | Sort-Object -Property CopyPercentComplete -Descending | select Aggregate, RaidGroup, Disk, CopyDestinationName, CopyPercentComplete | ConvertTo-HTML | Out-String
From = $from
To = $emailaddress.split(",")
SmtpServer = $smtpserver
}
}
else
{
$messageParameters = @{
Subject = $subject
Body = "There are no Disk Replaces Occuring"
From = $from
To = $emailaddress.split(",")
SmtpServer = $smtpserver
}
}
Send-MailMessage @messageParameters -BodyAsHtml