Skip to content

Instantly share code, notes, and snippets.

@embano1
Last active May 5, 2021 11:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save embano1/981bb15802f8b9aa45af3f493a78fc50 to your computer and use it in GitHub Desktop.
Save embano1/981bb15802f8b9aa45af3f493a78fc50 to your computer and use it in GitHub Desktop.
Example vSphere Events

VmMigratedEvent

About

Data

Event Structure
{
  "Key": 3315,
  "ChainId": 3312,
  "CreatedTime": "2021-05-05T09:26:33.252Z",
  "UserName": "VSPHERE.LOCAL\\Administrator",
  "Datacenter": {
    "Name": "vcqaDC",
    "Datacenter": {
      "Type": "Datacenter",
      "Value": "datacenter-2"
    }
  },
  "ComputeResource": {
    "Name": "cls",
    "ComputeResource": {
      "Type": "ClusterComputeResource",
      "Value": "domain-c7"
    }
  },
  "Host": {
    "Name": "10.184.168.169",
    "Host": {
      "Type": "HostSystem",
      "Value": "host-33"
    }
  },
  "Vm": {
    "Name": "test-vm-01",
    "Vm": {
      "Type": "VirtualMachine",
      "Value": "vm-56"
    }
  },
  "Ds": {
    "Name": "sharedVmfs-0",
    "Datastore": {
      "Type": "Datastore",
      "Value": "datastore-34"
    }
  },
  "Net": null,
  "Dvs": null,
  "FullFormattedMessage": "Migration of virtual machine test-vm-01 from 10.184.167.152, sharedVmfs-0 to 10.184.168.169, sharedVmfs-0 completed",
  "ChangeTag": "",
  "Template": false,
  "SourceHost": {
    "Name": "10.184.167.152",
    "Host": {
      "Type": "HostSystem",
      "Value": "host-21"
    }
  },
  "SourceDatacenter": {
    "Name": "vcqaDC",
    "Datacenter": {
      "Type": "Datacenter",
      "Value": "datacenter-0"
    }
  },
  "SourceDatastore": {
    "Name": "sharedVmfs-0",
    "Datastore": {
      "Type": "Datastore",
      "Value": "datastore-34"
    }
  }
}

com.vmware.vc.vm.VmHotMigratingWithEncryptionEvent

About

Data

Event Structure
{
 "Key": 3313,
 "ChainId": 3312,
 "CreatedTime": "2021-05-05T09:26:26.969Z",
 "UserName": "VSPHERE.LOCAL\\Administrator",
 "Datacenter": {
   "Name": "vcqaDC",
   "Datacenter": {
     "Type": "Datacenter",
     "Value": "datacenter-2"
   }
 },
 "ComputeResource": {
   "Name": "cls",
   "ComputeResource": {
     "Type": "ClusterComputeResource",
     "Value": "domain-c7"
   }
 },
 "Host": {
   "Name": "10.184.167.152",
   "Host": {
     "Type": "HostSystem",
     "Value": "host-21"
   }
 },
 "Vm": {
   "Name": "test-vm-01",
   "Vm": {
     "Type": "VirtualMachine",
     "Value": "vm-56"
   }
 },
 "Ds": {
   "Name": "sharedVmfs-0",
   "Datastore": {
     "Type": "Datastore",
     "Value": "datastore-34"
   }
 },
 "Net": null,
 "Dvs": null,
 "FullFormattedMessage": "Hot migrating test-vm-01 from 10.184.167.152,sharedVmfs-0 in vcqaDC to 10.184.168.169, sharedVmfs-0 in vcqaDC withencryption",
 "ChangeTag": "",
 "EventTypeId": "com.vmware.vc.vm.VmHotMigratingWithEncryptionEvent",
 "Severity": "info",
 "Message": "",
 "Arguments": [
   {
     "Key": "destHost",
     "Value": "10.184.168.169"
   },
   {
     "Key": "destDatastore",
     "Value": "sharedVmfs-0"
   },
   {
     "Key": "destDatacenter",
     "Value": "vcqaDC"
   }
 ],
 "ObjectId": "vm-56",
 "ObjectType": "VirtualMachine",
 "ObjectName": "test-vm-01",
 "Fault": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment