VMware vSphere

 View Only
  • 1.  How do I get the vCenter IP Address through MOB?

    Posted Mar 02, 2022 10:59 AM

    Hi Team,

    How do I retrieve the IP Address or Host Name of the vCenter server through MOB API. I tried running 'ServiceContent' method in the MOB API "https://<vcenter>/mob" and it shows the following information. However, it does not provide the Center IP Address or FQDN. Is there any other MOB API that can provide this information.

     

    apiTypestring"VirtualCenter"
    apiVersionstring"6.7.3"
    buildstring"17137327"
    fullNamestring"VMware vCenter Server 6.7.0 build-17137327"
    instanceUuidstring"8e33bc10-271c-475a-b228-af1cd9c33a7e"
    licenseProductNamestring"VMware VirtualCenter Server"
    licenseProductVersionstring"6.0"
    localeBuildstring"000"
    localeVersionstring"INTL"
    namestring"VMware vCenter Server"
    osTypestring"linux-x64"
    productLineIdstring"vpx"
    vendorstring"VMware, Inc."
    versionstring"6.7.0"

     



  • 2.  RE: How do I get the vCenter IP Address through MOB?

    Broadcom Employee
    Posted Mar 03, 2022 03:02 PM

    If you're logged into the MOB interface (which is really for debugging/troubleshooting/learning purposes), you've already got the address of the vCenter Server If you've got DNS, then you can either perform a local forward or reverse DNS lookup

    The FQDN of the vCenter Server is stored under VC Advanced Settings and look for the key VirtualCenter.FQDN, but as I said before, you have this info if you're already logged into MOB, so this is a strange request