xacolabril
Expert
Expert

Determining Storage Type with PowerCLI

Jump to solution

Hello,

  it's possible to determine Storage type (Clariion, Symmetrix, etc.) with the vml or naa identifiers? exists another way to determine Storage type?

vml.0200000000 60060480000190300919533030304133 53594d4d4554

naa.60060480000190300919533030304133

Thank you in advance.

Best regards!

Xavier Colomé Abril. VMware Certified Professional VCP3, VCP4 and VCP5. [Si encuentras que esta o cualquier otra respuesta ha sido de utilidad, vótalas. Gracias.] [If you find this or any other information helpful or correct, please consider awarding points. Thank you.]
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

Yes, that is possible.

You could do something like this

$storageVendors = @{

"60060480"="EMC";

"60050768"="IBM"

}

Get-VMHost MyEsx | Get-ScsiLun |

Select CanonicalName,

    @{N="Vendor";E={$storageVendors[$_.CanonicalName.Split('.')[1].SubString(0,8)]}}

You would have to compile a complete table of IDs and vendors of course.

But I'm wondering why you would like to do that, since the information is already present

Get-VMHost MyEsx | Get-ScsiLun |

Select CanonicalName,Vendor


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership

Yes, that is possible.

You could do something like this

$storageVendors = @{

"60060480"="EMC";

"60050768"="IBM"

}

Get-VMHost MyEsx | Get-ScsiLun |

Select CanonicalName,

    @{N="Vendor";E={$storageVendors[$_.CanonicalName.Split('.')[1].SubString(0,8)]}}

You would have to compile a complete table of IDs and vendors of course.

But I'm wondering why you would like to do that, since the information is already present

Get-VMHost MyEsx | Get-ScsiLun |

Select CanonicalName,Vendor


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
xacolabril
Expert
Expert

Thanks LucD. You are absolutely right. I had not thought to obtain the "Vendor" directly.


Thank you

Xavier Colomé Abril. VMware Certified Professional VCP3, VCP4 and VCP5. [Si encuentras que esta o cualquier otra respuesta ha sido de utilidad, vótalas. Gracias.] [If you find this or any other information helpful or correct, please consider awarding points. Thank you.]
0 Kudos