Automation

 View Only
  • 1.  get-service to check vpxd service on windows vcenter

    Posted Oct 30, 2019 12:09 PM

    Hi Luc /All,

    i have one vcenter(windows) and i can see following  in control panel.

    however get-service is not giving me vpxd service  as mentioned below.

    also   ifyou can check the folowing which gave me external psc.

    $embeddedorexternal=$global:DefaultVIServer |

    Select Name,

        @{N='PSC';E={

            $pscUri = Get-AdvancedSetting -Entity $_ -Name config.vpxd.sso.admin.uri | select -ExpandProperty Value

            if(([System.Uri]$_.ServiceUri).Host -eq ([System.Uri]$pscUri).Host){'Embedded'}else{'External'}

        }}



  • 2.  RE: get-service to check vpxd service on windows vcenter

    Posted Oct 30, 2019 12:42 PM

    The ServiceUri property contains an object.
    Can you try with the AbsoluteUri property in there?

    $global:DefaultVIServer |

    Select Name,

        @{N='PSC';E={

            $pscUri = Get-AdvancedSetting -Entity $_ -Name config.vpxd.sso.admin.uri | select -ExpandProperty Value

            if(([System.Uri]$_.ServiceUri.AbsoluteUri).Host -eq ([System.Uri]$pscUri).Host){'Embedded'}else{'External'}

        }}

    Can you also check if the command service-control exists and if yes, what it returns?


    c:\Program Files\VMware\vCenter Server\bin\service-control --list



  • 3.  RE: get-service to check vpxd service on windows vcenter

    Posted Oct 30, 2019 01:44 PM

    it gave me the same result .it is showing external psc though it is internal.

    $global:DefaultVIServer |

    Select Name,

        @{N='PSC';E={

            $pscUri = Get-AdvancedSetting -Entity $_ -Name config.vpxd.sso.admin.uri | select -ExpandProperty Value

            if(([System.Uri]$_.ServiceUri.AbsoluteUri).Host -eq ([System.Uri]$pscUri).Host){'Embedded'}else{'External'}

        }}

    Can you also check if the command service-control exists and if yes, what it returns?

    service-control gave me vpxd are we not supposed to get from powershell get-service ??



  • 4.  RE: get-service to check vpxd service on windows vcenter

    Posted Oct 30, 2019 01:52 PM

    What values do you have in there?

    $global:defaultviserver.ServiceUri.AbsoluteUri

    Get-AdvancedSetting -Entity $global:defaultviserver -Name config.vpxd.sso.admin.uri | select -ExpandProperty Value



  • 5.  RE: get-service to check vpxd service on windows vcenter

    Posted Oct 30, 2019 01:54 PM

    What version is that vCenter?
    Since 6.5 all vCenter services run under the VMware Service Lifecycle Manager service

    And those you can not see with Get-Service anymore.



  • 6.  RE: get-service to check vpxd service on windows vcenter

    Posted Oct 30, 2019 02:11 PM

    its 6.7 windows

    also for the embeded and external psc part i found following .

    both are same server but first one is fqdn while second one is ip address and thats why if clause treats them different and giving external .

    if it is possible to get directproperty from $global:defaultviserver then it will be much easier.



  • 7.  RE: get-service to check vpxd service on windows vcenter

    Posted Oct 30, 2019 02:28 PM

    If the REST API is available, you could do

    Connect-CisServer -Server <Your-VCSA>

    (Get-CisService -Name com.vmware.vcenter.topology.nodes).List()



  • 8.  RE: get-service to check vpxd service on windows vcenter

    Posted Oct 30, 2019 02:39 PM

    let me check this .anything  rest*   is interesting nowadays .



  • 9.  RE: get-service to check vpxd service on windows vcenter

    Posted Oct 30, 2019 03:33 PM

    it seems it is  not available  though vcenter is 6.7 . iam checking in other environment ,



  • 10.  RE: get-service to check vpxd service on windows vcenter

    Posted Oct 30, 2019 03:42 PM

    there is nothing like this that starts with topology 



  • 11.  RE: get-service to check vpxd service on windows vcenter

    Posted Oct 30, 2019 03:56 PM

    I'm on 6.7U3 (build 14792544)



  • 12.  RE: get-service to check vpxd service on windows vcenter

    Posted Oct 31, 2019 11:33 AM

    Ohh I will check this again.thanks.