vga=normal fb=false
if ("Physical Cpu(_Total)\% Core Util Time" exists) // Indicating hyper-threading is used return "Physical Cpu(_Total)\% Core Util Time"; else return "Physical Cpu(_Total)\% Util Time";
[root@testserver19:~] esxtop -n1 | head -c 1000 no termcap entry for a `xterm-color' terminal"(PDH-CSV 4.0) (UTC)(0)","\\testserver19\Memory\Memory Overcommit (1 Minute Avg)","\\testserver19\Memory\Memory Overcommit (5 Minute Avg)", ...以下略 "10/26/2016 00:59:36","0.00","0.00","0.00","0.00","0.00","0.00","8.51","0.12","0.12","0.02","0.04","0.34","0.09","0.04","1.39","2.38","0.10","0.08","0.53","0.17","0.37", ...以下略
[root@testserver19:~] echo $TERM xterm-color
[root@testserver19:~] find /usr/share/terminfo/ -type f /usr/share/terminfo/s/screen /usr/share/terminfo/l/linux /usr/share/terminfo/x/xterm /usr/share/terminfo/a/ansi /usr/share/terminfo/v/vt102
[root@testserver19:~] TERM=xterm esxtop 1:02:31am up 1 day 18:05, 631 worlds, 2 VMs, 20 vCPUs; CPU load average: 0.00, 0.00, 0.00 PCPU USED(%): 0.1 0.0 0.0 0.0 0.0 0.0 0.0 2.5 0.1 0.1 0.2 0.0 0.0 0.2 94 0.2 0.2 0.0 0.0 0.3 AVG: 4.9 PCPU UTIL(%): 0.0 21 19 21 21 21 21 24 7.2 0.0 0.0 21 21 9.9 97 0.4 0.0 23 0.0 0.1 AVG: 16 ID GID NAME NWLD %USED %RUN %SYS %WAIT %VMWAIT %RDY %IDLE %OVRLP %CSTP %MLMTD %SWPWT 993518 993518 esxtop.158600 1 92.03 84.84 0.12 2.19 - 0.14 0.00 0.13 0.00 0.00 0.00 631897 631897 testserver19-1 15 2.60 0.35 0.00 1309.37 55.60 0.03 817.21 0.01 0.00 0.00 0.00 569375 569375 testserver19-0 15 0.81 0.65 0.21 1301.98 0.00 0.11 1516.47 0.00 0.00 0.00 0.00
esxcli system shutdown poweroff -r <理由を記述(必須)>
esxcli system shutdown reboot -r <理由を記述(必須)>
# esxcli system maintenanceMode get Enabled
esxcli system maintenanceMode set --enable=true esxcli system maintenanceMode set -e true
esxcli system maintenanceMode set --enable=false esxcli system maintenanceMode set -e false
~ # vim-cmd vmsvc/getallvms Vmid Name File Guest OS Version Annotation 160 Linux5.5 [datastore1] Linux5.5_1/Linux5.5_1.vmx rhel5_64Guest vmx-07 176 RHEL6.3 [datastore1] RHEL6.3/RHEL6.3.vmx rhel6_64Guest vmx-07 208 RHEL6.5 [datastore1] RHEL6.4/RHEL6.4.vmx rhel6_64Guest vmx-07 64 Linux5.1 [datastore1] Linux5.3/Linux5.3.vmx rhel5_64Guest vmx-07 80 Linux5.3 [datastore1] Linux5.3_1/Linux5.3_1.vmx rhel5_64Guest vmx-07
~ # vim-cmd vmsvc/power.getstate 176 Retrieved runtime info Powered off
~ # vim-cmd vmsvc/power.on 176 Powering on VM: ~ # vim-cmd vmsvc/power.getstate 176 Retrieved runtime info Powered on
~ # esxcli system hostname get Domain Name: Fully Qualified Domain Name: esxi01 Host Name: esxi01
~ # esxcli system hostname set --host=dbserver ~ # esxcli system hostname get Domain Name: Fully Qualified Domain Name: dbserver Host Name: dbserver
~ # esxcfg-route -l VMkernel Routes: Network Netmask Gateway Interface 192.168.0.0 255.255.255.0 Local Subnet vmk0 default 0.0.0.0 192.168.0.1 vmk0
~ # esxcfg-route -a 10.84.72.0/22 192.168.0.254 Adding static route 10.84.72.0/22 to VMkernel
/vmfs/volumes/4c3bf3ae-c4665992-81e4-002421072eb1 # ls Linux5.3 Linux5.3_1 Linux5.5 Linux5.5_1 RHEL6.3 RHEL6.4 test /vmfs/volumes/4c3bf3ae-c4665992-81e4-002421072eb1 # cd test/ /vmfs/volumes/4c3bf3ae-c4665992-81e4-002421072eb1/test # ls -ltrh -rw------- 1 root root 465 Jan 16 15:34 test.vmdk -rw------- 1 root root 24.0G Jan 16 16:22 test-flat.vmdk
/vmfs/volumes/4c3bf3ae-c4665992-81e4-002421072eb1/test # cd ../ /vmfs/volumes/4c3bf3ae-c4665992-81e4-002421072eb1 # rm -rf test/
$ ssh -L 443:<ESXiホスト>:443 <SSHサーバ> $ ssh -L 902:<ESXiホスト>:902 <SSHサーバ>
127.0.0.1 localhost esxiserver