vCenter hostname storage field table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2023 12:46 AM - edited 11-07-2023 08:30 PM
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2023 08:23 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2023 08:31 PM
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".

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2023 09:37 PM
Do u have a Custom Attribute for Storing Host Name of Vcenter CI?
Regards
RP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2023 10:27 PM