且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Using PowerCLI to get a Datastore from an NAA ID

更新时间:2022-09-19 15:26:31

This is just a quickie (mainly for my own notes in the future): if you ever need an easy way to figure out which datastore is being referenced by a given naa number (like if you're troubleshooting datastore access issues and the logs all reference that ID type), you can use this command to search it out:

get-datastore | ? {$_.ExtensionData.Info.Vmfs.Extent.Diskname -match "NAA NUMBER"}

本文转自学海无涯博客51CTO博客,原文链接http://blog.51cto.com/549687/1981318如需转载请自行联系原作者


520feng2007