A PowerCLI script include a statemet like:
get-vm $myvm | new-snapshot -name $mysnapshotname -Description $mysnapshotdescription
How can i check that the snapshot was created correctly and that I can trust it?
Regards
marius
The New-Snapshot cmdlet will return a Snapshot object when all went well.
If that object is not returned, something went wrong.
Besides reverting to a snapshot, there are not really any other methods of testing the consistency of the snapshot that was taken.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
The New-Snapshot cmdlet will return a Snapshot object when all went well.
If that object is not returned, something went wrong.
Besides reverting to a snapshot, there are not really any other methods of testing the consistency of the snapshot that was taken.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Many thanks.
Let me ask a further clarification: how can I inspect the returned object?
I made a test writing:
$mysnapshot = new-snapshot -VM $myvm -name $mysnapshotname -Description $mysnapshotdescription
$mysnapshot | get-member
but it doest not work...
Regards
marius
What exactly does not work?
Don't you get any output from the Get-Member?
Is $mysnapshot empty?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference