Microsoft Virtualization Discussions

DataOntap Powershell get-navol command

GNaiding
3,915 Views

Hi All,

 

I am trying to fetch the volume available space from the command get-NaVol.

 

$vol1=get-navol -name <volname> | select sizeavailable

 

It give the results

 

sizeavailable: 982983454

 

But I am not able to get the numeric value. Can this be truncated to just values?

 

Actually I am trying to compare two volume free spaces.

 

Please HELP me on this.

 

 

 

1 REPLY 1

JGPSHNTAP
3,897 Views

This is because you are specifically calling our a property...

 

You need to use the convertto-formattednumber cmdlet

 

 

Try this.

 

convertto-formattednumber (get-navol -name <volname>).sizeavailable datasize "0.0"

 

 

 

Public