- Community Home
- >
- Storage
- >
- HPE Nimble Storage
- >
- Application Integration
- >
- Powershell to get lun IDs used in igroup?
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
Forums
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
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
05-24-2019 09:23 PM
05-24-2019 09:23 PM
Powershell to get lun IDs used in igroup?
Hi,
I'm trying to get the lun IDs used in an igroup. I can get a list of the volumes and the lun ids, but not really the IDs and the group. The different commands also change ID values, Get-NSInitiatorGroup looks to be using an ID for the igroup, but if you put that in a variable and pop it out by volume name it uses the vol id. I can see why these would be different just feel like i'm missing someting. I'd like to check if a lun id is in use before assigning it rather than picking one and having it error out or having to have someone select one.
I guess i could use a random number generator in a range, and if it errors out on a used lun id, have it regen and try again.
Thank you,
Pah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2019 08:54 AM
06-05-2019 08:54 AM
Re: Powershell to get lun IDs used in igroup?
Hello,
The place to look for lun IDs presented to the host I think would be the access map.... Get-NSAccessMap.
The command that will return the host seen LUN ID is called "Get-NSAccessControlRecord. It will map a Initiator Group to a Volume and assign a lun and the New-NSAccessControlRecord command offers the parameter to set the LUN any number you want.
i.e. New-NSAccessControlRecord -vol_name MyVol -initiator_group_id $ID -lun 3 the default is to use the next free LUN for that host.
