Identify the source IP Address of a vCenter or Virtual Machine shutdown task in VMware vCenter Server
search cancel

Identify the source IP Address of a vCenter or Virtual Machine shutdown task in VMware vCenter Server

book

Article ID: 433835

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • A VMware vCenter Server or a Virtual Machine (VM) is unexpectedly powered off or shut down.

  • The vSphere Client task history shows the task was initiated by a service account (e.g., [email protected]).

  • There is a requirement to identify the network source (Client IP address) that triggered the shutdown.

  • Virtual Machine > Monitor > Tasks shows the "Initiate Guest OS Shutdown" task with the user account which initiated the task as shown in the screenshot below:




  • vCenter log /var/log/vmware/vpxd/vpxd.log shows the task details as below:

    YYYY-MM-DDTHH:MM:SS.###Z info vpxd[PID] [Originator@6876 sub=vpxLro opID=6#######4] [VpxLRO] -- BEGIN task-3##9##6 -- vm-##### -- vim.VirtualMachine.shutdownGuest -- 5######6-2##c-1##4-1##5-a##########2(5######8-e##b-1##c-2##2-5##########6)

Environment

  • VMware vCenter Server 7.x
  • VMware vCenter Server 8.x
  • VMware vCenter Server 9.x

Cause

Automation tools, migration services (such as VMware HCX), or third-party scripts using administrative credentials can initiate power tasks. When a user or service connects to the vCenter vpxd service, a Session ID is created. vCenter logs the username and source IP address for every session, which allows specific tasks to be traced back to the originating device.

Resolution

  1. Identify the Managed Object ID (MoID)
    1. Log in to the vSphere Client.
    2. Select the affected vCenter Server VM or Virtual Machine from the inventory.
    3. Identify the MoID from the browser URL (e.g., VirtualMachine:vm-12345).

        Note: For vCenter Server Appliances, the MoID is typically the VM identifier assigned during deployment.

    2. Locate the Session ID in vpxd logs

    1. Log in to the vCenter Server via SSH.
    2. Navigate to the vpxd log directory: /var/log/vmware/vpxd/.
    3. Use grep to locate the shutdown task using the MoID identified in the previous step: grep -i "vim.VirtualMachine.shutdownGuest" vpxd.log | grep -i <MoID>
    4. The resulting log entry will contain a Session ID (UUID string). Example log segment: ... -- BEGIN task-#### -- vm-12345 -- vim.VirtualMachine.shutdownGuest -- 5######6-2##c-1##4-1##5-a##########2((...)

   3. Trace the Client IP in vpxd-profiler logs

    1. Search for the specific Session ID in the /var/log/vmware/vpxd/vpxd-profiler.log (or compressed .gz files if the event occurred earlier): grep "<Session_ID>" vpxd-profiler.log | grep ClientIP
    2. The output will display the Username and the ClientIP associated with the session that triggered the task. Example output: .../Session/Id='5######6-2##c-1##4-1##5-a##########2('/Username='VSPHERE.LOCAL\Administrator'/ClientIP='##.#.#.##'/...
    3. Cross-reference the identified Client IP with the network inventory to confirm the source (e.g., an HCX Manager appliance, backup proxy, or management workstation etc).

Additional Information

In automated workflows such as VMware HCX Bulk Migration, the appliance may initiate a shutdownGuest command to the source VM to ensure data consistency during the final replication sync before cutover. This activity is expected behavior for such migration services.