vCenter Discovery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2020 06:12 AM
Hello All,
I learnt that discovery automatically triggers a probe for vCenter discovery when it finds that some Windows machine has vCenter application/software installed on it.
On the same lines I have a few questions:
For example:
1. I have a vCenter instance available in the CMDB, how can I figure out which Windows machine has a particular instance of vCenter installed on it, so that I can run a discovery on that particular machine and get the details of all the datacenters, clusters, ESX Servers and VM instances.
Also, I found out that VMWare has a vCenter web app also. So how to figure out whether the vCenter is istalled on a Windows machine or was discovered from web app?
2.I see even in Orlando release, ServiceNow uses a probe for vCenter discovery and there is no pattern available.How can I get all the information that is available for VM instances in the probe and will it be wise to customize this OOTB probe keeping in mind the automatic upgrade of probes from ServiceNow.
3. How can I fetch additional details about a VM instance which already is not available OOTB.
For example:
If we add a field to VM instance machine table and we want value in the field to be auto-populated through discovery?
Please let me know if you have any information on the above queries.
Thanks in advance.
Regards,
Sanket Shinde
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2021 09:59 AM
Hello Sanket and Ashutosh,
I am also working to pull in custom fields/attributes from VMs through vCenter discovery on a Windows machine. I have been provided powershell to be run on that machine that will query for the additional fields/attributes. Is it correct that patterns are not functional for vCenters still? Also, were you able to create or modify an additional probe to retrieve your custom attributes information?
Many thanks for any help you are able to provide.
Thanks,
Claire
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2020 07:29 AM
Hi Sanket,
Adding the details for your question
1. I have a vCenter instance available in the CMDB, how can I figure out which Windows machine has a particular instance of vCenter installed on it, so that I can run a discovery on that particular machine and get the details of all the datacenters, clusters, ESX Servers and VM instances.
You can go to the vcenter table to see more details about the host and which version of vcenter is installed.
Clicking on the 'server' from [L1] relationship takes you to the actual computer/server record.
Also, I found out that VMWare has a vCenter web app also. So how to figure out whether the vCenter is istalled on a Windows machine or was discovered from web app?
VMware discovery runs only when below ports are open
2.I see even in Orlando release, ServiceNow uses a probe for vCenter discovery and there is no pattern available.How can I get all the information that is available for VM instances in the probe and will it be wise to customize this OOTB probe keeping in mind the automatic upgrade of probes from ServiceNow.
There is no support for vCenter patterns till Paris. You can customise the OOTB pobe to fetch additional details.
To customize VM instances, you can use VMWarevCenterVMsProbe to get info from vcenter and respective sensor to perist the same in the CMDB.
3. How can I fetch additional details about a VM instance which already is not available OOTB.
You have to update VMWarevCenterVMsProbe and VCenterVMsSensor.
Follow below steps
a. Add a field in cmdb_ci_vmware_instance or any other parent table in the hierarchy.
b. Update the probe to fetch the detail needed.
eg:- host_name is not fetched currently as OOTB. Add host_name to the datamap as below.
c. Update vm object to push the host_name field. This vm object will be used by sensor to persist into cmdb. This field_name should match with the name in cmdb that created newly. The field name is 'fqdn' here.
d. Update VCenterVMsSensor sensor to persist the new field through discovery.
This change is needed only when the field name mapped in vm object is not similar as the field name in the cmdb table.
update fixupVM method to map the probe value to the cmdb table field value
We can sync-up if you have more questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2020 07:48 AM
Thank you, Valarmathi for your detailed response.
Currently, many of vCenter relationships show no host value as I feel they are not hosted on any server but on a VM instance.
But, I figure out the host using the ip in the name or the url.
- The only confusion which I am having now is, whenever I run a discovery on the host linux server with the ip address, it always discovers the vcenter, which is OK, but how can I discover the updated values in Linux, becoz now in this host linux server all the related lists are blank, as discovery is not running the linux server probes only vmware probe.
- Also, if I want to write a discovery schedule for all the vcenters (don't want to use vCenter event collector), will I have to use the IP addresses in the schedules?
Regards,
Sanket
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2020 08:07 AM
Hi Sanket,
- The only confusion which I am having now is, whenever I run a discovery on the host linux server with the ip address, it always discovers the vcenter, which is OK, but how can I discover the updated values in Linux, becoz now in this host linux server all the related lists are blank, as discovery is not running the linux server probes only vmware probe.
Option1: If the ssh_credentials / windows credentials are configured for the IP where the vmware is installed, the details will be discovered automatically and the same will be updated during each discovery run.
Option2: If you do not want to provide the above credentials, you can configure the 'CredentialLess Discovery' supported by ServiceNow. This requires 'NMap' to be installed on the MID Server.
- Also, if I want to write a discovery schedule for all the vcenters (don't want to use vCenter event collector), will I have to use the IP addresses in the schedules.
- yes. you have to create a schedule with multiple IPs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2020 08:17 AM
Hi Valarmathi,
We already have option 1 in place (both the credentials configured), still it runs only the vcenter discovery.
Regards,
Sanket