ONTAP Discussions

script to add initiators to netapp luns

TDUBB1234

I have about 100 luns that I need to add 4 new initiators to. is there a way to script this from command line rather than doing it lun by lun?

3 REPLIES 3

georgevj

You will add initiators to the "igroups", not "LUNs". Are those LUNs already mapped to any igroups? if so, adding the initiators to those igroups will map the LUNs to those hosts.

If the scenario is different,  we need to think about some other logic. It would be helpful if you can be precise about the requirement and your environment.

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Cannot find the answer you need? No need to open a support case - just CHAT and we’ll handle it for you.

TDUBB1234

hi

 

I have an igroup that consit of 3 servers

 

but I am adding 4 new servers but each of them have there own igroup due to the fact that they are boot from san. 

 

 

each lun I have currently have the igroup pf the old servers.

 

I want to add these new igroups of these new servers to the existing luns

 

and I only know how to go uder each lun/initiator and add the igroup from there

TDUBB1234

I have each servers intiators on their own igroup. So for every new server I bring up, there is a new igroup and I need to add these new igroups to existing luns

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public