This article provides methods to determine the current number of active console connections to a virtual machine.
VMware vSphere 8.x
Use the Managed Object Browser (MOB), VMware PowerCLI, or the ESXi Shell to verify the connection count.
Using the vCenter Server MOB:
vm-### in the URL.numMksConnections value:https://<vCenter Server IP or FQDN>/mob/?moid=vm-###&doPath=runtimevm-### with the moid identified in Step 1.Using PowerCLI:
(Get-VM -Name "VM Name").ExtensionData.Runtime.NumMksConnectionsUsing the ESXi Shell:
vim-cmd vmsvc/getallvmsnumMksConnections value:vim-cmd vmsvc/get.runtime <Vmid> | grep numMksConnections