ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    ESXi VMware ESXTOP

    Scheduled Pinned Locked Moved IT Discussion
    vmwareesxi6.7esxtop
    15 Posts 7 Posters 842 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DustinB3403D
      DustinB3403 @EddieJennings
      last edited by

      @eddiejennings there is, but only when you aren't passing any options to it.

      esxtop >> /logvile.csv for example would just dump everything from the tool. I specifically want to filter down to just the device latency.

      1 Reply Last reply Reply Quote 0
      • 1
        1337 @DustinB3403
        last edited by 1337

        @dustinb3403 said in ESXi VMware ESXTOP:

        I'm hoping someone can help me out here. I've trying to write the output of ESXTOP (Device Average Latency) to a csv file.

        The will output to STOUT through putty, but I can't figure out how to write it to a file for review.

        esxtop <enter>
        d
        Shift+L
        36 <enter>
        f
        b,c,d,e,h,j <enter>
        s
        2 <enter>

        That will update the shell session every 2 seconds and provide the Device average latency, but how can I get this output to write out like >> so I can review it without having to monitor it "live"

        For example:
        [root@localhost:~] esxtop
        The above command will open the interactive screen of esxtop, by default.

        [root@localhost:~] esxtop -b -a -d 10 -n 3 > /vmfs/volumes/localhost/test.csv
        The above command runs the batch mode of esxtop with all counters, updates delay of 10 secs for 3 iterations. The output is written to the test.csv file which can be opened with other tools like Windows Perfmon.

        https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.monitoring.doc/GUID-D89E8267-C74A-496F-B58E-19672CAB5A53.html

        DustinB3403D 1 Reply Last reply Reply Quote 0
        • DustinB3403D
          DustinB3403 @1337
          last edited by

          @pete-s Yeah I saw that, but this won't output just the specific detail I'm looking for. It will output everything (and essentially bloat the logs).

          I saw the same thing.

          Thanks though

          ObsolesceO 1 Reply Last reply Reply Quote 0
          • ObsolesceO
            Obsolesce @DustinB3403
            last edited by

            @dustinb3403 said in ESXi VMware ESXTOP:

            @pete-s Yeah I saw that, but this won't output just the specific detail I'm looking for. It will output everything (and essentially bloat the logs).

            I saw the same thing.

            Thanks though

            Make the script a two step process until you can figure it out.

            1. Dump it all to CSV.
            2. Then have the script remove unneeded data from CSV.
            1 1 Reply Last reply Reply Quote 1
            • 1
              1337 @Obsolesce
              last edited by

              @obsolesce said in ESXi VMware ESXTOP:

              @dustinb3403 said in ESXi VMware ESXTOP:

              @pete-s Yeah I saw that, but this won't output just the specific detail I'm looking for. It will output everything (and essentially bloat the logs).

              I saw the same thing.

              Thanks though

              Make the script a two step process until you can figure it out.

              1. Dump it all to CSV.
              2. Then have the script remove unneeded data from CSV.

              Or just pipe the output to grep, awk or whatever before writing it to file.
              The batch mode of esxtop at least will let give you the information without having to do it interactively.

              ObsolesceO 1 Reply Last reply Reply Quote 1
              • ObsolesceO
                Obsolesce @1337
                last edited by

                @pete-s said in ESXi VMware ESXTOP:

                Or just pipe the output to grep, awk or whatever before writing it to file.

                2a2c40ce-cf02-40c5-9fb3-40b1783d1c9f-image.png

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @Obsolesce
                  last edited by

                  @obsolesce awk is surprisingly simple to use. Easiest text processor that I know.

                  1 Reply Last reply Reply Quote 1
                  • dave247D
                    dave247
                    last edited by

                    Why not just use PowerShell?

                    DustinB3403D 1 Reply Last reply Reply Quote 0
                    • stacksofplatesS
                      stacksofplates
                      last edited by

                      Does the esxi shell have awk?

                      DustinB3403D scottalanmillerS 2 Replies Last reply Reply Quote 0
                      • DustinB3403D
                        DustinB3403 @stacksofplates
                        last edited by

                        @stacksofplates it might, I'll have to double-check next week

                        1 Reply Last reply Reply Quote 0
                        • DustinB3403D
                          DustinB3403 @dave247
                          last edited by

                          @dave247 said in ESXi VMware ESXTOP:

                          Why not just use PowerShell?

                          How would I use powershell when I'm ssh'd into the host?

                          I get that I can use powershell to pull details from the host, but that's a different approach than what I'm doing

                          1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @stacksofplates
                            last edited by

                            @stacksofplates said in ESXi VMware ESXTOP:

                            Does the esxi shell have awk?

                            No idea

                            1 1 Reply Last reply Reply Quote 0
                            • 1
                              1337 @scottalanmiller
                              last edited by

                              @scottalanmiller said in ESXi VMware ESXTOP:

                              @stacksofplates said in ESXi VMware ESXTOP:

                              Does the esxi shell have awk?

                              No idea

                              According to this it does:
                              https://deepakkanda.wordpress.com/2018/07/25/shell-commands-in-vsphere-esxi/

                              1 Reply Last reply Reply Quote 0
                              • 1 / 1
                              • First post
                                Last post