VMware Cloud Community
infinitiguy2
Contributor
Contributor

fine tuning resxtop in batch mode

I'm trying to get something very specific out of resxtop and having some difficulties in doing so.

echo "password" | ./resxtop --server esxiserver --username root -n 1 -c /root/.esxtop4memory

my esxtop4memory file looks like..

abcdefgh
abCdefghiJklmno
abcdefghijklm
abcdefghijklm
abcdefghijklm
abcdefghijklmn
abcdef
abcde
5m

and essentially what I want to get out is current Swap usage for VM's only (View VM only).  Interactive mode desired output is below.

View VM only

NAME               SWCUR    SWTGT   SWR/s   SWW/s

esxi05u37-vm      0.00     0.00    0.00    0.00

lintest31601        0.00     0.00    0.00    0.00

however, my CSV files continue to be full of all sorts of CPU stats that aren't warranted, and I think it's because I don't know how to set "View VM only" in batch mode.

Anyone have any thoughts?

Tags (3)
Reply
0 Kudos
0 Replies