Array Setup and Networking
1827810 Members
2721 Online
109969 Solutions
New Discussion

Re: Get the creation date of volume's

 
SOLVED
Go to solution
jthave97
Occasional Contributor

Get the creation date of volume's

Hi,

Is there a way how to get the creation date of the volumes on an array, by example commanline of powerhsell toolkit?

3 REPLIES 3
wvanhoolst45
Valued Contributor
Solution

Re: Get the creation date of volume's

Hi Jeroen,

Yes, you can get the creation date of a volume by typing next command :

vol --info volumename

and the creation time will show up together with a lot of other usefull information.

Have fun

Chris_Lionetti
HPE Pro

Re: Get the creation date of volume's

If you want the powershell method to retrieve this data, use the following PowerShell command

Connect-NsGroup -group IPADDRESS -cred $(get-credential)

(Get-NsVolume -name VolName).id | Get-Date 

The reason you need to pipe the output of the creation time to the Get-Date command is because the creation time is stored in epoch format, and Get-Date will convert it to human friendly terms.

Chris Lionetti
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
jthave97
Occasional Contributor

Re: Get the creation date of volume's

Hi I've tried this but I'm not getting any output.....