Quantcast
Channel: VMware Communities : All Content - VMware vCenter™
Viewing all articles
Browse latest Browse all 24426

PowerCLI throw error when i try to count the totla linux VM

$
0
0


HI All,

 

when i try execute the Command on PowerCLI for count the total linux /windows VM ,it's throw error ,please if any Kown how to  fix the issue ,please share it.

 

Below are error Msg:

PS C:\Program Files\VMware\Infrastructure\vSphere PowerCLI> (Get-VMguest * | Where-Object {$_.OSFullName -like "*Linux*" }).Count | out-File C:\Users\xbblfl9\Desktop\CNJLinuxcount.txt
Get-VMGuest : 12/26/2013 12:21:02 PM    Get-VMGuest        The underlying connection was closed: An unexpected error occurred on a send.
At line:1 char:13
+ (Get-VMguest <<<<  * | Where-Object {$_.OSFullName -like "*Linux*" }).Count |
out-File C:\Users\xbblfl9\Desktop\CNJLinuxcount.txt
    + CategoryInfo          : NotSpecified: (:) [Get-VMGuest], ViError
    + FullyQualifiedErrorId : Client20_QueryServiceImpl_RetrievePropertiesEx_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVmGuest

Get-VMGuest : 12/26/2013 12:21:02 PM    Get-VMGuest        Value cannot be found for the mandatory parameter VM
At line:1 char:13
+ (Get-VMguest <<<<  * | Where-Object {$_.OSFullName -like "*Linux*" }).Count |
out-File C:\Users\xbblfl9\Desktop\CNJLinuxcount.txt
    + CategoryInfo          : NotSpecified: (:) [Get-VMGuest], VimException
    + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomatio
   n.ViCore.Cmdlets.Commands.GetVmGuest

PS C:\Program Files\VMware\Infrastructure\vSphere PowerCLI>

 

Thanks

 

Murali J


Viewing all articles
Browse latest Browse all 24426

Trending Articles



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