vCenter hostname storage field table

_Yash24
Tera Guru

Hi All,

 

I want to populate hostname on vcenter cmdb_ci_vcenter custom field(hostname) through script but I am not getting the exact table for hostname of vcenter.
Due to circumstances, the "VMware Virtual Machine Instance" record is not available.
We would like to obtain the hostname of vcenter, for example, "VC001MC001", which is set on the terminal side.

 

how can I do that?

6 REPLIES 6

Rahul Priyadars
Giga Sage
Giga Sage

In CMdb Class - cmdb_ci_vcenter 

Name attribute is coming as vCenter@XXX.YY.19.ZZ like vCenter@IP .

 

You want Host Name for this Server whose IP is  XXX.YY.19.ZZ?

Regards

RP

 

Hi @Rahul Priyadars 
I would like to obtain the hostname set on the terminal side, such as "VC001MC001", instead of "vcenter@XXX.YY.19.ZZ" Address". 

Do u have a Custom Attribute for Storing Host Name of Vcenter CI?

 

Regards

RP

Hi @Rahul Priyadars 

No attribute is specified. So any attribute is OK.
Thanks,

Yash