Hi,
I need one help on esxcli. As per the below article "esxcli system slp stats get" is command to know the status of SLP service on a esxi host
How to Disable/Enable CIM Server on VMware ESXi (76372)
However when I am trying the same using powercli I am getting the below. Please help.
$esx = get-vmhost hostname
$esxcli = Get-EsxCli -VMHost $esx -V2
$esxcli.system.slp.stats.get
==================
EsxCliMethodElement: get
Methods:
--------
SlpStats Invoke()
string Help()
When you use the V2 switch you have to call the Invoke method, like $esxcli.system.slp.stats.get.Invoke().
See also PowerCLI 6.3 R1: Get-ESXCLI Why the V2?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
When you use the V2 switch you have to call the Invoke method, like $esxcli.system.slp.stats.get.Invoke().
See also PowerCLI 6.3 R1: Get-ESXCLI Why the V2?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Perfect. Thanks LucD.