Discovery for VMware vCenter
Summarize
Summary of Discovery for VMware vCenter
Discovery for VMware vCenter enables ServiceNow customers to explore VMware vCenter processes running on Windows or Linux hosts, including support for IPv6. It creates configuration items (CIs) for vCenter components and establishes relationships between vCenter applications and their host servers when applicable. This discovery supports vCenter API versions 4.0 and higher, with specific testing on vCenter 8.0 and earlier, and vCenter appliance version 6.7 and earlier.
Show less
Key Features
- Comprehensive vCenter Environment Discovery: Launches probes to gather detailed information about datacenters, ESX hosts, virtual machines, and datastores, creating accurate mappings and relationships within the CMDB.
- Credential Management: Uses VMware credentials with read-only access for discovery; for Software Asset Management, credentials require the License Admin privilege. Windows credentials are not necessary if valid VMware credentials are provided.
- vCenter Event Collector Integration: A MID Server extension that updates the CMDB in real-time by capturing vCenter events such as VM power state changes and deletions, reducing the need for full rediscovery.
- Handling Deleted or Removed CIs: Automatically marks deleted or removed virtual machines as terminated or stale in the CMDB, with options to configure stale CI reporting and remediation workflows to maintain CMDB accuracy.
- Alternate Port Configuration: Allows specifying a custom port for the VMware - vCenter Datacenters probe if the default port is not suitable.
Practical Considerations for ServiceNow Customers
- Initiate vCenter discovery before server CI discovery to ensure correct relationship mapping between server CIs and vCenter-managed resources.
- When discovering vCenter appliances running SUSE Linux version 6.0 or earlier, observe SSH restrictions to avoid discovery issues.
- Use the vCenter event collector to keep the CMDB current with VM state changes without running full discovery, improving performance and accuracy.
- Configure stale CI detection and remediation according to your organizational policies to maintain a clean and reliable CMDB.
- If needed, configure an alternate port for vCenter discovery probes to accommodate network or security requirements.
Expected Outcomes
Using Discovery for VMware vCenter, ServiceNow customers can expect an accurate, up-to-date CMDB that reflects the state of their VMware infrastructure. This includes detailed CI data for vCenter servers, virtual machines, datastores, and ESX hosts, along with reliable relationship mappings. The integration with the vCenter event collector ensures timely updates to VM states, minimizing the need for frequent full discoveries and enhancing the efficiency of configuration management and asset tracking.
Discovery can explore the VMware vCenter process running on a Windows or Linux host. IPv6 is supported for discovery in VMware vCenter.
If a Windows or Linux server is running vCenter application, after creating the vCenter CI, a "Runs on" relationship to the Windows or Linux server host is created.
When a vCenter application is running on a dedicated vCenter appliance, a "Runs on" relationship to the vCenter CI isn’t created.
Tested vCenter versions
- vCenter versions 8.0 and earlier
- vCenter appliance version 6.7 and earlier
- NameIP
- AddressMAC
- AddressDiscovery
- Source
See Data collected for VMware vCenter Server for a description of the VMware architecture and component relationships.
vCenter discovery process
VMWare credentials
Updating the CMDB with vCenter event collector
In addition to finding vCenter data through the standard discovery process, Discovery can also update the CMDB by detecting vCenter events through a MID Server extension called the vCenter event collector.
The event collector allows the CMDB to be updated with changes to virtual machines (VMs), in addition to the updates detected by Discovery. A change to a VM is sent as an event from the vCenter server to the vCenter event collector. When an event is received, the CMDB is updated accordingly. Full vCenter Discovery does not need to rerun. For some events, such as powered on and powered off events, Discovery does not need to run again at all. For most events, Discovery runs only on the necessary vCenter resource.For instructions on configuring vCenter events, see Configure and run the vCenter event collector extension.
VM deleted from vCenter
If the VM is deleted from vCenter, the cmdb_ci_vm_instance state changes to terminated and the Status field changes to retired.
CIs removed from vCenter
- When Discovery runs, it creates an audit record in the Components installed with CMDB Health table for the missing CI and marks the CI "stale".
- If the instance is configured to collect vCenter events, the system can also create a "stale" audit record for the CI in the CMDB Health Result [cmdb_health_result] table from the VmRemovedEvent event, without having to run Discovery.
To avoid stale CI health indicators from being generated during VMware discovery, set the system property glide.cmdb.health.src.cmdb_health_audit_only to true. This disables stale CI reporting from the VMware discovery source, enabling you to manage the CI life cycle through other means. For more information, see CMDB Health system properties.
You have the option of creating a CMDB remediation rule to automatically execute a remediation workflow that can, for example, delete stale CIs. For more information on stale CIs, see CMDB Health Metrics.
vCenter Discovery on Windows host
Windows credentials aren't necessary for vCenter Discovery, when valid VMware credentials are used.