Whenever we perform EOW of storage array controller, we are performing datastore migration from OLD datastore to NEW datastore.
After migraion, we are informing Storage team to reclaim those LUNs during that stage, they always double check with us, whether these LUNs can be reclaimed or not. We used to manually check, if these LUNs are detached or not and confirming them.
Always they used to give us LUN ID as below
isrtpxiv32 7811090_01e2 (thp_474) RAID1 1 4388000
isrtpxiv32 7811090_0d8d (thp_630) RAID1 4 4388000
isrtpxiv32 7811090_3b44 (thp_606) RAID1 2 4388000
isrtpxiv32 7811090_3b45 (thp_607) RAID1 3 4388000
Where LUN ID is = 01e2, 0d8d 3b44 3b45 and NAA ID will have these strings ex: NAA.6742b0f0000004530000000000003b45, NAA.6742b0f0000004530000000000003b44.
Now i want to automate this to avoid manual error.
Whenever they give as LUN ID, i would like to check, those string contains LUN(NAA ID) is in place or detached.
Please help me on this.
Always they used to give us LUN ID as below
isrtpxiv32 7811090_01e2 (thp_474) RAID1 1 4388000
isrtpxiv32 7811090_0d8d (thp_630) RAID1 4 4388000
isrtpxiv32 7811090_3b44 (thp_606) RAID1 2 4388000
isrtpxiv32 7811090_3b45 (thp_607) RAID1 3 4388000
Where LUN ID is = 01e2, 0d8d 3b44 3b45 and NAA ID will have these strings ex: NAA.6742b0f0000004530000000000003b45, NAA.6742b0f0000004530000000000003b44.
Now i want to automate this to avoid manual error.
Whenever they give as LUN ID, i would like to check, those string contains LUN(NAA ID) is in place or detached.
Please help me on this.