Esxcli: Difference between revisions
Jump to navigation
Jump to search
(Created page with "test") |
No edit summary |
||
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Useful Commands== | |||
===Get SNMP details=== | |||
<pre>esxcli system snmp get</pre> | |||
Example output: | |||
<pre style="color: silver; background: black; width: 800px"> | |||
[root@esxh001:~] esxcli system snmp get | |||
Authentication: | |||
Communities: snmp#community13 | |||
Enable: true | |||
Engineid: 00000063000000a100000000 | |||
Hwsrc: indications | |||
Largestorage: true | |||
Loglevel: info | |||
Notraps: | |||
Port: 161 | |||
Privacy: | |||
Remoteusers: | |||
Syscontact: | |||
Syslocation: | |||
Targets: log01@162 snmp#community13 | |||
Users: | |||
V3targets: | |||
[root@esxh001:~] | |||
</pre> | |||
===Testing jumbo frames with vmkping=== | |||
<pre>vmkping -s 8972 -d <ip of iscsi target></pre> | |||
If jumbo frames is enabled you should get ping replies, if not enabled you will see something like: | |||
<pre style="color: silver; background: black; width: 800px"> | |||
sendto() failed (Message too long) | |||
</pre> | |||
===Install offline bundle=== | |||
<pre>esxcli software vib install -d /vmfs/volumes/VMStorage/temp/file.zip</pre> | |||
===Install VIB file=== | |||
<pre>esxcli software vib install -v /vmfs/volumes/VMStorage/temp/file.vib</pre> | |||
===List network adapters=== | |||
<pre>esxcli network nic list</pre> | |||
Example output: | |||
<pre style="color: silver; background: black; width: 1200px"> | |||
[root@esxh001:~] esxcli network nic list | |||
Name PCI Device Driver Admin Status Link Status Speed Duplex MAC Address MTU Description | |||
------ ------------ ------ ------------ ----------- ----- ------ ----------------- ---- ------------------------------------------------------- | |||
vmnic2 0000:09:00.0 tg3 Up Up 1000 Full 11:e1:11:11:1d:11 1500 Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet | |||
vmnic3 0000:09:00.1 tg3 Up Up 1000 Full 22:e2:22:22:2d:22 1500 Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet | |||
[root@esxh001:~] | |||
</pre> | |||
===Enable Transparent Page Sharing between VMs=== | |||
<pre>esxcli system settings advanced set -o /Mem/ShareForceSalting --int-value=0</pre> | |||
===List storage devices / disks=== | |||
<pre>esxcli storage nmp device list</pre> | |||
===Disable SSH Enabled warning=== | |||
<pre>vim-cmd hostsvc/advopt/update UserVars.SuppressShellWarning long 1</pre> | |||
===Find which host is locking a vm=== | |||
<pre>vmfsfilelockinfo -p /vmfs/volumes/5cfg1d0d-7542cb94-3e2d-e0db340d42f0/server01</pre> | |||
===Generate support bundle in vCenter=== | |||
SSH to the vCenter and run: | |||
<pre>vc-support -l</pre> | |||
<comments /> |
Latest revision as of 08:23, 20 March 2022
Useful Commands
Get SNMP details
esxcli system snmp get
Example output:
[root@esxh001:~] esxcli system snmp get Authentication: Communities: snmp#community13 Enable: true Engineid: 00000063000000a100000000 Hwsrc: indications Largestorage: true Loglevel: info Notraps: Port: 161 Privacy: Remoteusers: Syscontact: Syslocation: Targets: log01@162 snmp#community13 Users: V3targets: [root@esxh001:~]
Testing jumbo frames with vmkping
vmkping -s 8972 -d <ip of iscsi target>
If jumbo frames is enabled you should get ping replies, if not enabled you will see something like:
sendto() failed (Message too long)
Install offline bundle
esxcli software vib install -d /vmfs/volumes/VMStorage/temp/file.zip
Install VIB file
esxcli software vib install -v /vmfs/volumes/VMStorage/temp/file.vib
List network adapters
esxcli network nic list
Example output:
[root@esxh001:~] esxcli network nic list Name PCI Device Driver Admin Status Link Status Speed Duplex MAC Address MTU Description ------ ------------ ------ ------------ ----------- ----- ------ ----------------- ---- ------------------------------------------------------- vmnic2 0000:09:00.0 tg3 Up Up 1000 Full 11:e1:11:11:1d:11 1500 Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet vmnic3 0000:09:00.1 tg3 Up Up 1000 Full 22:e2:22:22:2d:22 1500 Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet [root@esxh001:~]
Enable Transparent Page Sharing between VMs
esxcli system settings advanced set -o /Mem/ShareForceSalting --int-value=0
List storage devices / disks
esxcli storage nmp device list
Disable SSH Enabled warning
vim-cmd hostsvc/advopt/update UserVars.SuppressShellWarning long 1
Find which host is locking a vm
vmfsfilelockinfo -p /vmfs/volumes/5cfg1d0d-7542cb94-3e2d-e0db340d42f0/server01
Generate support bundle in vCenter
SSH to the vCenter and run:
vc-support -l
<comments />