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

Powercli equivilant to esxcfg-volume -l

$
0
0

Hi All,

 

I have a recovery site with replicated luns, and I am in the process of creating scripts to help automate the recover.  Long term we will be using SRM, but until we get there I am trying to script to list out all of the mounted and recovered LUNs, which can be mounted without resignaturing.  From the command line it is

 

'esxcfg-volume -l' to list out the vmfs uuids which can be mounted

 

'esxcfg-volume -m VolumeName' to mount the volume.

 

At this point I cant figure out how from powerCLI to get the list made in esxcfg-volume -l.

I have looked at https://communities.vmware.com/thread/330817 and tried the

 

$dsView.QueryUnresovledVmfsVolumes() but it returns nothing.  Even though if I do the esxcfg-volume -l it returns tons of stuff.

 

Many thanks for the help


Viewing all articles
Browse latest Browse all 175326

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>