#SnapMirror LagTime returns strange value...

1 messages · Page 1 of 1 (latest)

chilly yew
#

Using the latest NetApp.ONTAP Toolkit, with the get-ncsnapmirror I get strange values in the LagTime variable returned... Example is: "PT18H4M26S"
This should be 18:04:26 is there a way to "fix" this, or do I have to fix it with some char-replacement thingy?

chilly yew
#

Would be nice if it could return x-hours.... I guess the string returned makes some sense, but I fear that if I start to change the string, I will have to take into account days and months values?

desert beacon
west vine
#

How do you get that output? I'm running PSTK 9.14.1 and I'm getting it in seconds.

#

PS C:\Users\Home> Get-Module -Name NetApp.ONTAP

ModuleType Version PreRelease Name ExportedCommands


Manifest 9.14.1.24… NetApp.ONTAP {Add-NaAggr, Add-NaCifsShare, Add-NaCredential, A…

PS C:\Users\Home> Get-NcSnapmirror -ONTAPI | Select-Object LagTime

LagTime

3350

3350

PS C:\Users\Home>

#

Mostly curious. 🙂

steep coral
desert beacon
junior pasture
#

I use the following. connect-nccontroller <IP> Then to get the lag time Get-NcSnapmirror | Select-Object SourceLocation, Status, RelationshipStatus, IsHealthy, @{Name='LagTime (min)'; e= {[math]::Round(($_.Lagtime/60),2)}} | Sort-Object SourceLocation | ft

raw igloo
#

I don't have a snapmirror to check myself, but here's how I'd handle it: