2 Replies Latest reply on Feb 27, 2017 5:47 PM by troyemc

    ESX ping with powercli

    troyemc Lurker

      Hi Experts,

       

      I run this code and it didn't return any error:

       

      $esxcli2 = Get-ESXCLI -VMHost host01.lab.com -V2

      $arguments = $esxcli2.network.diag.ping.CreateArgs()

      $arguments.host = "10.10.10.10"

      $arguments.count = 3

      $esxcli2.network.diag.ping.Invoke($arguments)

       

      How do I verify the result?

        • 1. Re: ESX ping with powercli
          mattboren Master
          vExpert

          Hello, troyemc-

           

          If you grab the result of having invoked that method, you can check the Summary property of the return to see info about the ping requests.  Like:

          $oReturn = $esxcli2.network.diag.ping.Invoke($arguments)
          $oReturn.Summary
          Duplicated     : 0
          HostAddr       : 10.10.10.10
          PacketLost     : 0
          Recieved       : 3
          RoundtripAvg   : 334
          RoundtripAvgMS : 0
          RoundtripMax   : 393
          RoundtripMaxMS : 0
          RoundtripMin   : 298
          RoundtripMinMS : 0
          Transmitted    : 3
          
          

           

          So, you could check whatever things are important to you -- that none were lost, that the latency was acceptable, etc.  That help?

          • 2. Re: ESX ping with powercli
            troyemc Lurker