Array Setup and Networking
1827845 Members
1258 Online
109969 Solutions
New Discussion

Re: automate creating of initiator groups and iscsi initiator values

 
Kassim
Occasional Contributor

automate creating of initiator groups and iscsi initiator values

Hi,

i am trying to automate the creation of initiator groups using nimble powershell toolkit and wanted to know if i can "fully automate it" by including information such as "target_subnets" and "iscsi_initiators" 

i know i can use 

is it possible to use nimble powershell toolkit to auto create initiator groups with information such as "target_subnets" and "iscsi_initiators" and pull the information from a text file?

i know i can script creating multiple initiator groups and that works:

"New-NSInitiatorGroup -name $init-names -access_protocol iscsi

but wanted to also include the following paramters as well

New-NSInitiatorGroup -name TST1 -access_protocol iscsi -target_subnets xx -iscsi_initiators xx

i am not sure how to do that.

any suggestions would be appreciated.

Thanks

1 REPLY 1
Johannes_we
Frequent Advisor

Re: automate creating of initiator groups and iscsi initiator values

Hi @Kassim ,

It´s a bit late but as i was coming across your post while i was looking for a solution here is the answer.

New-NSInitiatorGroup -name IG-iSCSI -access_protocol iscsi -iscsi_initiators @{label="Hostname";ip_address="192.168.0.1";iqn="iqn.2007-11.com.storage:zmytestvol1-v0df0fe6f7d"} -target_subnets @{label="management"}

For FibreChannel it´s

New-NSInitiatorGroup -name test -access_protocol fc -fc_initiators @{alias="Hostname";wwpn="12:34:56:78:90:ab:cd:ef"}