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
Hi all,
I want to get the creation date of a volume running on a ONTAP 9.x system. I can get date from ONTAP shell but I need to get it from PowerShell.
Any help is apreciated.
David,
Solved! See The Solution
1 ACCEPTED SOLUTION
david_sole has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you want to see all the objects/properties use:
Get-NcVol -Name {volume_name} -Vserver {vServer_name} | Format-List
You'll see a "VolumeIdAttributes" object - to see the additional properties for the volume
(Get-NcVol -Name {volume_name} -Vserver {vServer_name}).VolumeIdAttributes
Finally, try this:
PS C:\> $vol=Get-NcVol {volume_name} -Vserver {vServer_name}
PS C:\> $vol.VolumeIdAttributes.CreationTimeDT
Sunday, November 25, 2018 5:07:40 PM
2 REPLIES 2
david_sole has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you want to see all the objects/properties use:
Get-NcVol -Name {volume_name} -Vserver {vServer_name} | Format-List
You'll see a "VolumeIdAttributes" object - to see the additional properties for the volume
(Get-NcVol -Name {volume_name} -Vserver {vServer_name}).VolumeIdAttributes
Finally, try this:
PS C:\> $vol=Get-NcVol {volume_name} -Vserver {vServer_name}
PS C:\> $vol.VolumeIdAttributes.CreationTimeDT
Sunday, November 25, 2018 5:07:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thats it!
Thank you so much,
David
