Hi,
Wondering if anyone would have an idea why the Guest.Disk.Capacity value for one of the VM appliances |OS: Other 2.6 Linux (64bit)| would return null?
VM is running 3rd-party VM tools and is HW ver 10
The VM has 2 Virtual Disks attached that are connected to a single paravirtual SCSI controller.
$vm = Get-View -ViewType "VirtualMachine" -Filter @{'Runtime.PowerState'='poweredOn'; 'name'='problemChild ' }
$size = $vm.Guest.Disk.Capacity
Write-Warning : Cannot bind argument to parameter 'Message' because it is null.
At line:1 char:15
+ Write-Warning $size
+ ~~~~~
+ CategoryInfo : InvalidData: (:) [Write-Warning], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.WriteWarningCommand
Thanks
No luck with FM....
class GuestInfo
{
ToolsStatus = toolsOk
ToolsVersionStatus = guestToolsUnmanaged
ToolsVersionStatus2 = guestToolsUnmanaged
ToolsRunningStatus = guestToolsRunning
ToolsVersion = 2147483647
ToolsInstallType =
GuestId = otherGuest64
GuestFamily = otherGuestFamily
GuestFullName = FortiManager(GA)
HostName = FortiManager.corp.local
IpAddress = 172.16.2.5
Net =
[
class GuestNicInfo
{
Network = MGMT
IpAddress =
[
172.16.2.5
]
MacAddress = 0a:42:56:a6:59:b6
Connected = True
DeviceConfigId = 4000
DnsConfig =
IpConfig =
class NetIpConfigInfo
{
IpAddress =
[
VMware.Vim.NetIpConfigInfoIpAddress
]
Dhcp =
AutoConfigurationEnabled =
}
NetBIOSConfig =
}
]
IpStack =
[
class GuestStackInfo
{
DnsConfig =
class NetDnsConfigInfo
{
Dhcp = False
HostName = FortiManager.corp.local
DomainName =
IpAddress =
[
172.16.2.1
172.16.2.2
]
SearchDomain =
}
IpRouteConfig =
class NetIpRouteConfigInfo
{
IpRoute =
}
IpStackConfig =
DhcpConfig =
}
]
Disk =
Screen =
class GuestScreenInfo
{
Width = 720
Height = 400
}
GuestState = running
AppHeartbeatStatus = appStatusGray
GuestKernelCrashed =
AppState = none
GuestOperationsReady = True
InteractiveGuestOperationsReady = False
GuestStateChangeSupported =
GenerationInfo =
}
Not 100% clear from the screenshot, but are there other properties missing?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I updated my earlier post with the entire output of the command
Thanks.
So it looks as if only the disk info is missing.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference