https://wiki.vi-toolkit.com/index.php?title=Esxcfg-info&feed=atom&action=historyEsxcfg-info - Revision history2024-03-29T11:18:34ZRevision history for this page on the wikiMediaWiki 1.41.0https://wiki.vi-toolkit.com/index.php?title=Esxcfg-info&diff=808&oldid=prevWila: added category2009-02-18T18:55:52Z<p>added category</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 19:55, 18 February 2009</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l69">Line 69:</td>
<td colspan="2" class="diff-lineno">Line 69:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[http://communities.vmware.com/message/912975 esx 3.5 (unix) command line to get the S/W iSCSI vmhba number]</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[http://communities.vmware.com/message/912975 esx 3.5 (unix) command line to get the S/W iSCSI vmhba number]</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category: ESX]] [[Category: SDK]]</ins></div></td></tr>
</table>Wilahttps://wiki.vi-toolkit.com/index.php?title=Esxcfg-info&diff=800&oldid=prevWila: New page: ==== esxcfg-info ==== The esxcfg-info command can be used to query the setup information of your ESX configuration and hardware setup. The tool is originally designed for debugging/trouble...2009-02-08T14:17:58Z<p>New page: ==== esxcfg-info ==== The esxcfg-info command can be used to query the setup information of your ESX configuration and hardware setup. The tool is originally designed for debugging/trouble...</p>
<p><b>New page</b></p><div>==== esxcfg-info ====<br />
The esxcfg-info command can be used to query the setup information of your ESX configuration and hardware setup. The tool is originally designed for debugging/troubleshooting your ESX configuration. Before ESX3.x this type of information could be retrieved from /proc/vmware but that use has now been depreciated and you should instead use this command.<br />
<br />
The output of the esxcfg-info command does change per version of ESX, for this reason you should be careful when using it in scripting and not to rely too much on the format. This dependency has been improved upon since ESX 3.5 by adding output formats that are more suitable for scripting.<br />
<br />
Calling it with -a or -all parameter will print out all information unfiltered. The output can be used to save as a backup of your host setup. If you ever have to reinstall the host then this file can then be used as a baseline for verification if your setup matches the old configuration.<br />
<br />
The command has the following additional options where most of them can be used to filter the output:<br />
-n --network<br />
Display the console and VMkernel network relevant configuration<br />
-s --storage<br />
Display everything about storage<br />
-w --hardware<br />
Display the hardware configuration from your server<br />
-y --software<br />
Display the software configuration of your ESX host<br />
-r --resource<br />
Get resource and schedule information<br />
-o --advopt<br />
Get advanced options<br />
-h --help<br />
print help<br />
ESX3.5 has added the following options:<br />
-F xml for formatting the output as xml<br />
-F perl for formatting the output format for scripting with perl.<br />
<br />
==== Usage examples ====<br />
By combining the output of the esxcfg-info command with grep you can retrieve interesting information from your host. Following are a number of examples of what you can do with this.<br />
<br />
===== Check 64 bits =====<br />
You can use esxcfg-info as a way to check if your host is 64 bits capable AND if VT is enabled in the BIOS.<br />
<br />
esxcfg-info -w | grep HV<br />
should return<br />
|----HV Support...............................................3<br />
when it returns 2 it means that the host is capable, but that VT has not been enabled in the bios.<br />
<br />
See also: [http://communities.vmware.com/message/1163510#1163510 How to tell if your host is 64 bit compatible without a reboot?]<br />
<br />
===== Currently configured VLAN tags =====<br />
You can retrieve what VLAN tags are configured on a physical switch that the ESX server connects to by querying for either the "_name" or the "Hint" keyword in the network part output from the esxcfg-info command.<br />
<br />
To see a list of all of the network hints for each adapter run:<br />
esxcfg-info -n | grep -E -i "_name|hint"<br />
<br />
taken from: [http://communities.vmware.com/thread/91189 esxcfg-info question]<br />
<br />
===== Find storage device =====<br />
<br />
esxcfg-info -s | grep vmhb | grep -i vmkernel<br />
which should give an output like:<br />
<br />
|---VmKernel Device Name..................vmhba0<br />
<br />
<br />
<br />
===== Identify LUN locks =====<br />
How-to identify hosts with unreleased SCSI reservations on LUNs.<br />
esxcfg-info -s | grep -i -B 12 pending<br />
<br />
[http://communities.vmware.com/message/1086636 LUN locks]<br />
<br />
===== Find software iSCSI vmhba number =====<br />
By querying 2 lines before the iscsi kernel module, you can find the name of the vmhba device used for the software iSCSI stack: <br />
root# esxcfg-info -s | grep -B 2 iscsi_mod<br />
|----Name...............................................vmhba34<br />
|----Console Name.......................................scsi3<br />
|----Driver.............................................iscsi_mod<br />
<br />
[http://communities.vmware.com/message/912975 esx 3.5 (unix) command line to get the S/W iSCSI vmhba number]</div>Wila