VMware Cloud Community
Pilu1978
Enthusiast
Enthusiast
Jump to solution

esxcli help

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()

 

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

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

0 Kudos
Pilu1978
Enthusiast
Enthusiast
Jump to solution

Perfect. Thanks LucD.

0 Kudos