<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>Professional VMware &#187; service console</title> <atom:link href="http://professionalvmware.com/category/service-console/feed/" rel="self" type="application/rss+xml" /><link>http://professionalvmware.com</link> <description>How Many Turtles Can You Fit On A Rock?</description> <lastBuildDate>Thu, 24 May 2012 13:39:29 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>Removing VMware Snapshots &#8211; With a Bat (PowerShell, CLI, rCLI&#8230; and Perl)</title><link>http://professionalvmware.com/2009/01/removing-vmware-snapshots-with-a-bat-powershell-cli-rcli/</link> <comments>http://professionalvmware.com/2009/01/removing-vmware-snapshots-with-a-bat-powershell-cli-rcli/#comments</comments> <pubDate>Mon, 19 Jan 2009 15:56:00 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[powershell]]></category> <category><![CDATA[rcli]]></category> <category><![CDATA[service console]]></category> <category><![CDATA[snapshots]]></category> <category><![CDATA[VI Toolkit]]></category> <category><![CDATA[VM]]></category> <category><![CDATA[VMware]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2009/01/19/removing-vmware-snapshots-with-a-bat-powershell-cli-rcli/</guid> <description><![CDATA[I’ve found a few situations in which snapshots get stuck, like glue, to a running VM, and despite your best effort to delete them, they wont go away. Like in-laws, they stick around, a bit longer than is pleasant. If a snapshot has not been removed cleanly on the first try, you may want to [...]]]></description> <content:encoded><![CDATA[<p></p><p>I’ve found a few situations in which snapshots get stuck, like glue, to a running VM, and despite your best effort to delete them, they wont go away. Like in-laws, they stick around, a bit longer than is pleasant.</p><p>If a snapshot has not been removed cleanly on the first try, you may want to create a new snapshot first (just to make sure the system knows there IS a snapshot present) before using the methods below.</p><p>Here are a few ways of getting rid of the ones that don’t want to go away:</p><h3>From the Service Console (ESX)</h3><p><span
style="font-family: Courier New;">[root@esx esx:storage1]# vmware-cmd ./VMname/VMname.vmx removesnapshots<br
/> removesnapshots() = 1</span></p><h3>From PowerShell</h3><p><span
style="font-family: Courier New;">PS C:\&gt; get-vm VMname* | get-snapshot | Remove-Snapshot -Confirm:$false</span></p><h3>Using the rCLI</h3><p><span
style="font-family: Courier New;">C:\Program Files\VMware\VMware VI Remote CLI\bin&gt;vmware-cmd.pl -H esx -U root –P  password /vmfs/volumes/esx:storage1/VMname/VMname.vmx removesnapshots<br
/> removesnapshot () = 1</span></p><h3>Using the Perl Toolkit</h3><p><span
style="font-family: Courier New;">This brought to us by Andrew, an avid Perl Toolkit user:<br
/> </span>./snapshotmanager.pl –server your.vc.host –operation removeall –vmname some.bad.vm</p><p><strong>Warning, depending on the size of the snapshot, it may take a LONG while for them to go away! You can get an idea of how long it&#8217;s going to take by looking at how large the snapshots are with ls -lh and note the size of your largest snapshots. They bigger than a few deciGig (for those who don&#8217;t get it, that&#8217;s a few tens of Gigs, 10G-20G)? Shame on you.<br
/> </strong></p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2009/01/removing-vmware-snapshots-with-a-bat-powershell-cli-rcli/feed/</wfw:commentRss> <slash:comments>25</slash:comments> </item> <item><title>Managing NIC&#8217;s in ESX</title><link>http://professionalvmware.com/2008/12/managing-nics-in-esx/</link> <comments>http://professionalvmware.com/2008/12/managing-nics-in-esx/#comments</comments> <pubDate>Thu, 18 Dec 2008 21:45:00 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[ESX]]></category> <category><![CDATA[esx 3.5]]></category> <category><![CDATA[esxi]]></category> <category><![CDATA[networking]]></category> <category><![CDATA[NIC]]></category> <category><![CDATA[port group]]></category> <category><![CDATA[service console]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2008/12/18/managing-nics-in-esx/</guid> <description><![CDATA[Tom Howarth from PlanetVM turned me on to a great series of posts by Ed Haletky on how to manage different combinations of NIC’s in VMware ESX: Blue Gears &#8211; 2 Physical NICs with VMware ESX Blue Gears &#8211; 3 Physical NICs with VMware ESX Blue Gears &#8211; 4 Physical NICs with VMware ESX Blue [...]]]></description> <content:encoded><![CDATA[<p></p><p>Tom Howarth from <a
href="http://planetvm.net/blog/?p=142">PlanetVM</a> turned me on to a great series of posts by Ed Haletky on how to manage different combinations of NIC’s in VMware ESX:</p><ul><li><a
href="http://www.networkworld.com/community/node/35388">Blue Gears &#8211; 2 Physical NICs with VMware ESX</a></li><li>B<a
href="http://www.networkworld.com/community/node/35640">lue Gears &#8211; 3 Physical NICs with VMware ESX</a></li><li><a
href="http://www.networkworld.com/community/node/35854">Blue Gears &#8211; 4 Physical NICs with VMware ESX</a></li><li><a
href="http://www.networkworld.com/community/node/36174">Blue Gears &#8211; 5 Physical NICs with VMware ESX</a></li><li><a
href="http://www.networkworld.com/community/node/36359">Blue Gears &#8211; 6 Physical NICs with VMware ESX</a></li></ul><p>He covers the information quite thoroughly, making it a worthwhile read.</p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2008/12/managing-nics-in-esx/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>The Service Console: Part 3 &#8211; ESXi</title><link>http://professionalvmware.com/2008/12/the-service-console-part-3-esxi/</link> <comments>http://professionalvmware.com/2008/12/the-service-console-part-3-esxi/#comments</comments> <pubDate>Wed, 17 Dec 2008 14:29:00 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[esxi]]></category> <category><![CDATA[service console]]></category> <category><![CDATA[VI3]]></category> <category><![CDATA[VMware]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2008/12/17/the-service-console-part-3-esxi/</guid> <description><![CDATA[Well now. We’ve come a long way since parts 1 &#38; 2 haven’t we? That is all well and good considering, and makes for some light background reading.  However, the game changes with ESXi, as there is no “Supported” Service Console on it’s platform. In reality, the vmkernel runs a busybox executable. (Busybox is a [...]]]></description> <content:encoded><![CDATA[<p></p><p>Well now. We’ve come a long way since parts 1 &amp; 2 haven’t we? That is all well and good considering, and makes for some light background reading.  However, the game changes with ESXi, as there is no “Supported” Service Console on it’s platform.</p><p>In reality, the vmkernel runs a busybox executable. (Busybox is a linux in an executable binary sort of thing), and you can enable DropBear SSH, and the like on it. Doing this however, will likely <a
href="http://blogs.vmware.com/vmtn/2008/11/keep-your-vmwar.html">void your warranty or support agreement</a>, or prevent you from getting your per incident support taken care of, so I strongly recommend against it.</p><p>With that said then.  How does ESXi handle all of the communication we talked about before, how do you make it redundant, and how do you interact with ESXi in a meaningful way?  Let’s take a look at the first two, the last will be covered in a future post.</p><p><span
id="more-177"></span></p><h3>“Service Console” Communications in ESXi</h3><p>How does ESXi overcome it’s lack of a good and proper “Service Console”? At the physical console you get something that resembles a server BIOS screen from which you can configure the ESXi host.</p><p><a
href="http://professionalvmware.com/wp-content/uploads/2008/12/esxi2.png"><img
style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="esxi2.png" src="http://professionalvmware.com/wp-content/uploads/2008/12/esxi2-thumb.png" border="0" alt="esxi2.png" width="244" height="136" /></a></p><p>So that’s cool, but how does it communicate with the VI Client or VMware’s vCenter (formerly Virtual Center)? It does this using a “Management IP”. By default this Management IP is set by DHCP at host boot time, or can be configured manually from the console above. Remember this IP.</p><h3>Making ESXi Management Communication Redundant</h3><p>This actually works in quite the same way it did for the <em>“Fat” </em>version of ESX (Classic). You can setup NIC teaming, and a redundant vSwitch on another network. <a
href="http://professionalvmware.com/2008/12/03/the-service-console-part-2-redundancy/">Read Part 2 for more information there</a>.</p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2008/12/the-service-console-part-3-esxi/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>The Service Console: Part 2 &#8211; Redundancy</title><link>http://professionalvmware.com/2008/12/the-service-console-part-2-redundancy/</link> <comments>http://professionalvmware.com/2008/12/the-service-console-part-2-redundancy/#comments</comments> <pubDate>Wed, 03 Dec 2008 14:13:00 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[ESX]]></category> <category><![CDATA[esx 3.5]]></category> <category><![CDATA[service console]]></category> <category><![CDATA[VI3]]></category> <category><![CDATA[VMware]]></category> <guid
isPermaLink="false">http://professionalvmware.com/2008/12/03/the-service-console-part-2-redundancy/</guid> <description><![CDATA[Now that we’ve discussed what the service console is and what it does for you. We’ll talk about making it redundant, why Service Console Redundancy is important, and some ways of going about that. Another “Pretty Big Task” but one worth sticking around for (at least for the cookies at the end). The Department of [...]]]></description> <content:encoded><![CDATA[<p></p><p>Now that we’ve discussed what the service console is and what it does for you. We’ll talk about making it redundant, why Service Console Redundancy is important, and some ways of going about that. Another “Pretty Big Task” but one worth sticking around for (at least for the cookies at the end).</p><h3>The Department of Redundancy Department</h3><p>What is redundancy? I think perhaps that redundantly describing redundancy in an article on making redundant things redundant would be… well, redundant. Enough of that! In the context of the Service Console, redundancy is simply a means to provide continuous access to the Service Console and it’s services. A big task considering everything that was covered in Part 1 (link).</p><p>So why is this important? Lets cover it on an item by item basis from part 1:</p><p>Communications: Losing communication with your ESX host may not seem to be that big a deal. After all, your Virtual Machines will continue to run, wont they? If you’ve separated your Virtual Machine network from your Service Console network, then they (the VM’s that is) are still communicating with the remainder of the network. So why is losing communication with the Service Console bad? Well, you lose connectivity to the following:</p><ul><li>Command Line Interface (CLI)</li><li>SSH Access</li><li>Web Management (this includes SOAP, and the other various API’s)</li><li>Using the VMware Infrastructure Client</li><li>Communication with Virtual Center</li></ul><p>So in some environments this may not be an issue, but alas, one has to manage and monitor the ESX host, so already you need… well all of them. Further, if you have this host in a cluster of ESX hosts this will very well likely break High Availability. What? My HA? My Precious HA? You mean I spent all of that money on HA licensing, and something as simple as service console communication can take that out? Look again at the last bullet point there, go ahead, I’ll wait. So knowing that the service console is responsible for communicating with virtual center, and knowing that the Virtual Center checks for HA, and communicates HA decisions back to ESX, it then becomes critical that you have redundant service consoles. At least if you don’t want your VM’s rebooting for no reason.</p><h3>How do I make it redundant?</h3><p>There are as many was to do this as there are episodes of Seinfeld. Really.&#160; That said, we’ll go over a few of those ways.</p><h4>Redundant NICS</h4><p>That’s right, as simple as that.&#160; On your Service Console vSwitch, just add a second&#160; NIC and away you go. What this does is setup a fail over pair, and open up the opportunity for load balancing, should you also have VM traffic flowing over that NIC.</p><h4>Redundant vSwitches</h4><p>This one takes a bit more doing, as it requires two (or more) networks, and at least two NICs as well. Having two vSwitches, with one separate for management is a best practice anyways.&#160; To implement redundant SC’s in this setup, is to add a Service Console to both your management vSwitch and your VM vSwitch.&#160; While you may be mixing traffic in this case (management with the VM’s) your risk should be mitigated by the ESX firewall and strong user/passwords, as this service console would only be used in emergencies. Please note, this can be any network that supports VM traffic, so if you have a network on your ESX host(s) dedicated to Backup, you can likely put the additional Service Console there.</p><h4>Redundant NICS with Redundant vSwitches</h4><p>Ok, so this one was to be a neat little pain in the rear, really.&#160; It’ basically combines both of the above, by throwing redundant nic’s onto the redundant vSwitches.&#160; While we’re at it, to make it more redundant, lets throw in redundant Physical switches on the uplink end as well.&#160; <img
src='http://professionalvmware.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p>For further discussion on Service Console Redundancy, I’d like to point you at <a
href="http://www.yellow-bricks.com/2008/01/14/service-console-redundancy/">yellow-bricks</a>. (Note: We’ve been talking about option 3 for most of ours)</p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2008/12/the-service-console-part-2-redundancy/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Those esxcfg- commands.</title><link>http://professionalvmware.com/2008/11/those-esxcfg-commands/</link> <comments>http://professionalvmware.com/2008/11/those-esxcfg-commands/#comments</comments> <pubDate>Wed, 19 Nov 2008 15:42:00 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[ESX]]></category> <category><![CDATA[esx cli config]]></category> <category><![CDATA[esxcfg]]></category> <category><![CDATA[esxi]]></category> <category><![CDATA[rcli]]></category> <category><![CDATA[service console]]></category> <category><![CDATA[vima]]></category> <category><![CDATA[VMware]]></category> <guid
isPermaLink="false">http://professionalvmware.com/?p=18</guid> <description><![CDATA[Found a great resource explaining quite a few of the esxcfg-* commands, what they are and their use. They&#8217;re copied here for future reference. NOTE: These will work from the rcli, SSH to the service console, or via VIMA. I&#8217;ve not tested these on ESXi (as the Service Console is &#8216;unsupported&#8217;) To get a feel [...]]]></description> <content:encoded><![CDATA[<p></p><p
style="MARGIN: 0in 0in 0pt">Found a great resource explaining quite a few of the esxcfg-* commands, what they are and their use. They&#8217;re copied here for future reference.</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">NOTE: These will work from the rcli, SSH to the service console, or via VIMA. I&#8217;ve not tested these on ESXi (as the Service Console is &#8216;unsupported&#8217;)</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><blockquote><p
style="MARGIN: 0in 0in 0pt">To get a feel for what commands are available, log on to the console (or via ssh if you like), and type</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-[TAB][TAB].</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-</p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-advcfg esxcfg-firewall esxcfg-module esxcfg-pciid esxcfg-swiscsi esxcfg-vswif</p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-auth esxcfg-info esxcfg-mpath esxcfg-rescan esxcfg-upgrade esxcfg-vswitch</p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-boot esxcfg-init esxcfg-nas esxcfg-resgrp esxcfg-vmhbadevs</p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-dumppart esxcfg-linuxnet esxcfg-nics esxcfg-route esxcfg-vmknic</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-advcfg</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">From the man page &#8220;…provides an interface to query and modify the advanced options of the VMkernel. These options control a wide variety of different areas in the VMkernel including storage, resource, and networking global settings.&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Use esxcfg-info -o (discussed below) to output the advanced parameters to a file for further investigation.</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Here are some examples:</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-advcfg -g /VMFS3/ZeroedThickVirtualDisks</p><p><p
style="MARGIN: 0in 0in 0pt">Value of ZeroedThickVirtualDisks is 1</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-advcfg -g /Disk/SupportSparseLUN</p><p><p
style="MARGIN: 0in 0in 0pt">Value of SupportSparseLUN is 1</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-advcfg -g /Disk/MaxLUN</p><p><p
style="MARGIN: 0in 0in 0pt">Value of MaxLUN is 256</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-advcfg -g /Scsi/ConflictRetries</p><p><p
style="MARGIN: 0in 0in 0pt">Value of ConflictRetries is 80</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-advcfg -g /LVM/EnableResignature</p><p><p
style="MARGIN: 0in 0in 0pt">Value of EnableResignature is 0</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-advcfg -g /Net/NotifySwitch</p><p><p
style="MARGIN: 0in 0in 0pt">Value of NotifySwitch is 1</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">So what can you configure? Read through the output of esxcfg-info -o and look at how the values are listed.</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-auth</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">From the man page &#8220;…provides an easy way to configure your server to allow network based authentication as well as password complexity settings for your machine. It supports setting up your system to do authentication against an Active Directory Server, but not user management, as well as authentication against a NIS server, a Kerberos server, or an LDAP server. You can configure the way that passwords are stored and the complexity of the password when a user sets a new password.</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">This utility is experimental. It is likely to change.&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">So let&#8217;s do something with it and update vmware-authd as well.</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-auth -enablead -addomain=domain.net -addc=adserver.domain.net -krb5realm=domain.net -krb5kdc=adserver.domain.net -krb5adminserver=adserver.domain.net</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-auth -passmaxdays=0</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Update vmware-authd to allow AD logon</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">echo &#8220;#%PAM-1.0″ &gt; /etc/pam.d/vmware-authd</p><p><p
style="MARGIN: 0in 0in 0pt">echo &#8220;# Built by script&#8221; &gt;&gt; /etc/pam.d/vmware-authd</p><p><p
style="MARGIN: 0in 0in 0pt">echo &#8220;auth sufficient /lib/security/pam_unix_auth.so shadow nullok&#8221; &gt;&gt; /etc/pam.d/vmware-authd</p><p><p
style="MARGIN: 0in 0in 0pt">echo &#8220;auth required /lib/security/pam_krb5.so use_first_pass&#8221; &gt;&gt; /etc/pam.d/vmware-authd</p><p><p
style="MARGIN: 0in 0in 0pt">echo &#8220;auth sufficient /lib/security/pam_ldap.so&#8221; &gt;&gt; /etc/pam.d/vmware-authd</p><p><p
style="MARGIN: 0in 0in 0pt">echo &#8220;account required /lib/security/pam_unix_acct.so&#8221; &gt;&gt; /etc/pam.d/vmware-authd</p><p><p
style="MARGIN: 0in 0in 0pt">echo &#8220;account sufficient /lib/security/pam_ldap.so&#8221; &gt;&gt; /etc/pam.d/vmware-authd</p><p><p
style="MARGIN: 0in 0in 0pt">echo &#8220;vmware-authd updated&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-boot</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-boot -h -help</p><p><p
style="MARGIN: 0in 0in 0pt">-q -query boot|vmkmod</p><p><p
style="MARGIN: 0in 0in 0pt">-p -update-pci</p><p><p
style="MARGIN: 0in 0in 0pt">-b -update-boot</p><p><p
style="MARGIN: 0in 0in 0pt">-d -rootdev UUID=&lt;uuid&gt;</p><p><p
style="MARGIN: 0in 0in 0pt">-a -kernelappend &lt;kernel append&gt;</p><p><p
style="MARGIN: 0in 0in 0pt">-r -refresh-initrd</p><p><p
style="MARGIN: 0in 0in 0pt">-g -regenerate-grub</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Queries cannot be combined with each other or other options.</p><p><p
style="MARGIN: 0in 0in 0pt">Passing -p or -d enables -b even if it is not passed explicitly.</p><p><p
style="MARGIN: 0in 0in 0pt">-b implies -g plus a new initrd creation.</p><p><p
style="MARGIN: 0in 0in 0pt">-b and -r are incompatible, but -g and -r can be combined.</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-dumppart</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">From the man page &#8220;…provides an interface to query, set, and scan for diagnostic partitions on an ESX Server. That is, it can be used to configure or list the VMkernel crash dump partition.&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-dumppart -l</p><p><p
style="MARGIN: 0in 0in 0pt">VM Kernel Name Console Name Is Active Is Configured</p><p><p
style="MARGIN: 0in 0in 0pt">vmhba0:0:0:10 /dev/sda10 yes yes</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-dumppart -f</p><p><p
style="MARGIN: 0in 0in 0pt">Partition number 10 on vml.0000000000766d686261303a303a30 -&gt; vmhba0:0:0:10 -&gt; /dev/sda10</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-firewall</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-firewall &#8220;…provides an interface to query and modify the service console firewall settings.&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">For example, if you want to open all of the ports on your firewall, issue the following commands:</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-firewall -allowIncoming</p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-firewall -allowOutgoing</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">You might then want to re-enable the firewall, by doing the following:</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-firewall -blockIncoming</p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-firewall -blockOutgoing</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Rules are no fun without exceptions, so here&#8217;s how to add them to your ruleset. ESX comes with a number of pre-canned exceptions that can be added by name. Some examples are below:</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-firewall -enableService snmpd</p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-firewall -enableService ntpClient</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">These are the services you can enable by name:</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">nfsClient</p><p><p
style="MARGIN: 0in 0in 0pt">ftpServer</p><p><p
style="MARGIN: 0in 0in 0pt">ntpClient</p><p><p
style="MARGIN: 0in 0in 0pt">dellom</p><p><p
style="MARGIN: 0in 0in 0pt">nisClient</p><p><p
style="MARGIN: 0in 0in 0pt">vncServer</p><p><p
style="MARGIN: 0in 0in 0pt">tmpLicenseClient</p><p><p
style="MARGIN: 0in 0in 0pt">swISCSIClient</p><p><p
style="MARGIN: 0in 0in 0pt">CIMHttpsServer</p><p><p
style="MARGIN: 0in 0in 0pt">sshClient</p><p><p
style="MARGIN: 0in 0in 0pt">snmpd</p><p><p
style="MARGIN: 0in 0in 0pt">tmpAAMClient</p><p><p
style="MARGIN: 0in 0in 0pt">vpxHeartbeats</p><p><p
style="MARGIN: 0in 0in 0pt">smbClient</p><p><p
style="MARGIN: 0in 0in 0pt">hpim</p><p><p
style="MARGIN: 0in 0in 0pt">tmpHostVmdbServer</p><p><p
style="MARGIN: 0in 0in 0pt">tmpHostdSOAPServer</p><p><p
style="MARGIN: 0in 0in 0pt">ftpClient</p><p><p
style="MARGIN: 0in 0in 0pt">sshServer</p><p><p
style="MARGIN: 0in 0in 0pt">ibmdirector</p><p><p
style="MARGIN: 0in 0in 0pt">CIMHttpServer</p><p><p
style="MARGIN: 0in 0in 0pt">telnetClient</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">If, however, you want to do something non-standard (in this case for IBM Director), do this:</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-firewall -openPort 14247,tcp,out,IBMDirector</p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-firewall -openPort 14247,tcp,in,IBMDirector</p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-firewall -openPort 14247,udp,in,IBMDirector</p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-firewall -openPort 14247,udp,out,IBMDirector</p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-firewall -openPort 14248,tcp,out,IBMDirector</p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-firewall -openPort 14248,tcp,in,IBMDirector</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Once you&#8217;ve made your changes, restart the firewall service:</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">service firewall restart</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-info</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">From the man page &#8220;…provides a view of the internal state of the VMkernel and Service Console components. This tool is designed to provide information used in debugging and troubleshooting VMware ESX Servers.&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">I suggest you pipe these to a text file, as the output is substantial, and takes an age to scroll through on my terminal.</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Usage: esxcfg-info mode</p><p><p
style="MARGIN: 0in 0in 0pt">-a, -all Print all information</p><p><p
style="MARGIN: 0in 0in 0pt">-w, -hardware Print hardware information</p><p><p
style="MARGIN: 0in 0in 0pt">-r, -resource Print resource information</p><p><p
style="MARGIN: 0in 0in 0pt">-s, -storage Print storage information</p><p><p
style="MARGIN: 0in 0in 0pt">-n, -network Print network information</p><p><p
style="MARGIN: 0in 0in 0pt">-y, -system Print system information</p><p><p
style="MARGIN: 0in 0in 0pt">-o, -advopt Print advanced options</p><p><p
style="MARGIN: 0in 0in 0pt">-h, -help Print this message.</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-info -a &gt;esxcfg-info.output</p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# less esxcfg-info.output</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-init</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">From the man page &#8220;…is used to initialize pci device names and advanced configuration options for the VMkernel on system boot</p><p><p
style="MARGIN: 0in 0in 0pt">and is NOT intended for use outside of initialization scripts.&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-linuxnet</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-linuxnet -setup</p><p><p
style="MARGIN: 0in 0in 0pt">-remove</p><p><p
style="MARGIN: 0in 0in 0pt">-h -help</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">The -setup option cannot be combined with the -remove option.</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Used to replicate the IP parameters assigned to vswif0 to eth0 in Linux troubleshooting mode</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-module</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">From the man page &#8220;…provides an interface into the driver modules loaded on system startup and allows modules to be disabled or added.&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Example usage:</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-module -l</p><p><p
style="MARGIN: 0in 0in 0pt">Device Driver Modules</p><p><p
style="MARGIN: 0in 0in 0pt">Module Type Enabled Loaded</p><p><p
style="MARGIN: 0in 0in 0pt">vmkapimod vmkapimod true true</p><p><p
style="MARGIN: 0in 0in 0pt">vmklinux linux true true</p><p><p
style="MARGIN: 0in 0in 0pt">bnx2 nic true true</p><p><p
style="MARGIN: 0in 0in 0pt">aacraid_esx30 scsi true true</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-module -q</p><p><p
style="MARGIN: 0in 0in 0pt">vmkapimod vmkapimod</p><p><p
style="MARGIN: 0in 0in 0pt">vmklinux linux</p><p><p
style="MARGIN: 0in 0in 0pt">bnx2 nic</p><p><p
style="MARGIN: 0in 0in 0pt">aacraid_esx30 scsi</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-mpath</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-mpath configures multipath settings for Fibre Channel or iSCSI LUNs.</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">This is useful to check your zoning on large SAN implementations.</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-mpath -l</p><p><p
style="MARGIN: 0in 0in 0pt">Disk vmhba0:0:0 /dev/sda (139900MB) has 1 paths and policy of Fixed</p><p><p
style="MARGIN: 0in 0in 0pt">Local 4:0.0 vmhba0:0:0 On active preferred</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Disk vmhba1:0:1 /dev/sdb (307200MB) has 2 paths and policy of Most Recently Used</p><p><p
style="MARGIN: 0in 0in 0pt">FC 28:0.0 210000e08b9d2a7a&lt;-&gt;200400a0b829871d vmhba1:0:1 On active preferred</p><p><p
style="MARGIN: 0in 0in 0pt">FC 28:0.1 210100e08bbd2a7a&lt;-&gt;200500a0b829871e vmhba2:0:1 Standby</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Disk vmhba1:0:2 /dev/sdd (307200MB) has 2 paths and policy of Most Recently Used</p><p><p
style="MARGIN: 0in 0in 0pt">FC 28:0.0 210000e08b9d2a7a&lt;-&gt;200400a0b829871d vmhba1:0:2 Standby preferred</p><p><p
style="MARGIN: 0in 0in 0pt">FC 28:0.1 210100e08bbd2a7a&lt;-&gt;200500a0b829871e vmhba2:0:2 On active</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Disk vmhba1:0:3 /dev/sde (307200MB) has 2 paths and policy of Most Recently Used</p><p><p
style="MARGIN: 0in 0in 0pt">FC 28:0.0 210000e08b9d2a7a&lt;-&gt;200400a0b829871d vmhba1:0:3 On active preferred</p><p><p
style="MARGIN: 0in 0in 0pt">FC 28:0.1 210100e08bbd2a7a&lt;-&gt;200500a0b829871e vmhba2:0:3 Standby</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Disk vmhba1:0:4 /dev/sdg (204800MB) has 2 paths and policy of Most Recently Used</p><p><p
style="MARGIN: 0in 0in 0pt">FC 28:0.0 210000e08b9d2a7a&lt;-&gt;200400a0b829871d vmhba1:0:4 Standby preferred</p><p><p
style="MARGIN: 0in 0in 0pt">FC 28:0.1 210100e08bbd2a7a&lt;-&gt;200500a0b829871e vmhba2:0:4 On active</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Disk vmhba1:0:5 /dev/sdh (204800MB) has 2 paths and policy of Most Recently Used</p><p><p
style="MARGIN: 0in 0in 0pt">FC 28:0.0 210000e08b9d2a7a&lt;-&gt;200400a0b829871d vmhba1:0:5 On active preferred</p><p><p
style="MARGIN: 0in 0in 0pt">FC 28:0.1 210100e08bbd2a7a&lt;-&gt;200500a0b829871e vmhba2:0:5 Standby</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Disk vmhba1:0:6 /dev/sdi (25600MB) has 2 paths and policy of Most Recently Used</p><p><p
style="MARGIN: 0in 0in 0pt">FC 28:0.0 210000e08b9d2a7a&lt;-&gt;200400a0b829871d vmhba1:0:6 Standby preferred</p><p><p
style="MARGIN: 0in 0in 0pt">FC 28:0.1 210100e08bbd2a7a&lt;-&gt;200500a0b829871e vmhba2:0:6 On active</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Disk vmhba1:0:7 /dev/sdj (25600MB) has 2 paths and policy of Most Recently Used</p><p><p
style="MARGIN: 0in 0in 0pt">FC 28:0.0 210000e08b9d2a7a&lt;-&gt;200400a0b829871d vmhba1:0:7 On active preferred</p><p><p
style="MARGIN: 0in 0in 0pt">FC 28:0.1 210100e08bbd2a7a&lt;-&gt;200500a0b829871e vmhba2:0:7 Standby</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Disk vmhba1:0:8 /dev/sdl (691200MB) has 2 paths and policy of Most Recently Used</p><p><p
style="MARGIN: 0in 0in 0pt">FC 28:0.0 210000e08b9d2a7a&lt;-&gt;200400a0b829871d vmhba1:0:8 On active preferred</p><p><p
style="MARGIN: 0in 0in 0pt">FC 28:0.1 210100e08bbd2a7a&lt;-&gt;200500a0b829871e vmhba2:0:8 Standby</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Disk vmhba1:0:31 /dev/sdf (20MB) has 1 paths and policy of Fixed</p><p><p
style="MARGIN: 0in 0in 0pt">FC 28:0.0 210000e08b9d2a7a&lt;-&gt;200400a0b829871d vmhba1:0:31 On active preferred</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Disk vmhba1:0:10 /dev/sdc (691200MB) has 2 paths and policy of Most Recently Used</p><p><p
style="MARGIN: 0in 0in 0pt">FC 28:0.0 210000e08b9d2a7a&lt;-&gt;200400a0b829871d vmhba1:0:10 On active preferred</p><p><p
style="MARGIN: 0in 0in 0pt">FC 28:0.1 210100e08bbd2a7a&lt;-&gt;200500a0b829871e vmhba2:0:10 Standby</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Disk vmhba2:0:31 /dev/sdk (20MB) has 1 paths and policy of Fixed</p><p><p
style="MARGIN: 0in 0in 0pt">FC 28:0.1 210100e08bbd2a7a&lt;-&gt;200500a0b829871e vmhba2:0:31 On active preferred</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-nas</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-nas provides an interface to manipulate NAS file systems on an ESX Server.</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-nas &lt;options&gt; [&lt;label&gt;]</p><p><p
style="MARGIN: 0in 0in 0pt">-a|-add Add a new NAS filesystem to /vmfs volumes.</p><p><p
style="MARGIN: 0in 0in 0pt">Requires -host and -share options.</p><p><p
style="MARGIN: 0in 0in 0pt">-o|-host &lt;host&gt; Set the host name or ip address for a NAS mount.</p><p><p
style="MARGIN: 0in 0in 0pt">-s|-share &lt;share&gt; Set the name of the NAS share on the remote system.</p><p><p
style="MARGIN: 0in 0in 0pt">-d|-delete Unmount and delete a filesystem.</p><p><p
style="MARGIN: 0in 0in 0pt">-l|-list List the currently mounted NAS file systems.</p><p><p
style="MARGIN: 0in 0in 0pt">-r|-restore Restore all NAS mounts from the configuration file.</p><p><p
style="MARGIN: 0in 0in 0pt">(FOR INTERNAL USE ONLY).</p><p><p
style="MARGIN: 0in 0in 0pt">-h|-help Show this message.</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">For example, if you want to connect to a NAS</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-nas -a -o 100.100.100.253 -s /Test NFS02</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-nics</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">From the man page &#8220;…provides information about the Physical NICs in use by the VMkernel. This will print the VMkernel name for the NIC, its PCI ID, Driver, Link state, Speed, Duplex, and a shore PCI description of the card. It also allows users to set speed and duplex settings for a specific NIC.&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-nics</p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-nics &lt;options&gt; [nic]</p><p><p
style="MARGIN: 0in 0in 0pt">-s|-speed &lt;speed&gt; Set the speed of this NIC to one of 10/100/1000/10000.</p><p><p
style="MARGIN: 0in 0in 0pt">Requires a NIC parameter.</p><p><p
style="MARGIN: 0in 0in 0pt">-d|-duplex &lt;duplex&gt; Set the duplex of this NIC to one of &#8216;full&#8217; or &#8216;half&#8217;.</p><p><p
style="MARGIN: 0in 0in 0pt">Requires a NIC parameter.</p><p><p
style="MARGIN: 0in 0in 0pt">-a|-auto Set speed and duplexity automatically. Requires a NIC parameter.</p><p><p
style="MARGIN: 0in 0in 0pt">-l|-list Print the list of NICs and their settings.</p><p><p
style="MARGIN: 0in 0in 0pt">-r|-restore Restore the nics configured speed/duplex settings (INTERNAL ONLY)</p><p><p
style="MARGIN: 0in 0in 0pt">-h|-help Display this message.</p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-nics -l</p><p><p
style="MARGIN: 0in 0in 0pt">Name PCI Driver Link Speed Duplex Description</p><p><p
style="MARGIN: 0in 0in 0pt">vmnic0 03:00.00 bnx2 Up 1000Mbps Full Broadcom Corporation Broadcom NetXtreme II BCM5708 1000Base-T</p><p><p
style="MARGIN: 0in 0in 0pt">vmnic1 06:00.00 bnx2 Up 1000Mbps Full Broadcom Corporation Broadcom NetXtreme II BCM5708 1000Base-T</p><p><p
style="MARGIN: 0in 0in 0pt">vmnic2 08:03.00 tg3 Up 1000Mbps Full Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet</p><p><p
style="MARGIN: 0in 0in 0pt">vmnic3 08:03.01 tg3 Up 1000Mbps Full Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-pciid</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-rescan</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-rescan &lt;vmkernel SCSI adapter name&gt;</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-rescan vmhba0</p><p><p
style="MARGIN: 0in 0in 0pt">Rescanning vmhba0…done.</p><p><p
style="MARGIN: 0in 0in 0pt">On scsi0, removing: 0:0.</p><p><p
style="MARGIN: 0in 0in 0pt">On scsi0, adding: 0:0.</p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-rescan vmhba1</p><p><p
style="MARGIN: 0in 0in 0pt">Rescanning vmhba1…done.</p><p><p
style="MARGIN: 0in 0in 0pt">On scsi1, removing: 0:1 0:10 0:2 0:3 0:31 0:4 0:5 0:6 0:7 0:8.</p><p><p
style="MARGIN: 0in 0in 0pt">On scsi1, adding: 0:1 0:10 0:2 0:3 0:31 0:4 0:5 0:6 0:7 0:8.</p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-rescan vmhba2</p><p><p
style="MARGIN: 0in 0in 0pt">Rescanning vmhba2…done.</p><p><p
style="MARGIN: 0in 0in 0pt">On scsi2, removing: 0:31.</p><p><p
style="MARGIN: 0in 0in 0pt">On scsi2, adding: 0:31.</p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]#</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-resgrp</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">From the man page &#8220;…provides an interface to manipulate resource group hierarchy.</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Usage: esxcfg-resgrp [options] [resgrp path]</p><p><p
style="MARGIN: 0in 0in 0pt">-a, -add rgname Add a new group under the path</p><p><p
style="MARGIN: 0in 0in 0pt">-d, -delete Delete the resource group</p><p><p
style="MARGIN: 0in 0in 0pt">-l, -list List all the resource groups</p><p><p
style="MARGIN: 0in 0in 0pt">Or stats about a specific resource group</p><p><p
style="MARGIN: 0in 0in 0pt">-restore Restore all resource groups from configuration</p><p><p
style="MARGIN: 0in 0in 0pt">file (FOR INTERNAL USE ONLY).</p><p><p
style="MARGIN: 0in 0in 0pt">-h, -help Show this message</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-route</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">From the man page &#8220;…provides an interface to manipulate VMkernel IP stack&#8217;s default route entry.&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-route &lt;options&gt; [&lt;network&gt; [&lt;netmask] &lt;gateway&gt;]</p><p><p
style="MARGIN: 0in 0in 0pt">&lt;network&gt; can be specified in 2 ways:</p><p><p
style="MARGIN: 0in 0in 0pt">* As a single argument in &lt;Network&gt;/&lt;Mask&gt; format</p><p><p
style="MARGIN: 0in 0in 0pt">* Or as a &lt;Network&gt; &lt;Netmask&gt; pair.</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">&lt;gateway&gt; is either an IP address or &#8216;default&#8217;</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">-a|-add Add route, to the VMkernel,</p><p><p
style="MARGIN: 0in 0in 0pt">requires network address (or default)</p><p><p
style="MARGIN: 0in 0in 0pt">and gateway IP address</p><p><p
style="MARGIN: 0in 0in 0pt">-d|-del Delete route from VMkernel.</p><p><p
style="MARGIN: 0in 0in 0pt">Requires network address (or &#8220;default&#8221;)</p><p><p
style="MARGIN: 0in 0in 0pt">-l|-list List configured routes for the service console</p><p><p
style="MARGIN: 0in 0in 0pt">-r|-restore Restore route setting to configured values</p><p><p
style="MARGIN: 0in 0in 0pt">on system start. (INTERNAL USE ONLY)</p><p><p
style="MARGIN: 0in 0in 0pt">-h|-help Show this message.</p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-route -l</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">VM Kernel Routes:</p><p><p
style="MARGIN: 0in 0in 0pt">Network Netmask Gateway</p><p><p
style="MARGIN: 0in 0in 0pt">192.168.100.0 255.255.255.0 Local Subnet</p><p><p
style="MARGIN: 0in 0in 0pt">default 0.0.0.0 Local Subnet</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-swiscsi</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">From the man page &#8220;…provides an interface to configure Software iSCSI. if no arguments are given, esxcfg-swiscsi displays the help message.&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Usage: esxcfg-swiscsi options</p><p><p
style="MARGIN: 0in 0in 0pt">-e, -enable Enable sw iscsi</p><p><p
style="MARGIN: 0in 0in 0pt">-d, -disable Disable sw iscsi</p><p><p
style="MARGIN: 0in 0in 0pt">-q, -query Check if sw iscsi is on/off</p><p><p
style="MARGIN: 0in 0in 0pt">-s, -scan Scan for disk available through sw iscsi interface</p><p><p
style="MARGIN: 0in 0in 0pt">-k, -kill Try to forcibly remove iscsi sw stack</p><p><p
style="MARGIN: 0in 0in 0pt">-r, -restore Restore sw iscsi configuration from file</p><p><p
style="MARGIN: 0in 0in 0pt">(FOR INTERNAL USE ONLY)</p><p><p
style="MARGIN: 0in 0in 0pt">-h, -help Show this message</p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-swiscsi -q</p><p><p
style="MARGIN: 0in 0in 0pt">Software iSCSI is enabled</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# vmkiscsi-tool -h</p><p><p
style="MARGIN: 0in 0in 0pt">vmkiscsi-tool -h -help</p><p><p
style="MARGIN: 0in 0in 0pt">-R -discoveryStatus : Print discovery status.</p><p><p
style="MARGIN: 0in 0in 0pt">-D -discovery</p><p><p
style="MARGIN: 0in 0in 0pt">-S -static: Static Discovery Targets</p><p><p
style="MARGIN: 0in 0in 0pt">-A -Authentication</p><p><p
style="MARGIN: 0in 0in 0pt">-T -Target</p><p><p
style="MARGIN: 0in 0in 0pt">-L -Lun</p><p><p
style="MARGIN: 0in 0in 0pt">-P -Phba</p><p><p
style="MARGIN: 0in 0in 0pt">-N -Network: network properties</p><p><p
style="MARGIN: 0in 0in 0pt">-p -Pnp: Physical Network Portal properties</p><p><p
style="MARGIN: 0in 0in 0pt">-t -ipv4AddrType</p><p><p
style="MARGIN: 0in 0in 0pt">-i -ipv4Address</p><p><p
style="MARGIN: 0in 0in 0pt">-d -dnsserver</p><p><p
style="MARGIN: 0in 0in 0pt">-g -gateway</p><p><p
style="MARGIN: 0in 0in 0pt">-s -subnetmask</p><p><p
style="MARGIN: 0in 0in 0pt">-I -iSCSIname</p><p><p
style="MARGIN: 0in 0in 0pt">-k -Alias</p><p><p
style="MARGIN: 0in 0in 0pt">-e -ethernet: Link Status</p><p><p
style="MARGIN: 0in 0in 0pt">-c -ipconfig: enable/disable DHCP, ARP redirect</p><p><p
style="MARGIN: 0in 0in 0pt">-X -Reset</p><p><p
style="MARGIN: 0in 0in 0pt">Subcommands</p><p><p
style="MARGIN: 0in 0in 0pt">-l -list</p><p><p
style="MARGIN: 0in 0in 0pt">-r -remove</p><p><p
style="MARGIN: 0in 0in 0pt">-a -add</p><p><p
style="MARGIN: 0in 0in 0pt">-m -authMethod : specify method for add/remove</p><p><p
style="MARGIN: 0in 0in 0pt">-f -flag: set a discovery or authentication flag</p><p><p
style="MARGIN: 0in 0in 0pt">adapterName</p><p><p
style="MARGIN: 0in 0in 0pt">Combine -l with an option to display the current information.</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# vmkiscsi-tool vmhba40 -P -l</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">=========PHBA Properties for Adapter vmhba40=========</p><p><p
style="MARGIN: 0in 0in 0pt">VENDOR : VMware</p><p><p
style="MARGIN: 0in 0in 0pt">MODEL : VMware-Isoft</p><p><p
style="MARGIN: 0in 0in 0pt">DESCRIPTION : VMware Software Initiator</p><p><p
style="MARGIN: 0in 0in 0pt">SERIAL NUMBER :</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">=========Node Properties for Adapter vmhba40=========</p><p><p
style="MARGIN: 0in 0in 0pt">NODE NAME VALID : 1</p><p><p
style="MARGIN: 0in 0in 0pt">NODE NAME : iqn.1998-01.com.vmware:vi3host-3fc07e31</p><p><p
style="MARGIN: 0in 0in 0pt">NODE ALIAS VALID : 1</p><p><p
style="MARGIN: 0in 0in 0pt">NODE ALIAS : vi3host.network.internal</p><p><p
style="MARGIN: 0in 0in 0pt">NODE NAME AND ALIAS SETTABLE: 1</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">So if you combine this command, vmkiscsi-tool and esxcfg-rescan, you can automate iscsi setup in scripted installs (useful when combined with UDA).</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Set-up iSCSI Software Emulator and Force a Rescan of vmhba40</p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-swiscsi -e</p><p><p
style="MARGIN: 0in 0in 0pt">vmkiscsi-tool -D -a 192.168.100.139 vmhba40</p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-swiscsi -s</p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-rescan vmhba40</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-upgrade</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-upgrade -h -help</p><p><p
style="MARGIN: 0in 0in 0pt">-g -convert-grub</p><p><p
style="MARGIN: 0in 0in 0pt">-f -convert-fstab</p><p><p
style="MARGIN: 0in 0in 0pt">-r -upgrade-pre-vmkernel</p><p><p
style="MARGIN: 0in 0in 0pt">-o -upgrade-post-vmkernel</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">The -g option may only be used with the -r option.</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-vmhbadevs</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">From the man page &#8220;…provides information about the LUNs available on the ESX Server. By default, the command will print a mapping of vmhbaX:X:X names to console /dev/ names.&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">This is useful when you want to set VMFS filesystem alignment on EMC CLARiiON arrays but don&#8217;t know what LUNs are mapped to what devices in fdisk.</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-vmhbadevs</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-vmhbadevs &lt;options&gt;</p><p><p
style="MARGIN: 0in 0in 0pt">Print the mappings between vmhba names and /dev names</p><p><p
style="MARGIN: 0in 0in 0pt">-m|-vmfs Print mappings for VMFS volumes to their</p><p><p
style="MARGIN: 0in 0in 0pt">Service Console partitions and vmhba names.</p><p><p
style="MARGIN: 0in 0in 0pt">-q|-query Print mapping in 2.5 compatibility mode to mimic</p><p><p
style="MARGIN: 0in 0in 0pt">vmkpcidivy -q vmhba_devs.</p><p><p
style="MARGIN: 0in 0in 0pt">-h|-help Show this message.</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-vmhbadevs -m</p><p><p
style="MARGIN: 0in 0in 0pt">vmhba0:0:0:2 /dev/sda2 4667158e-899da7f8-ae73-00145eccccba</p><p><p
style="MARGIN: 0in 0in 0pt">vmhba40:1:0:1 /dev/sdd1 4692c9ad-1a501875-f252-00145eccccba</p><p><p
style="MARGIN: 0in 0in 0pt">vmhba40:0:0:1 /dev/sdb1 4692c987-14967ce4-a9a1-00145eccccba</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-vmhbadevs -q</p><p><p
style="MARGIN: 0in 0in 0pt">vmhba0:0:0 /dev/sda</p><p><p
style="MARGIN: 0in 0in 0pt">vmhba1:0:1 /dev/sdb</p><p><p
style="MARGIN: 0in 0in 0pt">vmhba1:0:2 /dev/sdd</p><p><p
style="MARGIN: 0in 0in 0pt">vmhba1:0:3 /dev/sde</p><p><p
style="MARGIN: 0in 0in 0pt">vmhba1:0:4 /dev/sdg</p><p><p
style="MARGIN: 0in 0in 0pt">vmhba1:0:5 /dev/sdh</p><p><p
style="MARGIN: 0in 0in 0pt">vmhba1:0:6 /dev/sdi</p><p><p
style="MARGIN: 0in 0in 0pt">vmhba1:0:7 /dev/sdj</p><p><p
style="MARGIN: 0in 0in 0pt">vmhba1:0:8 /dev/sdl</p><p><p
style="MARGIN: 0in 0in 0pt">vmhba1:0:31 /dev/sdf</p><p><p
style="MARGIN: 0in 0in 0pt">vmhba1:0:10 /dev/sdc</p><p><p
style="MARGIN: 0in 0in 0pt">vmhba2:0:31 /dev/sdk</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-vmknic</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">From the man page &#8220;…provides an interface to configure VMkernel NIC. if no arguments are given, esxcfg-vmknic displays the help message. The Portgroup option specifies the portgroup to which the VMkernel NIC is associated.&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-vmknic &lt;options&gt; [[&lt;portgroup&gt;]]</p><p><p
style="MARGIN: 0in 0in 0pt">-a|-add Add a VMkernel NIC to the system,</p><p><p
style="MARGIN: 0in 0in 0pt">requires IP parameters and portgroup name.</p><p><p
style="MARGIN: 0in 0in 0pt">-d|-del Delete VMkernel NIC on given portgroup.</p><p><p
style="MARGIN: 0in 0in 0pt">-e|-enable Enable the given NIC if disabled.</p><p><p
style="MARGIN: 0in 0in 0pt">-D|-disable Disable the given NIC if enabled.</p><p><p
style="MARGIN: 0in 0in 0pt">-l|-list List VMkernel NICs.</p><p><p
style="MARGIN: 0in 0in 0pt">-i|-ip &lt;X.X.X.X&gt; The IP address for this VMkernel NIC.</p><p><p
style="MARGIN: 0in 0in 0pt">Setting an IP address requires that the</p><p><p
style="MARGIN: 0in 0in 0pt">-netmask option be given in same command.</p><p><p
style="MARGIN: 0in 0in 0pt">-n|-netmask &lt;X.X.X.X&gt; The IP netmask for this VMkernel NIC.</p><p><p
style="MARGIN: 0in 0in 0pt">Setting the IP netmask requires that the -ip</p><p><p
style="MARGIN: 0in 0in 0pt">option be given in the same command.</p><p><p
style="MARGIN: 0in 0in 0pt">-r|-restore Restore VMkernel TCP/IP interfaces from</p><p><p
style="MARGIN: 0in 0in 0pt">Configuration file (FOR INTERNAL USE ONLY).</p><p><p
style="MARGIN: 0in 0in 0pt">-h|-help Show this message.</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">[root@vi3host root]# esxcfg-vmknic -l</p><p><p
style="MARGIN: 0in 0in 0pt">Port Group IP Address Netmask Broadcast MAC Address MTU Enabled</p><p><p
style="MARGIN: 0in 0in 0pt">VMOTION 10.0.0.2 255.0.0.0 10.255.255.255 00:50:56:61:d8:2b 1514 true</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-vswif</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">From the man page &#8220;…provides an interface to configure Service Console NIC. if no arguments are given, esxcfg-vswif displays the help message. VSWIF is the name of the interface. This should begin with &#8216;vswif&#8217; followed by a unit number, for example &#8216;vswif0&#8242; for the first Service Console interface.&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-vswitch</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">From the man page &#8220;…provides an interface for adding, removing, and modifying virtual switches and their settings. By default, there is a single virtual switch called vSwitch0.&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt">Sample DEV network configuration script</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt"># !/bin/bash</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt"># Tear down and rebuild network</p><p><p
style="MARGIN: 0in 0in 0pt"># Remove current config</p><p><p
style="MARGIN: 0in 0in 0pt">echo &#8220;Removing current network configuration&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt">/usr/sbin/esxcfg-vswitch -U vmnic0 vSwitch0</p><p><p
style="MARGIN: 0in 0in 0pt">/usr/sbin/esxcfg-vswitch -U vmnic1 vSwitch0</p><p><p
style="MARGIN: 0in 0in 0pt">/usr/sbin/esxcfg-vswif -d vswif0</p><p><p
style="MARGIN: 0in 0in 0pt">/usr/sbin/esxcfg-vswitch -d vSwitch0</p><p><p
style="MARGIN: 0in 0in 0pt">service mgmt-vmware restart</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt"># Recreate SC</p><p><p
style="MARGIN: 0in 0in 0pt">echo &#8220;Reconfiguring Service Console NIC&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt">cp /etc/vmware/esx.conf /tmp/esx.conf.bak</p><p><p
style="MARGIN: 0in 0in 0pt">/usr/sbin/esxcfg-vswitch -a vSwitch0</p><p><p
style="MARGIN: 0in 0in 0pt">/usr/sbin/esxcfg-vswitch vSwitch0 -L vmnic0</p><p><p
style="MARGIN: 0in 0in 0pt">/usr/sbin/esxcfg-vswitch vSwitch0 -L vmnic1</p><p><p
style="MARGIN: 0in 0in 0pt">/usr/sbin/esxcfg-vswitch vSwitch0 -A &#8220;Service Console&#8221; -p &#8220;Service Console&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt">/usr/sbin/esxcfg-vswif -a vswif0 -p &#8220;Service Console&#8221; -i 192.168.100.7 -n 255.255.255.0</p><p><p
style="MARGIN: 0in 0in 0pt">route add default gw 192.168.100.253</p><p><p
style="MARGIN: 0in 0in 0pt"># echo &#8220;GATEWAY=192.168.100.253″ &gt;&gt; /etc/sysconfig/network</p><p><p
style="MARGIN: 0in 0in 0pt">echo &#8220;Service Console configured&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt"># Create VM Network</p><p><p
style="MARGIN: 0in 0in 0pt">echo &#8220;Configuring VM Network&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt">/usr/sbin/esxcfg-vswitch vSwitch0 -A VMnetwork -p VMnetwork</p><p><p
style="MARGIN: 0in 0in 0pt">echo &#8220;VM network configured&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt"># Setup VMotion</p><p><p
style="MARGIN: 0in 0in 0pt">echo &#8220;Setting up VMotion&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt">/usr/sbin/esxcfg-vswitch vSwitch0 -A VMotion</p><p><p
style="MARGIN: 0in 0in 0pt">/usr/sbin/esxcfg-vmknic -a VMotion -i 10.0.0.3 -n 255.255.255.0</p><p><p
style="MARGIN: 0in 0in 0pt">/usr/sbin/esxcfg-route 10.0.0.3</p><p><p
style="MARGIN: 0in 0in 0pt">echo &#8220;Activating vMotion&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt">service mgmt-vmware restart</p><p><p
style="MARGIN: 0in 0in 0pt">sleep 20</p><p><p
style="MARGIN: 0in 0in 0pt">vimsh -n -e &#8220;/hostsvc/vmotion/vnic_set portgroup4″</p><p><p
style="MARGIN: 0in 0in 0pt">echo &#8220;VMotion configured&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt"># Create internal-only vswitch</p><p><p
style="MARGIN: 0in 0in 0pt">echo &#8220;Configuring Private Network&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt">/usr/sbin/esxcfg-vswitch -a vSwitch1</p><p><p
style="MARGIN: 0in 0in 0pt">/usr/sbin/esxcfg-vswitch vSwitch1 -A Internal -p Internal</p><p><p
style="MARGIN: 0in 0in 0pt">echo &#8220;Private network configured&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt"></p><p><p
style="MARGIN: 0in 0in 0pt"># Setup iSCSI Network</p><p><p
style="MARGIN: 0in 0in 0pt">echo &#8220;Configuring iSCSI Network&#8221;</p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-vswitch -A iSCSI vSwitch0</p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-vmknic -a iSCSI -i 192.168.200.100 -n 255.255.255.0</p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-vswitch -A iSCSI-COS vSwitch3</p><p><p
style="MARGIN: 0in 0in 0pt">esxcfg-vswif -a vswif1 -p iSCSI-COS -i 192.168.200.101 -n 255.255.255.0</p><p></p></blockquote><p><p
xmlns="" class="zoundry_raven_tags"> <br
/> <span
class="ztags"><span
class="ztagspace">Technorati</span> : <a
href="http://www.technorati.com/tag/esx" class="ztag" rel="tag">esx</a>, <a
href="http://www.technorati.com/tag/esx+cli+config" class="ztag" rel="tag">esx cli config</a>, <a
href="http://www.technorati.com/tag/esxcfg" class="ztag" rel="tag">esxcfg</a>, <a
href="http://www.technorati.com/tag/esxi" class="ztag" rel="tag">esxi</a>, <a
href="http://www.technorati.com/tag/rcli" class="ztag" rel="tag">rcli</a>, <a
href="http://www.technorati.com/tag/service+console" class="ztag" rel="tag">service console</a>, <a
href="http://www.technorati.com/tag/vima" class="ztag" rel="tag">vima</a></span> <br/><br
/> <span
class="ztags"><span
class="ztagspace">Del.icio.us</span> : <a
href="http://del.icio.us/tag/esx" class="ztag" rel="tag">esx</a>, <a
href="http://del.icio.us/tag/esx%20cli%20config" class="ztag" rel="tag">esx cli config</a>, <a
href="http://del.icio.us/tag/esxcfg" class="ztag" rel="tag">esxcfg</a>, <a
href="http://del.icio.us/tag/esxi" class="ztag" rel="tag">esxi</a>, <a
href="http://del.icio.us/tag/rcli" class="ztag" rel="tag">rcli</a>, <a
href="http://del.icio.us/tag/service%20console" class="ztag" rel="tag">service console</a>, <a
href="http://del.icio.us/tag/vima" class="ztag" rel="tag">vima</a></span> <br/><br
/> <span
class="ztags"><span
class="ztagspace">Zooomr</span> : <a
href="http://www.zooomr.com/search/photos/?q=esx" class="ztag" rel="tag">esx</a>, <a
href="http://www.zooomr.com/search/photos/?q=esx%20cli%20config" class="ztag" rel="tag">esx cli config</a>, <a
href="http://www.zooomr.com/search/photos/?q=esxcfg" class="ztag" rel="tag">esxcfg</a>, <a
href="http://www.zooomr.com/search/photos/?q=esxi" class="ztag" rel="tag">esxi</a>, <a
href="http://www.zooomr.com/search/photos/?q=rcli" class="ztag" rel="tag">rcli</a>, <a
href="http://www.zooomr.com/search/photos/?q=service%20console" class="ztag" rel="tag">service console</a>, <a
href="http://www.zooomr.com/search/photos/?q=vima" class="ztag" rel="tag">vima</a></span> <br/><br
/> <span
class="ztags"><span
class="ztagspace">Flickr</span> : <a
href="http://www.flickr.com/photos/tags/esx" class="ztag" rel="tag">esx</a>, <a
href="http://www.flickr.com/photos/tags/esx%20cli%20config" class="ztag" rel="tag">esx cli config</a>, <a
href="http://www.flickr.com/photos/tags/esxcfg" class="ztag" rel="tag">esxcfg</a>, <a
href="http://www.flickr.com/photos/tags/esxi" class="ztag" rel="tag">esxi</a>, <a
href="http://www.flickr.com/photos/tags/rcli" class="ztag" rel="tag">rcli</a>, <a
href="http://www.flickr.com/photos/tags/service%20console" class="ztag" rel="tag">service console</a>, <a
href="http://www.flickr.com/photos/tags/vima" class="ztag" rel="tag">vima</a></span></p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2008/11/those-esxcfg-commands/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>The Service Console: Part 1 &#8211; What is it?</title><link>http://professionalvmware.com/2008/11/the-service-console-part-1-what-is-it/</link> <comments>http://professionalvmware.com/2008/11/the-service-console-part-1-what-is-it/#comments</comments> <pubDate>Wed, 12 Nov 2008 20:20:00 +0000</pubDate> <dc:creator>bunchc</dc:creator> <category><![CDATA[ESX]]></category> <category><![CDATA[esx 3.5]]></category> <category><![CDATA[esx3.5]]></category> <category><![CDATA[service console]]></category> <category><![CDATA[VMware]]></category> <guid
isPermaLink="false">http://professionalvmware.com/?p=10</guid> <description><![CDATA[So I wanted to talk on best practices for your Service Console, what it&#8217;s for, and why and how to make it redundant. As that&#8217;s a lot of information, we&#8217;ll break it out in some parts. This first part we&#8217;ll talk about what the service console is, and what it does. So what is the [...]]]></description> <content:encoded><![CDATA[<p></p><p>So I wanted to talk on best practices for your Service Console, what it&#8217;s for, and why and how to make it redundant. As that&#8217;s a lot of information, we&#8217;ll break it out in some parts.</p><p><p>This first part we&#8217;ll talk about what the service console is, and what it does.</p><p><p>So what is the &#8216;Service Console&#8217;? It is the &#8220;Console Operating System&#8221; that is responsible for user interaction with ESX. In the full ESX 3/3.5 (as in not ESXi), the service console is a VM that is based on RHEL 3. In fact this is often what keeps folks confused and arguing that &#8220;ESX is just Linux&#8221;. However, this is very much not the case. VMware has also tried to do everything possible to deemphasize the use of the service console, and, in the ESXi release, and perhaps future releases, it will go away completely, to be replaced by things like <a
href="http://www.vmware.com/support/developer/vima/">VIMA (VMware Infrastructure Management Assistant)</a>.</p><p><p>What&#8217;s it do this service console? I suppose my single line above wasn&#8217;t quite a good enough, but that is more or less what it is responsible for: User interaction with ESX. This is a bigger task that it first appears when you consider the various ways one can communicate with ESX:</p><p><ul><li>Command Line Interface (CLI)</li><p><li>SSH Access</li><p><li>Web Management (this includes SOAP, and the other various API&#8217;s)</li><p><li>Using the VMware Infrastructure Client</li><p><li>Communication with Virtual Center</li><p></ul><p><p>The Service Console is also responsible for keeping this communication secure. This is done in several ways as well.</p><p><ul><li>ESX Firewall (iptables)</li><p><li>SSL to the web services</li><p><li>Standard Linux authentication methods (keep your eyes open for a future article on getting ESX to talk to AD)</li><p></ul><p><p>The last two things the Service Console does are manage access to &#8216;non-critical&#8217; hardware, and provide support applications. Interesting, no? Lets explore those further.</p><p><p>What is &#8216;non-critical&#8217; hardware? &#8216;Non-critical&#8217; hardware is anything outside the Core 4 (Memory, Disk, Networking, CPU), things like serial ports and cd-roms. This keeps the VMKernel light and agile to better support your VM&#8217;s.</p><p><p>The last bit is support applications, and these are simply applications, like vm-support, or the esxcfg-* set of commands that allow you to keep the host running in tip top shape. With ESXi, these are handled either via the VIMA, or rCLI, which can both be downloaded from VMware&#8217;s site.</p><p><p>So, we&#8217;ve now covered what the Service Console is, and what it does. Next go around we&#8217;ll cover the why and how of making it redundant.</p><p><p
xmlns="" class="zoundry_raven_tags"> <br
/> <span
class="ztags"><span
class="ztagspace">Technorati</span> : <a
href="http://www.technorati.com/tag/esx" class="ztag" rel="tag">esx</a>, <a
href="http://www.technorati.com/tag/esx3.5" class="ztag" rel="tag">esx3.5</a>, <a
href="http://www.technorati.com/tag/service+console" class="ztag" rel="tag">service console</a>, <a
href="http://www.technorati.com/tag/vmware" class="ztag" rel="tag">vmware</a></span> <br/><br
/> <span
class="ztags"><span
class="ztagspace">Del.icio.us</span> : <a
href="http://del.icio.us/tag/esx" class="ztag" rel="tag">esx</a>, <a
href="http://del.icio.us/tag/esx3.5" class="ztag" rel="tag">esx3.5</a>, <a
href="http://del.icio.us/tag/service%20console" class="ztag" rel="tag">service console</a>, <a
href="http://del.icio.us/tag/vmware" class="ztag" rel="tag">vmware</a></span> <br/><br
/> <span
class="ztags"><span
class="ztagspace">Zooomr</span> : <a
href="http://www.zooomr.com/search/photos/?q=esx" class="ztag" rel="tag">esx</a>, <a
href="http://www.zooomr.com/search/photos/?q=esx3.5" class="ztag" rel="tag">esx3.5</a>, <a
href="http://www.zooomr.com/search/photos/?q=service%20console" class="ztag" rel="tag">service console</a>, <a
href="http://www.zooomr.com/search/photos/?q=vmware" class="ztag" rel="tag">vmware</a></span> <br/><br
/> <span
class="ztags"><span
class="ztagspace">Flickr</span> : <a
href="http://www.flickr.com/photos/tags/esx" class="ztag" rel="tag">esx</a>, <a
href="http://www.flickr.com/photos/tags/esx3.5" class="ztag" rel="tag">esx3.5</a>, <a
href="http://www.flickr.com/photos/tags/service%20console" class="ztag" rel="tag">service console</a>, <a
href="http://www.flickr.com/photos/tags/vmware" class="ztag" rel="tag">vmware</a></span></p> ]]></content:encoded> <wfw:commentRss>http://professionalvmware.com/2008/11/the-service-console-part-1-what-is-it/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
