I can see how the same LUNid can appear for different LUNs, but it definitely doesn't in our case. I'm struggling to see why it would be setup like this elsewhere, but I am only familiar with our setup.
Thanks for the script this should be perfect for what I need to do.
Once again, many thanks for your valuable and generous assistance.