HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Application Integration
cancel
Showing results for 
Search instead for 
Did you mean: 

Volume Collection Powershell Script

 
SOLVED
Go to solution
ramkump2
Occasional Visitor

Volume Collection Powershell Script

Does anyone know how to create a volume collection snapshot through powershell, for individual volumes looks ok but I cant seem to get the syntax right to snap a volume collection and replicate it.

Im trying to use the Nimble powershell kit.

Thanks

<#

.Synopsis

   Creates a new
snapshot

.DESCRIPTION

   Takes a new
snapshot of a specified volume, allowing you to control if its writeable and if
its online or not.

.EXAMPLE

   Get-NSVolume -name testvol | New-NSSnapshot -name Test1
(need something like this for volume collections)

.EXAMPLE

   Another example of
how to use this cmdlet

#>

function New-NSSnapshot

{

  
[CmdletBinding()]

  
[OutputType([snap])]

    Param

    (

      
# New name for snapshot

      
[Parameter(Mandatory=$true,Position=0)]

      
[string]

      
$Name,

      
# volume you'd like to take a snapshot of. This uses a Vol objecct, for
pipeline use with other cmdlets

      
[Parameter(Mandatory=$true,Position=1,ValueFromPipeLine=$true,ParameterSetName="inobj")]

      
[vol]

      
$InputObject,

      
# Volume you'd like to take a snapshot of

      
[Parameter(Mandatory=$true,Position=1,ParameterSetName="volume")]

      
[string]

      
$Volume,

      
# Volume collection you'd like to take a snapshot of.

      
[Parameter(Mandatory=$true,Position=1,ParameterSetName="volumeCollection")]

      
[string]

      
$VolumeCollection,

      
$Description,

      
[switch]

      
$Online,

      
[switch]

      
$Writable

    )

    Begin

1 REPLY
aquaman27
Occasional Visitor
Solution

Re: Volume Collection Powershell Script

Paul,

Justin is still working on this functionality.  It's been a little more challenging than he expected, but I am trying to find him some additional resources to get this working.

Thanks,

Ryan