jr_2099
Contributor
Contributor

Get-Monitor cmdlet fails with no error code - "PowershellService::GetMonitor FAILED, error="

I had run few cmdlets such as Get-ViewVC, Get-connectionBroker and it executed successfully.

But following 3 commands got failed with same error.

Get-Monitors -Monitor CBMonitor

Get-Monitors -Monitor VCMonitor

Get-Monitors -Monitor DBMonitor

PowershellService::GetMonitor FAILED, error=
+ CategoryInfo : InvalidResult: (vmware.view.pow...lets.GetMonitor:GetMonitor) [Get-Monitor], Exception
+ FullyQualifiedErrorId : PowershellService::GetMonitor FAILED,vmware.view.powershell.cmdlets.GetMonitor

On checking VDM logs find some traces like below,

java.lang.IllegalArgumentException: Invalid type: ATTR_BROKER_CPU_USAGE_PERCENTAGE: INTEGER is not STRING
at com.vmware.vdi.tracker.TrackerObject.getItemChecked(TrackerObject.java:1359)
at com.vmware.vdi.tracker.TrackerObject.getItemChecked(TrackerObject.java:1334)
at com.vmware.vdi.tracker.TrackerObject.getString(TrackerObject.java:1378)
at com.vmware.vdi.coreadmin.monitor.CBMonitor.a(SourceFile:186)
at com.vmware.vdi.coreadmin.monitor.CBMonitor.getCPUUsagePercentage(SourceFile:464)
at com.vmware.vdi.coreadmin.monitor.CBMonitor.toPropertyBag(SourceFile:435)
at com.vmware.vdi.jadminservice.JAdmin.h(SourceFile:595)
at com.vmware.vdi.jadminservice.JAdmin$Worker.a(SourceFile:1079)
at com.vmware.vdi.jadminservice.JAdmin$Worker.MessageHandler(SourceFile:1056)

Not sure this will be the cause of failure of Get-Monitor cmdlet.

This was happened on version 7.13

Please share your views on the above error and any kind of solution if exists.

0 Kudos
1 Reply
fabio1975
Expert
Expert

Ciao 


I can't help you but just wanted to understand these PowerShell commands if they are native to the VMware Horizon infrastructure, because I don't know them.

0 Kudos