Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 179681

How to certain disable iSCSI paths

$
0
0

I have a few hosts with an iSCSI initiator and several luns from a couple different SANs. I'm trying to find as way to disable selected paths but can't get anything to work by piecing together what I've found online.

 

I don't mind hard coding a target or vmbha number and running the script a few times.

 

If you refer to the attached picture, I need to disable certain targets for a given runtime name. In this example, I need to disable targets ending in .72 or .172 on all the C0 paths and disable all the .71 and .171 targets on the C1 paths. (for a different array thre will be different IPs but the C0/C1 stuff remains the same)

 

 

To do it manually it's easy as I just sort by runtime name and then look at the target field and disable accordingly but doing it via powercli is proving elusive for me.

 

The only thing I can guarantee is the IP address in the target and the C0/C1 part of the runtime name. Everything else might change, ie. the order of the paths.

 

Anyone ever do something like this before and can share some code?

 

Thanks


Viewing all articles
Browse latest Browse all 179681

Trending Articles