Page 1 of 1

MB to GB - 3PAR Powershell Toolkit

Posted: Sun Mar 19, 2017 2:09 am
by kk2491
Hi All,

Good day.

I am writing a script to schedule the weekly disk space report.

Get-3parSRPDSpace.

I am getting the output in MBs, is there any way i can convert it to GBs.

Thanks in advance.

Regards,
KK

Re: MB to GB - 3PAR Powershell Toolkit

Posted: Sun Mar 19, 2017 2:10 pm
by natekippen
Nope. You'll need to do the math using select-object and defining a new property. @{n="SizeGB";e={$_.size / 1024}}

Something to that effect.

Re: MB to GB - 3PAR Powershell Toolkit

Posted: Sun Mar 19, 2017 8:08 pm
by kk2491
Thank you natekippen.

Let me try and get back to you.

Regards,
KK