- Community Home
- >
- Storage
- >
- HPE Nimble Storage
- >
- Array Setup and Networking
- >
- automate creating of initiator groups and iscsi in...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2018 08:20 AM
06-25-2018 08:20 AM
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
- Tags:
- powershell
- Toolkit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2019 08:11 AM - last edited on 04-01-2019 11:51 PM by Parvez_Admin
04-01-2019 08:11 AM - last edited on 04-01-2019 11:51 PM by Parvez_Admin
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"}