ONTAP Discussions

Disk Stats for Hours running

JGPSHNTAP
4,110 Views

I'm curious if there is a quick way to determine how long the disks have actually  been spinning.. I was kind of looking to see how long they've been spinning vs expected life of them

Thanks

1 ACCEPTED SOLUTION

JGPSHNTAP
4,110 Views

This did the trick -

get-nadisk | ? {$_.status -ne "partner" } | %  {

write-host "Name: " $_.name "`tDays Disk powered on:" ("{0:N0}" -f ( $_.poweronhours / 24 ))

}

View solution in original post

3 REPLIES 3

aborzenkov
4,110 Views

Storage show disk will display total power on time. I guess this comes close to what you ask.

JGPSHNTAP
4,110 Views

Ah, you kick started my brain... I found what I needed and the associated API I was looking for. 

JGPSHNTAP
4,111 Views

This did the trick -

get-nadisk | ? {$_.status -ne "partner" } | %  {

write-host "Name: " $_.name "`tDays Disk powered on:" ("{0:N0}" -f ( $_.poweronhours / 24 ))

}

Public