Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a homegrown script that produces space usage reports using PowerShell Toolkit's Get-NaVol cmdlet; specifically the SizeUsed field. However, as we're migrating to CDOT, the corresponding Get-NcVol cmdlet doesn't have a SizeUsed field - only TotalSize, Available, and Used, the latter of which is a percentage of total rather than an absolute number. My knowledge of PowerShell is rather rudimentary - how do I take a 'Get-NcVol -vserver $something' command, and return the total GBs/TBs used?
Solved! See The Solution
1 ACCEPTED SOLUTION
borismekler has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That's because they embeded the volume attributes.. Check out get-ncvol | select *
You need to run something like this
get-ncvol testvol | select @{n='used';e={convertto-formattednumber ($_.VolumeSpaceAttributes).sizeused datasize "0.0"}}
used
----
352.0 KB
2 REPLIES 2
borismekler has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That's because they embeded the volume attributes.. Check out get-ncvol | select *
You need to run something like this
get-ncvol testvol | select @{n='used';e={convertto-formattednumber ($_.VolumeSpaceAttributes).sizeused datasize "0.0"}}
used
----
352.0 KB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ah, I see. That explains it, thank you.
