How to check the number of active virtual machine console connections
search cancel

How to check the number of active virtual machine console connections

book

Article ID: 442151

calendar_today

Updated On:

Products

VMware vSphere ESXi VMware vCenter Server

Issue/Introduction

This article provides methods to determine the current number of active console connections to a virtual machine.

Environment

VMware vSphere 8.x

Resolution

Use the Managed Object Browser (MOB), VMware PowerCLI, or the ESXi Shell to verify the connection count.

Using the vCenter Server MOB:

  1. Identify the moid of the virtual machine.
    • Select the virtual machine in the vSphere Client.
    • Identify the moid from vm-### in the URL.
  2. In a web browser, navigate to the following URL to verify the numMksConnections value:
    https://<vCenter Server IP or FQDN>/mob/?moid=vm-###&doPath=runtime
    • Replace vm-### with the moid identified in Step 1.
    • Log in to the vCenter Server MOB using the [email protected] account.

Using PowerCLI:

  1. In PowerCLI, run the following command to verify the value:
    (Get-VM -Name "VM Name").ExtensionData.Runtime.NumMksConnections

Using the ESXi Shell:

  1. Log in to the ESXi host via SSH as the root user.
  2. Run the following command to verify the virtual machine Vmid:
    vim-cmd vmsvc/getallvms
  3. Using the Vmid, run the following command to verify the numMksConnections value:
    vim-cmd vmsvc/get.runtime <Vmid> | grep numMksConnections

Additional Information

仮想マシンのコンソール接続数を確認する方法