VMware vCenter REST Api Integration instead of cloud discovery

RamSagar
Tera Guru

Hi,

Can we integrate ServiceNow with vCenter using the REST Api to pull the linux servers information without discovery. because we had linux servers in vCenter if we use the discovery but the data will be inserted into "VMware Virtual Machine".

Already we had linux server data in "Linux Servers " table in CMDB.

So our requirement is to update the same vCenter Linux machines to be updated in Linux Server table in CMDB instead of inserting a new set of CI in VMware Virtual Machine".

Please suggest me how to move forward on this.

 

2 REPLIES 2

boey007
Kilo Contributor

Hi RamSagar,

You need to appreciate that a virtual machine and a server are 2 different entities that can have different characteristics/attributes. Sourcing your information from discovery as you rightly point out will populate VMWare Virtual Machine, this is because at the level of discovery being performed this is what the CI is classified as. To be identified as a server you will need to perform a server OS level discovery (eg. SSH).

Should your server CIs exist already maybe through a different population technique then the VMWare Virtual Machine and Server CI can be related using the 'serial number' attribute of server CI and the 'correlation ID' attribute of the VMWare virtual machine (note the correlation id is minus the VMWare- part of the serial number'. The 2 CIs will then be related.

I hope this helps you come to resolution. 

Regards

Craig

TDalal
Tera Contributor

Hi Ram,

 

We have received a same kind of requirement. I see this is a post from 3 years back. Were you able to do a custom integration with vCenter via api to fetch server data?

If yes, Can you guide what were the steps taken?

 

 

Regards,

Tamojit