can any body tell me the command and the way through which i can generate the report which contains all the information
number of luns visible on esx server .
size of all the luns.
and 1 more thing is that some tiome my host luns are not visible on vc server console so i want to generate a report which conatain connection break time beetween esx and storage lun if any.
and if your have different option then please provide .
Please give me power shell command also.
you can do the following on the console:
this would give you most info you are looking for, but a centrally scheduled and managed system is easier. I will move your topic to the powershell forum.
Huge Peeters has some usefull scripts available:
And this script can also come in handy:
VMware Communities User Moderator
If you find this information useful, please award points for "correct" or "helpful".
Have a look at the script in , it links the datastore with the LUN and also gives the disksize.
The script in emulates the esxcfg-mpath command.
Thanks For Reply CHAMP,
but i m adding some thing more to my requirement.
actually we are facing some issue regarding LUN visibility on all host on same cluster . please tell me is thre any command or tool from VMWARE through which i can generaqte a rport of few days through which i can identify which of the luns are got unvisible form my hosts on which times and more when it visible again on same host.
When these LUNs go away and come back are there any messages in the VIC ? Under ?
The reason for asking is that if there are messages in the VIC you could use the Get-ViEvent cmdlet to get at the event(s).
And from there create a report.
Thanks for reply.
no Such option in VI.
can be generate this report from esx host
That's possible when you connect to an ESX server instead of to the VC server.
These are the logs that are accessible from within the VITK: hostd, messages, vmkernle, vmksummary, vmkwarning and vpxa.
Get the list with this script.
$esx = Connect-VIServer -Server <ESX-server> -User <user> -Password <password> Get-LogType Disconnect-VIServer -Server $esx -confirm:$false
Any LUN messages in any of these logs ?