I am trying to script the end to end process of a new server build, setting up snap center, creating and connecting the default luns in windows.
Looking through the snap centre 2.0 cmdlet reference guide i have found all the commands I need and tested them separately however to create the lun it says to use new-sdlun
This doesn't appear to be part of the module that installs or any other netapp one I can find and i cannot find any more information on it, has any got any experience with this command?
New-sdvolume is there but no lun
any help appreciated
Solved! See The Solution
6 REPLIES 6
i guess you also imported the Snapdrive module, correct?
i'm asking to dobule check because some PS commands are not integrated with SnapCenter itself, and the new-sdlun is one of them.
This is a command that belong to Snapdrive
With the latest release, SDW can be installed as integrated mode or standalone mode. in integration mode only the intergrated commands are allowed to be executed and other commands will show a an error "This command is not supported in Snap Center plugin mode".
You can enable these commands to be working by enabling then using commandlet
Following are the example of enabling and disabling the commands not integrated with Snap center.
Sorry, I did leave out that important detail that i am getting the message on the snap center server itself
New-SdLun : This command is not supported in SnapCenter Plug-in mode
Thanks for the info relating to this, I am not able to enable the command on the snap center server
PS C:\Windows\system32> Set-StandaloneCommand
Set-StandaloneCommand : The term 'Set-StandaloneCommand' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
+ CategoryInfo : ObjectNotFound: (Set-StandaloneCommand:String) , CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
are you trying to do that on the plugin host or on the Snapcenter host?
anyway try to do in this way
import both modules, snapcenter and snapdrive
then open the connection with the command
instead the Set-StandaloneCommand use the following
let me know
Matte, why is there not a document that tells us all this. The powershell support for Snapcenter is lacking not to mention the documentation. Its fine to have a list of all the commands, and the bare minimum of connection info, but I'm trying to cobble together provisioning a Lun, mounting it, etc but there is not how to for it.
The snapcenter powershell modules seem just like rebranded SnapManager & Snapdrive cmdlets that have to be run on a host instead of loading the module on mylaptop to command many systems from one.. Now in v4.1 of Snapcenter, I'd think powershell would have been more refined.
Is there any work being done to clean this up and make it easier and better documented?