3PAR Users Group

A Storage Administrator Community




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: MB to GB - 3PAR Powershell Toolkit
PostPosted: Sun Mar 19, 2017 2:09 am 

Joined: Fri Dec 05, 2014 6:42 am
Posts: 163
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


Top
 Profile  
Reply with quote  
 Post subject: Re: MB to GB - 3PAR Powershell Toolkit
PostPosted: Sun Mar 19, 2017 2:10 pm 

Joined: Sun Dec 21, 2014 3:05 pm
Posts: 63
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: MB to GB - 3PAR Powershell Toolkit
PostPosted: Sun Mar 19, 2017 8:08 pm 

Joined: Fri Dec 05, 2014 6:42 am
Posts: 163
Thank you natekippen.

Let me try and get back to you.

Regards,
KK


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group | DVGFX2 by: Matt