Array Setup and Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

Automate Windows iSCSI Connections

 
Highlighted
Trusted Contributor

Automate Windows iSCSI Connections

This script will work on Windows Server 2003, 2008, 2008R2, and 2012 with the native software iSCSI initiator. Any Nimble volumes accessible to the server will be mapped with all possible paths.

NOTE!

By default PowerShell scrips are disabled from running. You must set the PowerShell ExecutionPolicy to from Restricted to at least AllSigned. Please see this MS KB for more information : Using the Set-ExecutionPolicy Cmdlet Also it may be necessary to run this script from a PowerShell session launched with Administrator privileges.

18 REPLIES 18
Highlighted
Valued Contributor

Re: Automate Windows iSCSI Connections

This script is great to use with customers/partners that bring up MPIO setup as a potential blocker to our solution. Great work Adam!

Highlighted
HPE Blogger

Re: Automate Windows iSCSI Connections

Nice work Adam - it works every time.

Only question I have is if it would be possible to automate the failover policy to Least Queue Depth vs the Round Robin it defaults to?

A blog available on the web seems to have found a way to do this... Connecting MPIO iSCSI Targets via Powershell… and a bit of dirty VBscript.

Nick Dyer
Nimble Field CTO & Evangelist

twitter: @nick_dyer_
Highlighted
Trusted Contributor

Re: Automate Windows iSCSI Connections

Absolutely, it's very possible. I have an update that I'll post soon and that will be a part of it.

Highlighted
Occasional Contributor

Re: Automate Windows iSCSI Connections

Thanks for the Script. Does this script automatically detect the Initiators and Nimble Target and maps them or we manually need to key in the parameters?

Highlighted
HPE Blogger

Re: Automate Windows iSCSI Connections

Hey Sathish,

The script will automatically detect the Nimble volumes presented and will map/MPIO them for you. Give it a go on a windows VM - works perfectly!

Nick Dyer
Nimble Field CTO & Evangelist

twitter: @nick_dyer_
Highlighted
New Member

Re: Automate Windows iSCSI Connections

When using this script, you would first have to define allowed connections to the Nimble volume through the web interface, right?

Highlighted
HPE Blogger

Re: Automate Windows iSCSI Connections

Hi Hakan,

If i'm reading your question right - yes you have to configure your access control list correctly in the Nimble GUI/CLI for your host before you run the script on said host.

Nick Dyer
Nimble Field CTO & Evangelist

twitter: @nick_dyer_
Highlighted
New Member

Re: Automate Windows iSCSI Connections

That's exactly what I meant. Thanks

Highlighted
Not applicable

Re: Automate Windows iSCSI Connections

Adam,

I'm trying to run my script.  I ran the Set-ExecutionPolicy RemoteSigned and then i tried launching the NimbleMPIO script but get this.  Any suggestions?

mpio.png