Skip to content

ESXi esxtop バッチ

実行

esxtop -b -d 2 -n 30 > esxtop-bat.csv

option

b: バッチモード
d: 実行間隔(秒)
n: 実行回数
a: all

all は大量に出力される

esxtop -b -d 2 -n 30 -a > esxtop-all.csv

VM指定で対象を絞る

対象を指定したファイルを作成

esxtop -export-entity entitity.dat
echo SchedGroup > vmselect.dat
grep -i <VM-NAME> entity.dat >> vmselect.dat
esxtop バッチモードで実行
esxtop -b -d 2 -n 30 -import-entity vmselect.dat > esxtop-vm.csv

備考

参考

広告

Amazon : VMware vSphere7インテグレーションガイド

メルカリ:vSphere7 インテグレーションガイド