VMware {code} Community
deepakmits
Contributor
Contributor
Jump to solution

What is the dynamic property used to retrieve the IP address of the VC?

What is the dynamic property used to retrieve the IP address of the VC?

If we are retrieving as below we are getting VM Kernel Port Group

HostSystem->HostListSummary->managementServerIp

But how do we get Service Console Port Group ?

Please let me know Thanks in advance.

0 Kudos
1 Solution

Accepted Solutions
ChristianK
Enthusiast
Enthusiast
Jump to solution

Hi,

Is your VC installed on a harware or is it installed in a VM?

If it sits on a hardware maybe you can retrieve it with

HostSystem -> HostConfigManager -> HostNetworkSystem -> HostNetworkInfo (or config)

There is a entity HostPortGroup portgroup, But im a noob and never made it.

Maybe it helps.

Christian

kind regards Christian

View solution in original post

0 Kudos
3 Replies
ChristianK
Enthusiast
Enthusiast
Jump to solution

Hi,

Is your VC installed on a harware or is it installed in a VM?

If it sits on a hardware maybe you can retrieve it with

HostSystem -> HostConfigManager -> HostNetworkSystem -> HostNetworkInfo (or config)

There is a entity HostPortGroup portgroup, But im a noob and never made it.

Maybe it helps.

Christian

kind regards Christian
0 Kudos
stumpr
Virtuoso
Virtuoso
Jump to solution

That should be the IP address of your Virtual Center Server. Are you saying you want the Service Console IP address(es)?

If you want the Service Console IP address that would be at HostNetworkSystem->consoleVnic (an array). You can obviously have multiple Service Console IP addresses on a host, you'll need to traverse the array and look at the spec->ip property for each console vnic object.

Reuben Stump | http://www.virtuin.com | @ReubenStump
deepakmits
Contributor
Contributor
Jump to solution

Thanks a lot.

0 Kudos