<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3785118110132341585</id><updated>2012-02-12T19:21:18.055-08:00</updated><category term='projects'/><category term='ESX setup and configuration'/><category term='scripts'/><title type='text'>IT Lead Architect</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://itleadarchitect.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3785118110132341585/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://itleadarchitect.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>NullFame</name><uri>http://www.blogger.com/profile/07498992839822721580</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp2.blogger.com/_944y7QbqFZU/Rs7QIB3WP6I/AAAAAAAAACY/1yZBGVOvOak/s400/bruce.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3785118110132341585.post-144725710114382810</id><published>2007-06-22T08:35:00.000-07:00</published><updated>2007-06-22T08:41:46.122-07:00</updated><title type='text'>Changing the IP address of a Domain Controller</title><content type='html'>Select:    Start -&gt; Settings -&gt; Network and Dial Up Connections&lt;br /&gt;&lt;br /&gt;Select:    Your Local Area Connection&lt;br /&gt;&lt;br /&gt;Select:    Internet Connections (TCP/IP) Properties&lt;br /&gt;&lt;br /&gt;Change:    Your IP Address and Subnet Mask and Gateway&lt;br /&gt;&lt;br /&gt;Change:    Preferred DNS server's address to the new server address&lt;br /&gt;&lt;br /&gt;Select:    OK -&gt; OK -&gt; Close&lt;br /&gt;&lt;br /&gt;Your server's address is now changed.&lt;br /&gt;&lt;br /&gt;Select:    Start -&gt; Programs -&gt; Administrative Tools -&gt; DNS          &lt;br /&gt;&lt;br /&gt;Double click Forward Look Up Zones. Then double click your server name.&lt;br /&gt;&lt;br /&gt;Delete:    Your type A records&lt;br /&gt;&lt;br /&gt;Reset your information in your SOA and NS records and exit DNS.&lt;br /&gt;&lt;br /&gt;Now drop down to an MS-DOS prompt and type the following:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;ipconfig /flushdns&lt;/span&gt;&lt;/em&gt; &lt;strong&gt;Enter&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;Net Stop DNS&lt;/span&gt;&lt;/em&gt;  &lt;strong&gt;Enter&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;Net Start DNS&lt;/span&gt;&lt;/em&gt;  &lt;strong&gt;Enter&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;Net Stop Netlogon&lt;/span&gt;&lt;/em&gt; &lt;strong&gt;Enter&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;Net Start Netlogon&lt;/span&gt;&lt;/em&gt; &lt;strong&gt;Enter&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;ipconfig /registerdns&lt;/span&gt;&lt;/em&gt; &lt;strong&gt;Enter&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;You can now go back to DNS and make sure the records were all created and they should have changed the address to the correct address on their own.&lt;br /&gt;&lt;br /&gt;Now run NSLookup from an MS-DOS prompt and see if all is resolved OK or not. It the names and IP addresses all resolve correctly, you're all set. If not, then go back to NSLookup and type&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;set root=servername&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;(the name of your DNS domain) and hit &lt;strong&gt;Enter&lt;/strong&gt;. When the prompt returns, type&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;exit&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;to exit out of NSLookup. When you type NSLookup, it should resolve the name correctly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3785118110132341585-144725710114382810?l=itleadarchitect.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itleadarchitect.blogspot.com/feeds/144725710114382810/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3785118110132341585&amp;postID=144725710114382810&amp;isPopup=true' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3785118110132341585/posts/default/144725710114382810'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3785118110132341585/posts/default/144725710114382810'/><link rel='alternate' type='text/html' href='http://itleadarchitect.blogspot.com/2007/06/changing-ip-address-of-domain.html' title='Changing the IP address of a Domain Controller'/><author><name>NullFame</name><uri>http://www.blogger.com/profile/07498992839822721580</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp2.blogger.com/_944y7QbqFZU/Rs7QIB3WP6I/AAAAAAAAACY/1yZBGVOvOak/s400/bruce.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3785118110132341585.post-1221398497048417661</id><published>2007-06-20T09:02:00.000-07:00</published><updated>2007-06-20T09:07:04.114-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ESX setup and configuration'/><title type='text'>ESX Setup: Defining block sizes</title><content type='html'>&lt;strong&gt;&lt;span style="font-size:130%;color:#ff0000;"&gt;Attention!&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;When configuring ESX/creating new VMFS volumes, some people tend to mess around with block size. This will interfere with the maximum file size you can create on those volumes.&lt;br /&gt;&lt;br /&gt;For example, if you then need a bigger VMDK file, you will need to delete and recreate your VMFS partition with a larger block size!&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Block Size = Maximum file size&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1024 = 256Gb&lt;br /&gt;2048 = 500Gb&lt;br /&gt;4096 = 1000Gb&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3785118110132341585-1221398497048417661?l=itleadarchitect.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itleadarchitect.blogspot.com/feeds/1221398497048417661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3785118110132341585&amp;postID=1221398497048417661&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3785118110132341585/posts/default/1221398497048417661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3785118110132341585/posts/default/1221398497048417661'/><link rel='alternate' type='text/html' href='http://itleadarchitect.blogspot.com/2007/06/esx-setup-defining-block-sizes.html' title='ESX Setup: Defining block sizes'/><author><name>NullFame</name><uri>http://www.blogger.com/profile/07498992839822721580</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp2.blogger.com/_944y7QbqFZU/Rs7QIB3WP6I/AAAAAAAAACY/1yZBGVOvOak/s400/bruce.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3785118110132341585.post-7678647798377155415</id><published>2007-06-19T01:56:00.000-07:00</published><updated>2007-06-19T01:59:27.450-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><title type='text'>Microsoft's Script Repository</title><content type='html'>Tons of script samples form Microsoft. Here's one category I use alot: &lt;a href="http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mfr=true"&gt;Configuring Network Settings&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3785118110132341585-7678647798377155415?l=itleadarchitect.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itleadarchitect.blogspot.com/feeds/7678647798377155415/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3785118110132341585&amp;postID=7678647798377155415&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3785118110132341585/posts/default/7678647798377155415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3785118110132341585/posts/default/7678647798377155415'/><link rel='alternate' type='text/html' href='http://itleadarchitect.blogspot.com/2007/06/microsofts-script-repository.html' title='Microsoft&apos;s Script Repository'/><author><name>NullFame</name><uri>http://www.blogger.com/profile/07498992839822721580</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp2.blogger.com/_944y7QbqFZU/Rs7QIB3WP6I/AAAAAAAAACY/1yZBGVOvOak/s400/bruce.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3785118110132341585.post-5836581543478078974</id><published>2007-06-18T01:35:00.000-07:00</published><updated>2007-06-18T01:44:28.856-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scripts'/><title type='text'>Scripts: Create VMs from a script</title><content type='html'>The following code is a shell script to create VMs. This particular one will create a virtual machine that has the following characteristics:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;VM called ScriptedVM in a directory named ScriptedVM on storage1&lt;/li&gt;&lt;li&gt;assigned 256MB of memory&lt;/li&gt;&lt;li&gt;will have a 4GB SCSI hard drive (lsilogic controller)&lt;/li&gt;&lt;li&gt;configured for a Windows 2003 standard operating system&lt;/li&gt;&lt;li&gt;floppy drive assigned, not connected at startup&lt;/li&gt;&lt;li&gt;CD-ROM attached to the ESX server's CD-ROM drive, not connected at startup&lt;/li&gt;&lt;li&gt;Ethernet adapter connected to the VM Network, enabled at startup &lt;/li&gt;&lt;/ul&gt;Copy the following code to a plain text file called createVirtualMachines.sh, make any eventual adaptations, save it and run it from the host's console.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;##### VM Creation Script #####################################&lt;br /&gt;#Script Version 1.1&lt;br /&gt;#Author David E. Hart&lt;br /&gt;#Date 10-05-06&lt;br /&gt;#&lt;br /&gt;#--------+&lt;br /&gt;# Purpose&lt;br /&gt;#--------+-----------------------------------------------------&lt;br /&gt;# This script will create a VM with the following attributes;&lt;br /&gt;# Virtual Machine Name = ScriptedVM&lt;br /&gt;# Location of Virtual Machine = /VMFS/volumes/storage1/ScriptedVM&lt;br /&gt;# Virtual Machine Type = "Microsoft Windows 2003 Standard"&lt;br /&gt;# Virtual Machine Memory Allocation = 256 meg&lt;br /&gt;#&lt;br /&gt;#----------------------------------------+&lt;br /&gt;#Custom Variable Section for Modification&lt;br /&gt;#----------------------------------------+---------------------&lt;br /&gt;#NVM is name of virtual machine(NVM). No Spaces allowed in name&lt;br /&gt;#NVMDIR is the directory which holds all the VM files&lt;br /&gt;#NVMOS specifies VM Operating System&lt;br /&gt;#NVMSIZE is the size of the virtual disk to be created&lt;br /&gt;#--------------------------------------------------------------&lt;br /&gt;###############################################################&lt;br /&gt;### Default Variable settings - change this to your preferences&lt;br /&gt;NVM="ScriptedVM" # Name of Virtual Machine&lt;br /&gt;NVMDIR="ScriptedVM" # Specify only the folder name to be created; NOT the complete path&lt;br /&gt;NVMOS="winnetstandard" # Type of OS for Virtual Machine&lt;br /&gt;NVMSIZE="4g" # Size of Virtual Machine Disk&lt;br /&gt;VMMEMSIZE="256" # Default Memory Size&lt;br /&gt;### End Variable Declaration&lt;br /&gt;mkdir /vmfs/volumes/storage1/$NVMDIR # Creates directory&lt;br /&gt;exec 6&gt;&amp;1 # Sets up write to file&lt;br /&gt;exec 1&gt;/vmfs/volumes/storage1/$NVMDIR/$NVM.vmx # Open file&lt;br /&gt;# write the configuration&lt;br /&gt;echo config.version = '"'6'"' # For ESX 3.x the value is 8&lt;br /&gt;echo virtualHW.version = '"'3'"' # For ESX 3.x the value is 4&lt;br /&gt;echo memsize = '"'$VMMEMSIZE'"'&lt;br /&gt;www.syngress.com&lt;br /&gt;Building a VM • Chapter 4 151&lt;br /&gt;370_VMware_Tools_04_dummy.qxd 10/12/06 7:28 PM Page 151&lt;br /&gt;echo floppy0.present = '"'TRUE'"' # setup VM with floppy&lt;br /&gt;echo displayName = '"'$NVM'"' # name of virtual machine&lt;br /&gt;echo guestOS = '"'$NVMOS'"'&lt;br /&gt;echo&lt;br /&gt;echo ide0:0.present = '"'TRUE'"'&lt;br /&gt;echo ide0:0.deviceType = '"'cdrom-raw'"'&lt;br /&gt;echo ide:0.startConnected = '"'false'"' # CDROM enabled&lt;br /&gt;echo floppy0.startConnected = '"'FALSE'"'&lt;br /&gt;echo floppy0.fileName = '"'/dev/fd0'"'&lt;br /&gt;echo Ethernet0.present = '"'TRUE'"'&lt;br /&gt;echo Ethernet0.networkName = '"'VM Network'"' # Default network&lt;br /&gt;echo Ethernet0.addressType = '"'vpx'"'&lt;br /&gt;echo&lt;br /&gt;echo scsi0.present = '"'true'"'&lt;br /&gt;echo scsi0.sharedBus = '"'none'"'&lt;br /&gt;echo scsi0.virtualDev = '"'lsilogic'"'&lt;br /&gt;echo scsi0:0.present = '"'true'"' # Virtual Disk Settings&lt;br /&gt;echo scsi0:0.fileName = '"'$NVM.vmdk'"'&lt;br /&gt;echo scsi0:0.deviceType = '"'scsi-hardDisk'"'&lt;br /&gt;echo&lt;br /&gt;# close file&lt;br /&gt;exec 1&gt;&amp;amp;-&lt;br /&gt;# make stdout a copy of FD 6 (reset stdout), and close FD6&lt;br /&gt;exec 1&gt;&amp;6&lt;br /&gt;exec 6&gt;&amp;amp;-&lt;br /&gt;# Change permissions on the file so it can be executed by anyone&lt;br /&gt;chmod 755 /vmfs/volumes/storage1/$NVMDIR/$NVM.vmx&lt;br /&gt;#Creates 4gb Virtual disk&lt;br /&gt;cd /vmfs/volumes/storage1/$NVMDIR #change to the VM dir&lt;br /&gt;vmkfstools -c $NVMSIZE $NVM.vmdk -a lsilogic&lt;br /&gt;#Register VM&lt;br /&gt;vmware-cmd -s register /vmfs/volumes/storage1/$NVMDIR/$NVM.vmx&lt;br /&gt; &lt;/span&gt;&lt;/em&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3785118110132341585-5836581543478078974?l=itleadarchitect.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itleadarchitect.blogspot.com/feeds/5836581543478078974/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3785118110132341585&amp;postID=5836581543478078974&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3785118110132341585/posts/default/5836581543478078974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3785118110132341585/posts/default/5836581543478078974'/><link rel='alternate' type='text/html' href='http://itleadarchitect.blogspot.com/2007/06/scripts-create-vms-from-script.html' title='Scripts: Create VMs from a script'/><author><name>NullFame</name><uri>http://www.blogger.com/profile/07498992839822721580</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp2.blogger.com/_944y7QbqFZU/Rs7QIB3WP6I/AAAAAAAAACY/1yZBGVOvOak/s400/bruce.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3785118110132341585.post-3053993971048202460</id><published>2007-06-16T07:28:00.001-07:00</published><updated>2007-06-18T04:08:43.896-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='projects'/><title type='text'>VI3, Disaster Recovery and Business Continuity</title><content type='html'>If there's one big advantage of using VI3, it certainly is its ability to ensure business continuity. Previous versions have done a great job, but VI3 and its new features like &lt;strong&gt;Vmware Consolidated Backup (VCB)&lt;/strong&gt;, &lt;strong&gt;High Availability (HA)&lt;/strong&gt; and &lt;strong&gt;Dynamic Resource Scheduler (DRS)&lt;/strong&gt; are really pushing it one step further.&lt;br /&gt;&lt;br /&gt;The problem is although technology is making it easier every day, mentality is still an issue. The company I'm currently working for is just another example of it.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;How it should be&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;We all know DR/BCP projects should be oriented to business needs and expectations, that have to be identified, studied, agreed and documented. Platform's RPOs and RTOs have to be investigated. Costs for outages have to be calculated. Risks have to be identified and mitigated. Reliability for the whole project has to be tested and assessed.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;How it is sometimes&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Now my current project is going nowhere near that way. For budget, time and political reasons my current DR project is being managed exactly the other way around: "Here is the available infrastructure and applications. Come up with the best DR/BC solution you can."&lt;br /&gt;&lt;br /&gt;At the DR site (at least I was given one) I'm currently working at the infrastructure level, and according to my project plan I'll be finishing by the end of this month. With what I was provided (so far) my intentions are to take advantage out of the Vmware 2.5.x already implemented infrastructure, recover the critical platforms to this site and assume a "business as usual" status 12 hours after disaster situation is declared.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Scenario&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;I should now provide a high level picture of what I have. My main production site is some 300 kms away which I'm connected to via a 10Mbit circuit.&lt;br /&gt;&lt;br /&gt;I also lucky enough to have:&lt;br /&gt;&lt;br /&gt;- an IBM xSeries (with 4 x Xeon 2.5GHz, 8Gb RAM and a 34Gb RAID5 volume)&lt;br /&gt;- an already working SAN (old IBM FastT700 - renamed to DS4000 - and 2 x Brocade/IBM 16 port fiber switch)&lt;br /&gt;- a bunch of Snap Appliances (models 4200 and 2200)&lt;br /&gt;&lt;br /&gt;I started by rack-mounting everything followed by passing all network and fiber cables. Connected the console. Added 8 more 300Gb hard drives (making a total of 12) to the EXP enclosures and 4 x 34Gb old hard drives that I have left.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Storage&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;After wiping all the existing information on the SAN and disks, used IBM Storage Manager 9 to reconfigure all adapters, WWNs, groups, hosts and ports. Also configured 3 brand new RAID 5 arrays.&lt;br /&gt;&lt;br /&gt;Each array holds one LUN ans was configured as follows:&lt;br /&gt;&lt;br /&gt;Array 1 - made with the old 34Gb disks, has one hot spare disk, and it will hold less critical data like images and ISOs (total: 101,5Gb)&lt;br /&gt;&lt;br /&gt;Array 2 - made with the 8 new 300Gb disks, shares one hot spare disk with array 3 and it will hold backups of critical VMs, ready to be started up (total: 1,9Tb)&lt;br /&gt;&lt;br /&gt;Array 3 - made with the last 300Gb disks, will also hold VMs (total: 1.1Tb)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;VirtualCentre 2 and License Server&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;I then provisioned an HP ML series server (with 2 x P4 2.7GHz, 2Gb of RAM and a total of 101Gb). This was installed with the usual HP tools and MS Windows 2003 Standard Edition. All updates and fixes were applied. Finally installed VirtualCentre 2 and License Server.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Note:&lt;/strong&gt; The License server is a new feature to VI3, as in previous versions of ESX you would only have the host license mode. Take a look &lt;a href="http://www.vmware.com/pdf/vi_pricing.pdf"&gt;here&lt;/a&gt; and &lt;a href="http://www.vmware.com/pdf/vi3_installation_guide.pdf"&gt;here&lt;/a&gt; (starting at page 33) to have a clearer picture on how to activate your licenses, generate license files and configure the License Server.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;Installing VMware ESX3 Server&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;With VC2 and License Server all in place, finally dedicated to setup ESX 3 on the xSeries box. Again, for this matter, &lt;a href="http://www.vmware.com/pdf/vi3_installation_guide.pdf"&gt;this manual&lt;/a&gt; can become very useful.&lt;br /&gt;&lt;br /&gt;Configured partitions according to the following list:&lt;br /&gt;&lt;br /&gt;/boot 250mb&lt;br /&gt;/swp 1600mb&lt;br /&gt;/ 8000mb&lt;br /&gt;/tmp 4096mb&lt;br /&gt;/home 4096mb&lt;br /&gt;/var/log 2000mb&lt;br /&gt;/vmfs 14572mb&lt;br /&gt;&lt;br /&gt;Remember I'm not relying on internal storage to allocate VMFS partitions, hence the relatively small 14Gb /vmfs partition.&lt;br /&gt;&lt;br /&gt;Once the installation is over, activated all the applicable licences from VC2. Also configured the storage as follows:&lt;br /&gt;&lt;br /&gt;Localvmfs vmhba2:0:0:7 14GB&lt;br /&gt;vmfsc1 vmbha0:0:1:1 101.50GB&lt;br /&gt;vmfsc2 vmbha0:0:2:1 1.91TB&lt;br /&gt;vmfsc3 vmbha0:0:3:1 1.09TB&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;NFS&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;On VC2, tried to configure the Snap Appliances as mounted NFS volumes, but an old version of Guardian OS (2.5) prevented me to use NFS3 via TCP. Yes, unfortunately, VC2 will only add NFS volumes as datastores if using NFS3 via TCP. You can still mount NFS volumes at the COS, not as datastores though. Open the outgoing NFS traffic on ESX3 firewall by entering the command&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;esxcfg-firewall -e nfsClient&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then mount the NFS volume using the command&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;mount -t nfs nfs_host&lt;nfs_host&gt;:/share mounting_point&lt;volume&gt; &lt;mounting&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Networking&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;On VC2, registered the host and configured the network interfaces. As the xSeries host was only having 2 interfaces (1 x Gbit and 1 x 10/100Mbit), configured the Gbit interface to be used by VMs and by VMkernel (remember Vmotion needs a Gbit interface) and configured the second one to be used by Service Console.&lt;br /&gt;&lt;br /&gt;Make sure all needed features are licensed. Remember that HA and DRS can only be applied to hosts that are part of a VC2 cluster.&lt;br /&gt;&lt;br /&gt;Here are some last tips on the ESX configuration that are always handy:&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;SSH&lt;/strong&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SSH to the ESX3 is disabled and not allowed to the root user. You'll need to edit the file &lt;strong&gt;/etc/ssh/sshd_config&lt;/strong&gt; and change the line &lt;strong&gt;PermitRootLogin no&lt;/strong&gt; to &lt;strong&gt;PermitRootLogin yes&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Because this service is not allowed on ESX3 firewall, if you want to SSH to other systems, you'll have to allow SSH outgoing traffic issuing the command&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;esxcfg-firewall -e sshClient&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Tip:&lt;/strong&gt; There's a free utility called &lt;a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html"&gt;Putty&lt;/a&gt; very useful to access your host via SSH.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;FTP&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Contrary to previous ESX versions, FTP server on port 21 is not present anymore. For security reasons, on ESX3 you can only be accessed using SFTP.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;VM Templates&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;With the ESX3 box up and running, created the necessary templates. This is a very simple process that can save hours of work by significantly reduce new VMs deployment time. Simply start a new VM, attaching the right ISO file as the CD ROM drive and install the pretended operating system. I made 2003 Standard and Enterprise Edition servers. Proceed with the installation as usual. Once its finished, make the relevant modifications, install VMware tools and apply all updates and fixes availables and sysprep the server. Once the whole thing is done, on VC2 right click on the VM and either pick the option &lt;strong&gt;Clone to Template&lt;/strong&gt; (if you still wish to use the VM) or &lt;strong&gt;Convert to Template&lt;/strong&gt; (the VM will no longer exist as such, and it will be converted on a template). Please note that the template won't show on the 'Hosts and Clusters' inventory view. You'll have to switch to the 'Virtual Machines and Templates'.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Backup solution&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Configurations on DR site are pretty much done. Time to install the backup software on the live ESX hosts.&lt;br /&gt;&lt;br /&gt;Remember that this project is running on an extremely tight budget (if any!). In an ideal solution, I'd consider a link upgrade, usage of fiber and &lt;a href="http://www.lightsand.com/company/index.asp"&gt;LightSand&lt;/a&gt; devices to interconect the SANs (or at the very least, a replication solution like &lt;a href="http://www.doubletake.com/products/virtual-systems/"&gt;Double-Take&lt;/a&gt;) and a more enterprise oriented backup application like &lt;a href="http://www.vizioncore.com/esxRangerPro.html"&gt;esxRanger&lt;/a&gt; from Vizioncore.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Tip:&lt;/strong&gt; There's a free, yet good, utility called &lt;a href="http://winscp.net/eng/download.php"&gt;WinSCP&lt;/a&gt; to copy your VMDKs directly from the ESX host to your Windows workstation.&lt;br /&gt;&lt;br /&gt;Back do the backup solution. Aiming for a free solution for cost reasons, I first tried &lt;a href="http://www.esxpress.com/"&gt;ESXpress&lt;/a&gt; because of it's delta technology backups and VBA (Virtual Backup Appliances). Because it only uses plain FTP as repository, I couldn't use:&lt;br /&gt;&lt;br /&gt;- the Snap Appliances because the old Guardian OS 2.5 will not handle files bigger than 2Gb and because ESXpress sends the whole VMDK file (as opposed to some competitor products that export the VMDK files therefore dividing them into 2Gb chunks) which often would be larger than 2Gb.&lt;br /&gt;&lt;br /&gt;- the ESX host at the DR site, as ESX3 does not use plain FTP server (instead it uses SFTP)&lt;br /&gt;&lt;br /&gt;I ended up using a commonly used tool kown as &lt;a href="http://www.vmts.net/vmbk.htm"&gt;VMBK.PL&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;It would be quicker and far more practical if there was a way of backing up the VMs directly to the VMFS volumes on the SAN, but ESX3 cannot be set as FTP or NFS server, so backups will be made via NFS to the Snap Appliances.&lt;br /&gt;&lt;br /&gt;The file /usr/local/bin/vmbk-default.conf (configuration file) looks like this (changes from default in red):&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;#Version 1.01.2&lt;br /&gt;#set timeout&lt;br /&gt;Timeout=60000&lt;br /&gt;#minimum space required for add RedoLOG&lt;br /&gt;minspaceforRedo=1024&lt;br /&gt;# backup esx host configuration&lt;br /&gt;backupESX=true&lt;br /&gt;&lt;br /&gt;BackupSession="default"&lt;br /&gt;#directory where file&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;destination=/mnt/vmbk/&lt;/span&gt;&lt;br /&gt;#minimum space required for backup&lt;br /&gt;minspace=1024&lt;br /&gt;#minimum space required for add RedoLOG&lt;br /&gt;minspaceforRedo=1000&lt;br /&gt;#vmbk do not create subdirectory&lt;br /&gt;FlatDir=false&lt;br /&gt;#Create a restore shell script&lt;br /&gt;Restore=true&lt;br /&gt;# Backup configuration file and CMOS&lt;br /&gt;BackupVMX=true&lt;br /&gt;# the exported virtual disk contains the redo log if exist&lt;br /&gt;BackREDO=false&lt;br /&gt;#disk format VMDK or DSK&lt;br /&gt;DiskFormat=VMDK&lt;br /&gt;#Backup all Guest&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;BackupAllGuest=true&lt;/span&gt;&lt;br /&gt;#format of log HTML or TEXT&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;LogFormat=HTML&lt;br /&gt;&lt;/span&gt;#log file an directory with number of day in file name&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;logfile=/usr/lib/vmware-mui/apache/htdocs/vmbk_logs/log.html&lt;br /&gt;&lt;/span&gt;#use cp command to disk instead of vmkfstools&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;usecp=true&lt;/span&gt;&lt;br /&gt;#use vmkfstool(raw mode more faster than cp. !!!!caution with smb share!!!!) command to disk instead of cp&lt;br /&gt;vmkfstoolsrawmode=false&lt;br /&gt;#create a tar.gz file one for each disk inside a unique guest directory&lt;br /&gt;usetar=false&lt;br /&gt;#create a tar.gz one for each vm guest with inside all owned file&lt;br /&gt;usetaronefile=false&lt;br /&gt;#create a zip for each vm guest&lt;br /&gt;usegzip=false&lt;br /&gt;&lt;br /&gt;#tardir=/tmp not more used&lt;br /&gt;# true or false&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;email=true&lt;br /&gt;smtpserver=mail_server&lt;br /&gt;&lt;a href="mailto:to=name.surname@domain.com"&gt;to=name.surname@domain.com&lt;/a&gt;&lt;br /&gt;&lt;a href="mailto:from=name.surname@domain.com"&gt;from=name.surname@domain.com&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;encode=base64&lt;br /&gt;html=true&lt;br /&gt;&lt;br /&gt;# Force dismount before a mount operation&lt;br /&gt;forcedismount=false&lt;br /&gt;&lt;br /&gt;# Mount a nfs volume&lt;br /&gt;nfs=false&lt;br /&gt;nfsmount=host:/vol&lt;br /&gt;nfsmountpoint=/vmbk&lt;br /&gt;nfsoptions="soft"&lt;br /&gt;# mount a samba volume&lt;br /&gt;smb=false&lt;br /&gt;smbserver=//smbserver/share&lt;br /&gt;smbuser=domain\\user&lt;br /&gt;smbpasswd=password&lt;br /&gt;smbmountpoint=/vmbk&lt;br /&gt;#smboptions=%none%&lt;br /&gt;&lt;br /&gt;# true or false&lt;br /&gt;ftp=false&lt;br /&gt;ftpserver=server&lt;br /&gt;ftpdir="/"&lt;br /&gt;ftpuser=user&lt;br /&gt;ftppasswd=password&lt;br /&gt;# true or false&lt;br /&gt;ftppassive=false&lt;br /&gt;#ftptimeout value expressed in sec&lt;br /&gt;ftptimeout=20&lt;br /&gt;&lt;br /&gt;predirname=%none%&lt;br /&gt;# predirname=%hostname%&lt;br /&gt;# predirname=%date%&lt;br /&gt;# predirname=%time%&lt;br /&gt;# -N file create a list of backup files&lt;br /&gt;# Create a list of file to backup&lt;br /&gt;backupdisklist=false&lt;br /&gt;backupdisklistfile=/tmp/vmbklist&lt;br /&gt;# only do add redo (without redo commit)&lt;br /&gt;onlyaddredo=false&lt;br /&gt;# only do redo commit (without add redo)&lt;br /&gt;onlyredocommit=false&lt;br /&gt;&lt;br /&gt;runonstart=false&lt;br /&gt;runonstartfile=""&lt;br /&gt;runonstop=false&lt;br /&gt;runonstopfile=""&lt;br /&gt;#Veritas Netbackup Options&lt;br /&gt;netbackup=false&lt;br /&gt;netbackuppolicy="vmware"&lt;br /&gt;netbackupclientname=%hostname%&lt;br /&gt;netbackuplog="/var/log/vmbk_netbackup.log"&lt;br /&gt;netbackupprepost=false&lt;br /&gt;netbackupmaster="masterserver"&lt;br /&gt;#Networker Legato Options&lt;br /&gt;networker=false&lt;br /&gt;networkerserver="server"&lt;br /&gt;networkergroup="vmware"&lt;br /&gt;networkerclientname=%hostname%&lt;br /&gt;networkerlog="/var/log/vmbk_networker.log"&lt;br /&gt;&lt;br /&gt;# Use temporary dir&lt;br /&gt;temp=false&lt;br /&gt;tempdir="/tmp"&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;#use syslog&lt;br /&gt;syslog=true&lt;br /&gt;facility="local6"&lt;br /&gt;level="info"&lt;br /&gt;&lt;/span&gt;#experimental&lt;br /&gt;#redoredo=true&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Mounted the Snap Appliance share as a NFS volume (see command line above).&lt;br /&gt;&lt;br /&gt;The command line used to start the backup is:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;vmbk.pl -x /home/vmware/VM_name/VM_name.vmx -C /usr/local/bin/vmbk-default.conf&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;-t&lt;/strong&gt; does the whole procedure but in test mode (do not copy the VMDK files)&lt;br /&gt;&lt;strong&gt;-x&lt;/strong&gt; specifies a particular VM to be backed up&lt;br /&gt;&lt;strong&gt;-C&lt;/strong&gt; reads the command's parameters from the specified configuration file&lt;br /&gt;&lt;br /&gt;Once all parameters to use and VMs to backup are identified, it's time to write a simple shell script that will be called by CRON at intended schedules.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;Scheduling the backups&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;As I was not using any fancy state of the art backup application, I had to rely on VMware ESX own scheduling mechanisms. The cron.&lt;br /&gt;&lt;br /&gt;Step 1 - Create a shell script called vmbk-cron.sh that actually starts the backup itself. The code will include the command line above applied to every significant VM. It should look something like this:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;#!/bin/bash&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;/usr/local/bin/vmbk.pl -x /home/vmware/vm1/vm1.vmx -C /usr/local/bin/vmbk-default.conf &gt; /dev/nul&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;/usr/local/bin/vmbk.pl -x /home/vmware/vm2/vm2.vmx -C /usr/local/bin/vmbk-default.conf &gt; /dev/nul&lt;br /&gt;/usr/local/bin/vmbk.pl -x /home/vmware/vm3/vm3.vmx -C /usr/local/bin/vmbk-default.conf &gt; /dev/nul&lt;br /&gt;/usr/local/bin/vmbk.pl -x /home/vmware/vm4/vm4.vmx -C /usr/local/bin/vmbk-default.conf &gt; /dev/nul&lt;/em&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Just keep appending a new line per new VM to backup. Also, if there's the need of having a VMBK log file per backup, make sure logging is not enabled on the vmbk-default.conf file, and instead use the following parameter for HTML files&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;-L /path/log_file.htm&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;or use this one for text files&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;-l /path/log_file.txt&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;added to the command lines. This will allow the creation of a secluded log file per backup operation.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 2&lt;/strong&gt; - Change the file's permission, in order to allow it's execution as a shell script file:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;chmod 755 /usr/local/bin/vmbk-cron.sh&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 3&lt;/strong&gt; - Test the script. At this point you might want to edit the script and and the -t switch to perform all backups in test mode (see above).&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 4&lt;/strong&gt; - After confirming the operations' success, edit the file with the adequate scheduling parameters and copy it to &lt;strong&gt;/etc/cron.d/vmbk-cron.sh &lt;/strong&gt;so that final version should look something like this:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;#!/bin/bash &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;00 20 * * 6 root /usr/local/bin/vmbk.pl -x /home/vmware/vm1/vm1.vmx -C /usr/local/bin/vmbk-default.conf &gt; /dev/nul &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;00 20 * * 6 root /usr/local/bin/vmbk.pl -x /home/vmware/vm2/vm2.vmx -C /usr/local/bin/vmbk-default.conf &gt; /dev/nul &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;00 20 * * 6 root /usr/local/bin/vmbk.pl -x /home/vmware/vm3/vm3.vmx -C /usr/local/bin/vmbk-default.conf &gt; /dev/nul &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;00 20 * * 6 root /usr/local/bin/vmbk.pl -x /home/vmware/vm4/vm4.vmx -C /usr/local/bin/vmbk-default.conf &gt; /dev/nul&lt;br /&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;The first 5 parameters of a CRON file entry will refer, respectively, to minute, hour, day, month and day of the week (0 = sunday). An asterisk means every.&lt;br /&gt;&lt;br /&gt;This means the above script will backup VM1, VM2, VM3 and VM4 starting at 20:00 (8:00pm) on every saturday.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;syslog &lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;span style="color:#000000;"&gt;Once the right command line and scripts were in place, logging was needed. Because VMBK.PL has the possibility of sending messages via syslog, in case one wants to use it there might be a need for some extra configuration on the ESX host, like editing the file /etc/syslog.conf. For more information on syslog please read this older &lt;/span&gt;&lt;a href="http://itleadarchitect.blogspot.com/2007/06/syslog.html"&gt;&lt;span style="color:#000000;"&gt;post&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#000000;"&gt;.&lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Quick review on important configuration and log files&lt;/span&gt;&lt;/strong&gt; &lt;/p&gt;&lt;ul&gt;&lt;li&gt;The &lt;strong&gt;VMBK.PL logs&lt;/strong&gt; are placed inside /usr/lib/vmware-mui/apache/htdocs/vmbk_logs/, so to access them either use the host's console or via web (&lt;a href="https://host_name/vmbk_logs/log.html"&gt;https://host_name/vmbk_logs/log.html&lt;/a&gt;) &lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;To be done:&lt;br /&gt;&lt;br /&gt;build a backup shell script and insert in cron&lt;br /&gt;build a shell script to copy VMDK files to the ESX host in order to reduce the total time of recovery from disaster processes documentation&lt;br /&gt;configure VMs on ESX host pointing to VMDKs&lt;br /&gt;build a shell script to startup all VMs &lt;/p&gt;&lt;p&gt;script to change network settings (10.1.x.x to 10.89.x.x)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;I'll be more than happy to share information on this and other ESX3/DR projects with whoever asks for it. Just comment this post with your mail address and specific needs. Will try to reach everyone in a timely manner.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3785118110132341585-3053993971048202460?l=itleadarchitect.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itleadarchitect.blogspot.com/feeds/3053993971048202460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3785118110132341585&amp;postID=3053993971048202460&amp;isPopup=true' title='16 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3785118110132341585/posts/default/3053993971048202460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3785118110132341585/posts/default/3053993971048202460'/><link rel='alternate' type='text/html' href='http://itleadarchitect.blogspot.com/2007/06/vi3-disaster-recovery-and-business.html' title='VI3, Disaster Recovery and Business Continuity'/><author><name>NullFame</name><uri>http://www.blogger.com/profile/07498992839822721580</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp2.blogger.com/_944y7QbqFZU/Rs7QIB3WP6I/AAAAAAAAACY/1yZBGVOvOak/s400/bruce.jpg'/></author><thr:total>16</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3785118110132341585.post-4469989622399949680</id><published>2007-06-16T04:59:00.000-07:00</published><updated>2007-06-16T05:19:57.799-07:00</updated><title type='text'>Top 10 Vmware lists, tips and howto's</title><content type='html'>&lt;p&gt;Very nice top 10 Vmware lists, compiled by Eric Siebert: &lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://vmware-land.com/Top_10_Lists.html"&gt;Top 10 things you must read if you are &lt;strong&gt;new to VMware&lt;/strong&gt;&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://vmware-land.com/Top_10_Lists.html"&gt;Top 10 things you must read to &lt;strong&gt;get more technical with VI3&lt;/strong&gt;&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://vmware-land.com/Top_10_Lists.html"&gt;Top 10 things you must read about &lt;strong&gt;Vmware Storage (SAN/NAS/iSCSI/NFS)&lt;/strong&gt;&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://vmware-land.com/Top_10_Lists.html"&gt;Top 10 things you must read about &lt;strong&gt;Vmware Security&lt;/strong&gt;&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://vmware-land.com/Top_10_Lists.html"&gt;Top 12 things you must read about &lt;strong&gt;Vmware Troubleshooting&lt;/strong&gt;&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://vmware-land.com/Top_10_Lists.html"&gt;Top 10 things you must read about Vmware Networking&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://vmware-land.com/Top_10_Lists.html"&gt;Top 10 things you must read about VirtualCenter&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://vmware-land.com/Top_10_Lists.html"&gt;Top 11 things you must read about Vmware Performance&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://vmware-land.com/Top_10_Lists.html"&gt;Top 10 things you must read about Memory&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Also checkout his:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;(claimed) largest &lt;a href="http://vmware-land.com/Vmware_Links.html"&gt;VMware link collection on the planet&lt;/a&gt;&lt;/li&gt;&lt;li&gt;list of &lt;a href="http://vmware-land.com/Vmware_Tips.html"&gt;Vmware tips and howto's&lt;/a&gt;&lt;/li&gt;&lt;li&gt;and &lt;a href="http://vmware-land.com/Converter.html"&gt;Converter tips&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Well done Eric!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3785118110132341585-4469989622399949680?l=itleadarchitect.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itleadarchitect.blogspot.com/feeds/4469989622399949680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3785118110132341585&amp;postID=4469989622399949680&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3785118110132341585/posts/default/4469989622399949680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3785118110132341585/posts/default/4469989622399949680'/><link rel='alternate' type='text/html' href='http://itleadarchitect.blogspot.com/2007/06/top-10-vmware-lists.html' title='Top 10 Vmware lists, tips and howto&apos;s'/><author><name>NullFame</name><uri>http://www.blogger.com/profile/07498992839822721580</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp2.blogger.com/_944y7QbqFZU/Rs7QIB3WP6I/AAAAAAAAACY/1yZBGVOvOak/s400/bruce.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3785118110132341585.post-6930511055457667827</id><published>2007-06-16T02:34:00.000-07:00</published><updated>2007-06-16T02:53:04.128-07:00</updated><title type='text'>Linux (and friends) online resources</title><content type='html'>Here are some links to nice online resources, mostly books:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;JAVA&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/java/javanut/index.htm"&gt;Java in a Nutshell&lt;/a&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/java/langref/index.htm"&gt;Java Language Reference&lt;/a&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/java/awt/index.htm"&gt;Java AWT Reference&lt;/a&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/java/fclass/index.htm"&gt;Java Fundamental Classes Reference&lt;/a&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/java/exp/index.htm"&gt;Exploring Java&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Perl&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/perl/perlnut/index.htm"&gt;Perl in a Nutshell&lt;/a&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/perl/learn/index.htm"&gt;Learning Perl&lt;/a&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/perl/learn32/index.htm"&gt;Learning Perl on Win32 Systems&lt;/a&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/perl/prog/index.htm"&gt;Programming Perl&lt;/a&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/perl/advprog/index.htm"&gt;Advanced Perl Programming&lt;/a&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/perl/cookbook/index.htm"&gt;Perl Cookbook&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Networking&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/tcpip/dnsbind/index.htm"&gt;DNS &amp; BIND&lt;/a&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/tcpip/tcpip/index.htm"&gt;TCP/IP Network Administration&lt;/a&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/tcpip/sendmail/index.htm"&gt;sendmail&lt;/a&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/tcpip/smdref/index.htm"&gt;sendmail Desktop Reference&lt;/a&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/tcpip/firewall/index.htm"&gt;Building Internet Firewalls&lt;/a&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/tcpip/puis/index.htm"&gt;Practical UNIX &amp;amp; Internet Security&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;UNIX&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/unix/upt/index.htm"&gt;UNIX Power Tools&lt;/a&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/unix/unixnut/index.htm"&gt;UNIX in a Nutshell: System V Edition&lt;/a&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/unix/vi/index.htm"&gt;Learning the vi Editor&lt;/a&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/unix/sedawk/index.htm"&gt;sed &amp; awk&lt;/a&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/unix/ksh/index.htm"&gt;Learning the Korn Shell&lt;/a&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/unix/lrnunix/index.htm"&gt;Learning the UNIX Operating System&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;WWW&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/web/html/index.htm"&gt;HTML: The Definitive Guide&lt;/a&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/web/cgi/index.htm"&gt;CGI Programming on the World Wide Web&lt;/a&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/web/jscript/index.htm"&gt;JavaScript: The Definitive Guide&lt;/a&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/web/perl/index.htm"&gt;Programming Perl&lt;/a&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/web/webnut/index.htm"&gt;Web Master in a Nutshell&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Others&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/other/samba/index.html"&gt;Using Samba&lt;span style="color:#0000ff;"&gt;&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3785118110132341585-6930511055457667827?l=itleadarchitect.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itleadarchitect.blogspot.com/feeds/6930511055457667827/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3785118110132341585&amp;postID=6930511055457667827&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3785118110132341585/posts/default/6930511055457667827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3785118110132341585/posts/default/6930511055457667827'/><link rel='alternate' type='text/html' href='http://itleadarchitect.blogspot.com/2007/06/linux-free-online-resources.html' title='Linux (and friends) online resources'/><author><name>NullFame</name><uri>http://www.blogger.com/profile/07498992839822721580</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp2.blogger.com/_944y7QbqFZU/Rs7QIB3WP6I/AAAAAAAAACY/1yZBGVOvOak/s400/bruce.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3785118110132341585.post-3841715407350691070</id><published>2007-06-16T02:10:00.000-07:00</published><updated>2007-06-16T02:26:15.722-07:00</updated><title type='text'>Shrinking and expanding disks with Vmware ESX</title><content type='html'>Shrinking and &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_0"&gt;expanding&lt;/span&gt; disks (&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;VMDKs&lt;/span&gt;) with &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;vmkfstools&lt;/span&gt; is as simple as entering a command at the COS. On &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;ESX&lt;/span&gt;3 however, the -X switch doesn't seem to allow shrinking operations anymore. As alternatives to &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;vmkfs&lt;/span&gt; tools, check &lt;a href="http://www.ricknit.com/?p=12"&gt;these&lt;/a&gt; or &lt;a href="http://vmware-land.com/Resizing_Virtual_Disks.html"&gt;these&lt;/a&gt; suggestions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3785118110132341585-3841715407350691070?l=itleadarchitect.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itleadarchitect.blogspot.com/feeds/3841715407350691070/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3785118110132341585&amp;postID=3841715407350691070&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3785118110132341585/posts/default/3841715407350691070'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3785118110132341585/posts/default/3841715407350691070'/><link rel='alternate' type='text/html' href='http://itleadarchitect.blogspot.com/2007/06/shrinking-and-expanding-disks-with.html' title='Shrinking and expanding disks with Vmware ESX'/><author><name>NullFame</name><uri>http://www.blogger.com/profile/07498992839822721580</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp2.blogger.com/_944y7QbqFZU/Rs7QIB3WP6I/AAAAAAAAACY/1yZBGVOvOak/s400/bruce.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3785118110132341585.post-2249450259800990294</id><published>2007-06-16T00:28:00.000-07:00</published><updated>2007-06-16T02:04:15.218-07:00</updated><title type='text'>Some of ESX3 New Commands</title><content type='html'>Part of this article has been compiled by B2V consultants &amp; trainers and is based upon their personal experiences with the VMware ESX Server 3 product and is updated frequently. (Check the full article at &lt;a href="http://b2v.co.uk/content/view/31/42/"&gt;http://b2v.co.uk/content/view/31/42/&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;This will briefly discuss on some commands new to ESX3.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;esxcfg-&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;This is a new unified tool that is used to configure a large number of items in ESX Server 3.0.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;esxcfg-advcfg&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;The esxcfg-advcfg command is interesting as there is not a huge amount of help about this command. However, we can figure out that it is meant to do advanced configuration and we can figure out some settings that can be made. The &lt;strong&gt;-g&lt;/strong&gt; switch is used to &lt;strong&gt;"get" settings&lt;/strong&gt;; the &lt;strong&gt;-s&lt;/strong&gt; switch is used to &lt;strong&gt;"set" settings&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;[root@esx1 vmware]# esxcfg-advcfg -g /Misc/BlueScreenTimeout &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;Value of BlueScreenTimeout is 0 &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;[root@esx1 vmware]# esxcfg-advcfg -g /Misc/HostName&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;Value of HostName is esx1.vmlab.net  &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;[root@esx1 vmware]# esxcfg-advcfg -g /VMFS3/ZeroedThickVirtualDisks&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;Value of ZeroedThickVirtualDisks is 1 &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;[root@esx1 vmware]# esxcfg-advcfg –g /Disk/SupportSparseLUN&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;Value of SupportSparseLUN is 1&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;The question is, how much is configurable? To figure out what is configurable, we recommend that you look in the directory /proc/vmware/config in the service console and you will see the directories :&lt;br /&gt;&lt;br /&gt;BufferCache&lt;br /&gt;Cpu&lt;br /&gt;Disk&lt;br /&gt;FileSystem&lt;br /&gt;Irq&lt;br /&gt;LVM&lt;br /&gt;Mem&lt;br /&gt;Migrate&lt;br /&gt;Misc&lt;br /&gt;Net&lt;br /&gt;NFS&lt;br /&gt;Numa&lt;br /&gt;Scsi&lt;br /&gt;User&lt;br /&gt;VMFS3&lt;br /&gt;&lt;br /&gt;From these directories and the files within, you can work out the paths to be supplied to the esxcfg-advcfg command as parameters. Remember case sensitivity.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Usage:&lt;/strong&gt; &lt;em&gt;&lt;span style="color:#666666;"&gt;esxcfg-advcfg &lt;options&gt; [&lt;adv&gt;] &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;-g--get                    Get the value of the config option&lt;br /&gt;-s--set &lt;value&gt;     Set the value of the config option&lt;br /&gt;-d--default             Reset Config option to default&lt;br /&gt;-q--quiet                Suppress output&lt;br /&gt;-k--set-kernel      Set a VMkernel load time option value.&lt;br /&gt;-j--get-kernel       Get a VMkernel load time option value.&lt;br /&gt;-h--help                 Show this message.&lt;br /&gt;-r--restore            Restore all advanced options from the configuration file. (FOR INTERNAL USE ONLY).&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;esxcfg-firewall&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;The service console in ESX 3 now has a firewall enabled by default. We use this command to view and configure the firewall rules.&lt;br /&gt;The most popular switch will be the &lt;strong&gt;-q&lt;/strong&gt; switch to &lt;strong&gt;query the firewall for its settings&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;[root@esxhost1 root]# esxcfg-firewall -q&lt;br /&gt;&lt;output&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;The &lt;strong&gt;-s&lt;/strong&gt; switch will allow you to &lt;strong&gt;enable or disable network services&lt;/strong&gt; that may traverse the firewall successfully. The list of known services are shown below - very case sensitive!....&lt;br /&gt;&lt;br /&gt;nfsClient&lt;br /&gt;ftpServer&lt;br /&gt;ntpClient&lt;br /&gt;dellom&lt;br /&gt;nisClient&lt;br /&gt;vncServer&lt;br /&gt;tmpLicenseClient&lt;br /&gt;swISCSIClient&lt;br /&gt;CIMHttpsServer&lt;br /&gt;sshClient&lt;br /&gt;snmpd&lt;br /&gt;tmpAAMClient&lt;br /&gt;vpxHeartbeats&lt;br /&gt;smbClient&lt;br /&gt;hpim&lt;br /&gt;tmpHostVmdbServer&lt;br /&gt;tmpHostdSOAPServer&lt;br /&gt;ftpClient&lt;br /&gt;sshServer&lt;br /&gt;ibmdirector&lt;br /&gt;CIMHttpServer&lt;br /&gt;telnetClient&lt;br /&gt;&lt;br /&gt;The &lt;strong&gt;-q&lt;/strong&gt; switch &lt;strong&gt;queries the state of a particular known service&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;The &lt;strong&gt;-l&lt;/strong&gt; switch &lt;strong&gt;loads the firewall&lt;/strong&gt; and enables the IP tables.&lt;br /&gt;&lt;br /&gt;The &lt;strong&gt;-u&lt;/strong&gt; switch &lt;strong&gt;unloads the firewall&lt;/strong&gt; and disables the IP tables.&lt;br /&gt;&lt;br /&gt;We use the &lt;strong&gt;-e&lt;/strong&gt; switch to &lt;strong&gt;enable a particular known service&lt;/strong&gt;, so if we wanted to enable ssh outbound connections from the service console we would simply enter&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;[root@esxhost1 root]# esxcfg-firewall -e sshClient&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;We use the &lt;strong&gt;-d&lt;/strong&gt; switch to &lt;strong&gt;disable a service&lt;/strong&gt;. In the following example, we prevent outbound connections&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;[root@esxhost1 root]# esxcfg-firewall -d smbClient&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;esxcfg-module&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;This command produces an output similar to vmkload_mod -list&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;[root@lithium06 tools-isoimages]# esxcfg-module -l&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Module               Type                 Enabled         Loaded&lt;/strong&gt;&lt;br /&gt;vmkapimod          vmkapimod        true                    true&lt;br /&gt;vmklinux               linux                   true                     true               &lt;br /&gt;cciss.o                     scsi                      true                    false              &lt;br /&gt;tg3.o                       nic                       true                     false              &lt;br /&gt;qla2300_7xx.o     fc                         true                     false&lt;br /&gt;&lt;br /&gt;Although if you compare the output with the old command, things don't exactly match up. Not sure why just yet....&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;esxcfg-rescan&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;As vmkfstools -rescan&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;esxcfg-upgrade&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;esxcfg-upgrade -h --help&lt;br /&gt;-g --convert-grub&lt;br /&gt;-f --convert-fstab&lt;br /&gt;-r --upgrade-pre-vmkernel&lt;br /&gt;-o --upgrade-post-vmkernel&lt;br /&gt;&lt;br /&gt;The -g option may only be used with the -r option.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;esxcfg-vswitch&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;This command allows you to list, add, modify or delete virtual Ethernet switches on an ESX host. The simplest option with this command is the &lt;strong&gt;-l&lt;/strong&gt; option to &lt;strong&gt;list the virtual switches&lt;/strong&gt; defined on the host.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;[root@esx root]# esxcfg-vswitch -l&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;If you are having problems with your ESX server after an in-place upgrade, this tool is invaluable in resolving the problems with service console networking.&lt;br /&gt;The output of this command is initially a little intimidating. It is best to keep in mind the network topology:&lt;br /&gt;&lt;br /&gt;Service Console IP Interface (vswif0) ---- connected to ----&gt; Service Console Port on vSwitch&lt;br /&gt;----- uplinked to ----&gt; vmnic&lt;br /&gt;&lt;br /&gt;Where a vmnic is a physical Ethernet adapter in the ESX server.&lt;br /&gt;&lt;br /&gt;To &lt;strong&gt;add a virtual Ethernet switch&lt;/strong&gt;, we use &lt;strong&gt;"-a"&lt;/strong&gt; with the command&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;[r&lt;span style="color:#666666;"&gt;oot@esx root]# esxcfg-vswitch -a vSwitch3&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;span style="color:#666666;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;esxcfg-auth&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;Configures the service console authentication options including NIS, LDAP, Kerberos and Active Directory.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;esxcfg-info&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Produces an enormous amount of information about the ESX host. You really need to pipe this to a file for closer examination!&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;[root@esx root]# esxcfg-info &gt;esxinfo.txt&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;esxcfg-mpath&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Manages multi-pathing just as the vmkmultipath utility did in previous versions of ESX Server.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;[root@lithium06 tools-isoimages]# esxcfg-mpath -l&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;Disk vmhba0:0:0 /dev/cciss/c0d0 (69459MB) has 1 paths and policy of Fixed&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;Local 2:1.0 vmhba0:0:0 On active preferred&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;Disk vmhba1:0:0 (0MB) has 1 paths and policy of Most Recently Used&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;FC 10:1.0 210000e08b846a72&lt;-&gt;5006016930221397 vmhba1:0:0 &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;On active preferred&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;Disk vmhba1:0:6 /dev/sda (9216MB) has 1 paths and policy of Most Recently Used&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;FC 10:1.0 210000e08b846a72&lt;-&gt;5006016930221397 vmhba1:0:6 &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;On active preferred&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;Disk vmhba1:0:21 /dev/sdb (10240MB) has 1 paths and policy of Most Recently Used&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;FC 10:1.0 210000e08b846a72&lt;-&gt;5006016930221397 vmhba1:0:21 &lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;On active preferred&lt;br /&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;esxcfg-resgrp&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Used to manage the new ESX feature called resource groups. This command can add, remove or modify existing resource groups.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;esxcfg-hbadevs&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;The esxcfg-vmhbadevs command is used to list the equivalent Linux device names for the visible disk devices that the VMkernel references using vmhba notation.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;[root@esx1 root]# esxcfg-vmhbadevs&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;vmhba0:0:0    /dev/sda vmhba0:0:1    /dev/sdb&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;vmhba0:0:2    /dev/sdcvmhba0:0:3    /dev/sdd&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;vmhba2:0:0    /dev/sdevmhba2:1:0    /dev/sdf&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;If we use this command with the &lt;strong&gt;–m&lt;/strong&gt; switch, then we &lt;strong&gt;only list the LUNs which contain VMFS&lt;/strong&gt; partitions. Alongside the Linux device name, a long unique hexadecimal value is listed. This is the VMFS volume signature assigned by the new logical volume manager (LVM).&lt;br /&gt;&lt;br /&gt;[root@esx1 root]# esxcfg-vmhbadevs -m&lt;br /&gt;vmhba0:0:0:1 /dev/sda1 45407607-fbc43ced-94cb-00145e231ce3&lt;br /&gt;vmhba0:0:2:1 /dev/sdc1 455b08a8-8af7fee3-daa9-00145e231e35&lt;br /&gt;vmhba2:0:0:3 /dev/sde3 4559c75f-831d8f3e-bc81-00145e231e35&lt;br /&gt;&lt;br /&gt;You can view these volumes in the directory /vmfs/volumes/&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;esxcfg-boot&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Used to configure the GRUB options presented at boot time. One thing to note is that the new esxcfg commands will not run if you boot just into Linux. If you just want to &lt;strong&gt;query the boot settings&lt;/strong&gt;, you can use the &lt;strong&gt;-q&lt;/strong&gt; switch but this must be qualified with the keyword &lt;strong&gt;boot &lt;/strong&gt;or &lt;strong&gt;vmkmod&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;[root@lithium06 tools-isoimages]# esxcfg-boot -q boot&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;272 2:;7:;10:; UUID=847199e4-d3c7-11da-8ef8-930e3d734c03 /vmlinuz-2.4.21-37.0.2.ELvmnix /initrd-2.4.21-37.0.2.ELvmnix.img&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;[root@lithium06 tools-isoimages]# esxcfg-boot -q vmkmod&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;vmkapimod          vmkapimod&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;vmklinux               linux&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;cciss.o                     scsi&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;tg3.o                       nic&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;qla2300_7xx.o     fc&lt;/em&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Not yet tested other options....&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;esxcfg-init&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Should not be run manually!&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;esxcfg-nas&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Used to configure access to Network Attached Storage (NAS).&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;esxcfg-nas &lt;options&gt; [&lt;label&gt;]&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;-a&lt;/strong&gt;--add                       Add a &lt;strong&gt;new NAS filesystem&lt;/strong&gt; to /vmfs volumes. Requires --host and --share options.&lt;br /&gt;&lt;strong&gt;-o&lt;/strong&gt;--host &lt;host&gt;         Set the &lt;strong&gt;host name&lt;/strong&gt; or ip address for a NAS mount.&lt;br /&gt;&lt;strong&gt;-s&lt;/strong&gt;--share &lt;share&gt;     Set the name of the &lt;strong&gt;NAS share&lt;/strong&gt; on the remote system.&lt;br /&gt;&lt;strong&gt;-d&lt;/strong&gt;--delete                   &lt;strong&gt;Unmount&lt;/strong&gt; and delete a filesystem.&lt;br /&gt;&lt;strong&gt;-l&lt;/strong&gt;--list                          &lt;strong&gt;List&lt;/strong&gt; the currently mounted NAS file systems.&lt;br /&gt;&lt;strong&gt;-r&lt;/strong&gt;--restore                  &lt;strong&gt;Restore&lt;/strong&gt; all NAS mounts from the configuration file. (FOR INTERNAL USE ONLY).&lt;br /&gt;&lt;strong&gt;-h&lt;/strong&gt;--help                      &lt;strong&gt;Show&lt;/strong&gt; this message.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;esxcfg-route&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;If we add an IP address to the VMkernel by adding a VMkernel port, then we can fully configure that IP stack by also assigning a default gateway. We can view (no parameters) and set (1st parameter) the VMkernel IP default gateway with the esxcfg-route command as shown here.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;[root@esx1 etc]# esxcfg-route&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;VMkernel default gateway is 100.100.100.254 &lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;[root@esx1 etc]# esxcfg-route 100.100.100.1&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;VMkernel default gateway set to 100.100.100.1&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;esxcfg-vmknic&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Used to view and set configure the VMkernel ports on virtual Ethernet switches. A VMkernel port is a special type of port group on a virtual Ethernet switch which is used to assign an IP address to the VMkernel. The VMkernel only needs an IP address for VMotion, software-initiated iSCSI or NFS access.&lt;br /&gt;If you need to create a VMkernel port at the command line, then you need to create a port group first and then enable it as a VMkernel port. There doesn’t appear to be a way of enabling a VMkernel port for VMotion from the command line.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;[root@esx1 root]# esxcfg-vswitch -A VMotion vSwitch0&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;[root@esx1 root]# esxcfg-vmknic -a -i 100.100.100.121 -n 255.255.255.0 VMotion&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In the following example, we list the VMkernel ports, then delete one of them and then list them again.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;[root@esx1 etc]# esxcfg-vmknic -l&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;Port Group          IP Address      Netmask         Broadcast       MAC Address       MTU     EnabledNFS access          100.100.100.21  255.255.255.0   100.100.100.255 00:50:56:62:ca:f6 1514    trueVMotion             100.100.100.121 255.255.255.0   100.100.100.255 00:50:56:6d:7c:7d 1514    true&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;[root@esx1 etc]# esxcfg-vmknic -d VMotion[root@esx1 etc]# esxcfg-vmknic -l&lt;br /&gt;Port Group          IP Address      Netmask         Broadcast       MAC Address       MTU     EnabledNFS access          100.100.100.21  255.255.255.0   100.100.100.255 00:50:56:62:ca:f6 1514    true&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;esxcfg-vmknic &lt;options&gt; [[&lt;portgroup&gt;]]&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;-a&lt;/strong&gt;--add                                &lt;strong&gt;Add&lt;/strong&gt; &lt;strong&gt;a VMkernel NIC to the system&lt;/strong&gt;, requires IP parameters and portgroup name.&lt;br /&gt;-d--del                                 &lt;strong&gt;Delete&lt;/strong&gt; VMkernel NIC on given portgroup.&lt;br /&gt;-e--enable                           &lt;strong&gt;Enable&lt;/strong&gt; the given NIC if disabled.&lt;br /&gt;-D--disable                          &lt;strong&gt;Disable&lt;/strong&gt; the given NIC if enabled.&lt;br /&gt;-l--list                                   &lt;strong&gt;List&lt;/strong&gt; VMkernel NICs.&lt;br /&gt;-i--ip &lt;x.x.x.x&gt;                 &lt;strong&gt;The IP address&lt;/strong&gt; for this VMkernel NIC. Setting an IP address requires that the --netmask option be given in same command.&lt;br /&gt;-n--netmask &lt;x.x.x.x&gt;    &lt;strong&gt;The IP netmask&lt;/strong&gt; for this VMkernel NIC. Setting the IP netmask requires that the --ip option be given in the same command.&lt;br /&gt;-r--restore                            &lt;strong&gt;Restore&lt;/strong&gt; VMkernel TCP/IP &lt;strong&gt;interfaces&lt;/strong&gt; from Configuration file (FOR INTERNAL USE ONLY).&lt;br /&gt;-h--help                                 &lt;strong&gt;Show&lt;/strong&gt; this message.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;esxcfg-dumppart&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Used to configure the VMkernel crash dump partition. The old ESX 2.x utility for this function (vmkdump) is still present on an ESX 3 server, but appears just to be for extracting dump files.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;esxcfg-dumppart &lt;options&gt; [&lt;partition&gt;]&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;-l&lt;/strong&gt;--list                              &lt;strong&gt;List the partitions available for Dump Partitions&lt;/strong&gt;. WARNING: This will scan all LUNs on the system.&lt;br /&gt;&lt;strong&gt;-t&lt;/strong&gt;--get-active                 &lt;strong&gt;Get the active Dump Partition&lt;/strong&gt; for this system, returns the internal name of the partition vmhbaX:X:X:X) or 'none'.&lt;br /&gt;&lt;strong&gt;-c&lt;/strong&gt;--get-config                 &lt;strong&gt;Get the configured Dump Partition&lt;/strong&gt; for this system, returns the internal name of the partition vmhbaX:X:X:X) or 'none'.&lt;br /&gt;&lt;strong&gt;-s&lt;/strong&gt;--set                              &lt;strong&gt;Set the Dump Partition&lt;/strong&gt; for this system and activate it, either vmhbaX:X:X:X or 'none' to deactivate the active dump partition.&lt;br /&gt;&lt;strong&gt;-f&lt;/strong&gt;--find                              &lt;strong&gt;Find usable Dump partitions&lt;/strong&gt; and list in order of preference.&lt;br /&gt;&lt;strong&gt;-S&lt;/strong&gt;--smart-activate         &lt;strong&gt;Activate the configured dump partition&lt;/strong&gt; or find the first appropriate partition and use it (same order as -f).&lt;br /&gt;&lt;strong&gt;-a&lt;/strong&gt;--activate                     &lt;strong&gt;Activate the configured dump partition&lt;/strong&gt;.&lt;br /&gt;&lt;strong&gt;-d&lt;/strong&gt;--deactivate                &lt;strong&gt;Deactivate&lt;/strong&gt; the active dump partition.&lt;br /&gt;&lt;strong&gt;-h&lt;/strong&gt;--help                           &lt;strong&gt;Show&lt;/strong&gt; this message.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;esxcfg-linuxnet&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;esxcfg-linuxnet&lt;br /&gt;--setup&lt;br /&gt;--remove&lt;br /&gt;-h --help&lt;br /&gt;&lt;br /&gt;The --setup option cannot be combined with the --remove option.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;esxcfg-nics&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;This tool can be used to view and configure the speed and duplex settings of the physical network cards in the ESX Server. So this tool can replace the MUI Network Connections/Physical Adapters, the mii-tool and modules.conf for network card management,&lt;br /&gt;In the following example, we run the list option to view all physical NICs and their properties.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;[root@esx-v3 etc]# esxcfg-nics -l&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Name   PCI      Driver  Link Speed    Duplex Descriptionvmnic2 01:01.00 tg3     Up   1000Mbps Full Broadcom Corporation NetXtreme BCM5703 Gigabit Ethernetvmnic0 01:02.00 tg3     Up   100Mbps  Full Broadcom Corporation NC7781 Gigabit Server Adapter (PCI-X, 10,100,1000-T)vmnic1 04:02.00 tg3     Up   1000Mbps Full Broadcom Corporation NC7781 Gigabit Server Adapter (PCI-X, 10,100,1000-T)&lt;br /&gt;&lt;br /&gt;This command has the following optional parameters:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;esxcfg-nics &lt;options&gt; [nic]&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;-s&lt;/strong&gt;--speed &lt;speed&gt; &lt;strong&gt;Set the speed of this NIC&lt;/strong&gt; to one of 10/100/1000/10000. Requires a NIC parameter.&lt;br /&gt;&lt;strong&gt;-d&lt;/strong&gt;--duplex &lt;duplex&gt; &lt;strong&gt;Set the duplex&lt;/strong&gt; of this NIC to one of 'full' or 'half'. Requires a NIC parameter.&lt;br /&gt;&lt;strong&gt;-a&lt;/strong&gt;--auto &lt;strong&gt;Set speed and duplexity automatically&lt;/strong&gt;. Requires a NIC parameter.&lt;br /&gt;&lt;strong&gt;-l&lt;/strong&gt;--list &lt;strong&gt;Print the list of NICs&lt;/strong&gt; and their settings.&lt;br /&gt;&lt;strong&gt;-r&lt;/strong&gt;--restore &lt;strong&gt;Restore the nics&lt;/strong&gt; configured speed/duplex settings (INTERNAL ONLY)&lt;br /&gt;&lt;strong&gt;-h&lt;/strong&gt;--help &lt;strong&gt;Display&lt;/strong&gt; this message.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;&lt;strong&gt;esxcfg-swiscsi&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;ESX version 3.0 supports both hardware and software iSCSI. For hardware iSCSI, we can use host bus adapters which perform the TCP offload and so the vmkernel can just pass SCSI commands to them as normal. The iSCSI hba can then wrap the SCSI command in TCP/IP and forward to the iSCSI target.&lt;br /&gt;&lt;br /&gt;However, in software iSCSI (swiscsi), the wrapping of SCSI commands in TCP/IP is performed by the VMkernel and a regular physical network card can be used to communicate with the iSCSI target. This is exposed in the VI Client as a host bus adapter called vmhba40.&lt;br /&gt;This will place a significant load on the VMkernel and wouldn't be that great an idea, but the feature is in ESX 3.0! So we use this tool esxcfg-swiscsi to configure it. The software iSCSI initiator in the VMkernel has a dependency upon the service console, therefore both the service console and VMkernel must have an IP route to the iSCSI target.&lt;br /&gt;&lt;br /&gt;I have found that you need this command to scan for a new iSCSI target, as the VI Client rescan of the vmhba40 adapter doesn't appear to successfully discover targets.&lt;br /&gt;My suggestion for getting the software iSCSI to work is as follows:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000000;"&gt;1.&lt;/span&gt;&lt;/strong&gt; Add a VMkernel port to a vSwitch that has an uplink and route to iSCSI target&lt;br /&gt;&lt;strong&gt;2.&lt;/strong&gt; Ensure service console IP interface has a route to the same iSCSI target&lt;br /&gt;&lt;strong&gt;3.&lt;/strong&gt; Using either the VI Client security profile or the esxcfg-firewall, open a service console port for iSCSI (TCP:3260)&lt;br /&gt;&lt;strong&gt;4.&lt;/strong&gt; In the VI Client, enable the vmhab40 software iSCSI adapter and wait for the reconfiguration task to change from "In Progress" to "Completed"&lt;br /&gt;&lt;strong&gt;5.&lt;/strong&gt; Reboot the ESX host. This step will result in the VMkernel module for iSCSI being loaded at next boot.&lt;br /&gt;&lt;strong&gt;6.&lt;/strong&gt; In the VI Client, configure the vmhba40 adapter with an iSCSI target IP address&lt;br /&gt;&lt;strong&gt;7.&lt;/strong&gt; At the service console command line, run esxcfg-swiscsi -e&lt;br /&gt;&lt;strong&gt;8.&lt;/strong&gt; At the service console command line, run esxcfg-swiscsi -d&lt;br /&gt;&lt;strong&gt;9.&lt;/strong&gt; At the service console command line, run esxcfg-swiscsi -e&lt;br /&gt;&lt;strong&gt;10.&lt;/strong&gt; At the service console command line, run esxcfg-swiscsi -s&lt;br /&gt;&lt;strong&gt;11.&lt;/strong&gt; In the VI Client, perform a rescan of the vmhba adapters and your iSCSI target should become visible.&lt;br /&gt;&lt;br /&gt;The command line options for this command are:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;-e&lt;/strong&gt;, --enable    &lt;strong&gt;Enable sw iscsi&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;-d&lt;/strong&gt;, --disable   &lt;strong&gt;Disable&lt;/strong&gt; sw iscsi&lt;br /&gt;&lt;strong&gt;-q&lt;/strong&gt;, --query     &lt;strong&gt;Check&lt;/strong&gt; if sw iscsi is on/off&lt;br /&gt;&lt;strong&gt;-s&lt;/strong&gt;, --scan        &lt;strong&gt;Scan for disk available&lt;/strong&gt; through sw iscsi interface&lt;br /&gt;&lt;strong&gt;-k&lt;/strong&gt;, --kill          Try to forcibly &lt;strong&gt;remove&lt;/strong&gt; iscsi sw stack&lt;br /&gt;&lt;strong&gt;-r&lt;/strong&gt;, --restore   &lt;strong&gt;Restore&lt;/strong&gt; sw iscsi configuration from file (FOR INTERNAL USE ONLY)&lt;br /&gt;&lt;strong&gt;-h&lt;/strong&gt;, --help        &lt;strong&gt;Show&lt;/strong&gt; this message&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;esxcfg-vswif&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Manages the Ethernet interfaces of the service console&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;/etc/vmware/esx.conf&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;An all new configuration file for ESX Server 3.0. This file replaces the functionality of the following configuration files found in earlier versions of ESX.&lt;br /&gt;&lt;br /&gt;/etc/vmware/hwconfig&lt;br /&gt;/etc/vmware/devnames.conf&lt;br /&gt;/etc/vmware/vmkmodule.conf&lt;br /&gt;/etc/vmware/netmap.conf&lt;br /&gt;/etc/vmware/vmkconfig&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;hostd&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;This is the daemon that replaces vmware-serverd. We can restart this with&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#666666;"&gt;service mgmt-vmware restart&lt;br /&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;&lt;strong&gt;vpxa&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;This is the name of the VirtualCenter server agent that runs in the service console of ESX 3.0 servers (was called vmware-ccagent in ESX 2.x). This can be stopped, started or restarted with the service command&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;service vmware-vpxa restart&lt;br /&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;/etc/vmware/vpxa.cfg&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;This is the XML configuration file for the VirtualCenter Server Agent in the service console. Here is a typical vpxa.cfg file.&lt;br /&gt;&lt;br /&gt;[root@esx1 vmware]# cat vpxa.cfg&lt;br /&gt;&lt;br /&gt;&lt;config&gt;&lt;br /&gt;  &lt;log&gt;&lt;br /&gt;    &lt;outputtoconsole&gt;false&lt;/outputtoconsole&gt;&lt;br /&gt;  &lt;/log&gt;&lt;br /&gt; &lt;nfc&gt;&lt;br /&gt;   &lt;loglevel&gt;error&lt;/loglevel&gt;&lt;br /&gt; &lt;/nfc&gt;&lt;br /&gt; &lt;vmacore&gt;&lt;br /&gt;   &lt;ssl&gt;&lt;br /&gt;     &lt;doversioncheck&gt;false&lt;/doversioncheck&gt;&lt;br /&gt;   &lt;/ssl&gt;&lt;br /&gt;   &lt;threadpool&gt;&lt;br /&gt;    &lt;taskmax&gt;10&lt;/taskmax&gt;&lt;br /&gt;   &lt;/threadpool&gt;&lt;br /&gt;   &lt;/vmacore&gt;&lt;br /&gt;  &lt;vpxa&gt;&lt;br /&gt;     &lt;datastoreprincipal&gt;root&lt;/datastoreprincipal&gt;&lt;br /&gt;     &lt;hostip&gt;100.100.100.11&lt;/hostip&gt;     &lt;memorycheckertimeinsecs&gt;30&lt;/memorycheckertimeinsecs&gt;     &lt;serverip&gt;100.100.100.172&lt;/serverip&gt;&lt;br /&gt;     &lt;serverport&gt;902&lt;/serverport&gt;&lt;br /&gt;   &lt;/vpxa&gt;&lt;br /&gt;   &lt;workingdir&gt;/var/log/vmware/vpx&lt;/workingdir&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;vpxd&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;This is the process name of the Windows service that is the core service running on the VirtualCenter server.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;vmkfstools&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;Used to manipulate virtual disks at the service console command line. It is used most often for import and export operations, where a virtual disk is converted from monolithic format to sparse format (previously called COW format).&lt;br /&gt;&lt;br /&gt;There is a great switch with the command &lt;strong&gt;-X&lt;/strong&gt; which can be used to &lt;strong&gt;extend the size of your virtual disk&lt;/strong&gt;; e.g. if you had a 10GB virtual disk and wanted to expand it to 20GB, you could use this command. The VM would need to be powered off for this to work.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;vmkfstools -X 20GB /vmfs/volumes/storage1/vm.vmdk &lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note that the -X switch specifies the NEW SIZE of the virtual disk and NOT how much you are extending it by.&lt;br /&gt;&lt;br /&gt;If you have used the -X switch before in an older version of ESX server (earlier than 3.0) it was possible to specify a small disk size; thereby making the virtual disk smaller. This was dangerous but useful if your partition within the disk did not consume 100% of the disk size. However, this is not possible with vmkfstools command found in ESX Server version 3.x&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3366ff;"&gt;AAM&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Automated Availability Manager that now runs in the service console when you create a VMware High Availability (VMware HA) cluster. The VMware HA feature was previously known as DAS (Distributed Availability Services) but we don't mention that anymore.&lt;br /&gt;This software maintains an in-memory database on active nodes in the cluster and uses heartbeats to co-ordinate the active and passive nodes. It is suggested that you configure service console with 2 ethernet interfaces to remove any single point of failure.&lt;br /&gt;&lt;br /&gt;This is a piece of licensed Legato software which itself has been renamed to EMC AutoStart.&lt;br /&gt;This component has a very high dependency upon fully functional host name resolution. So before you enable VMware HA, check your /etc/hosts file, and your /etc/resolv.conf file to ensure accuracy. The log file for VMware HA can be found in the service console in the directory&lt;br /&gt;/opt/LGTOaam512/&lt;br /&gt;&lt;br /&gt;To avoid split brain scenarios, an ESX server can determine if it has become isolated from other servers and we can configure that servers' isolation response. If the AAM component loses contact with the other nodes in the HA cluster, it attempts to contact the configured default gateway for service console using ICMP echo request (PING). If this fails, then the ESX host is isolated. If your default gateway suppresses ICMP echo requests, then we can configure an alternate IP address called the das.isolationaddress.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3785118110132341585-2249450259800990294?l=itleadarchitect.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itleadarchitect.blogspot.com/feeds/2249450259800990294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3785118110132341585&amp;postID=2249450259800990294&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3785118110132341585/posts/default/2249450259800990294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3785118110132341585/posts/default/2249450259800990294'/><link rel='alternate' type='text/html' href='http://itleadarchitect.blogspot.com/2007/06/some-of-esx3-new-commands.html' title='Some of ESX3 New Commands'/><author><name>NullFame</name><uri>http://www.blogger.com/profile/07498992839822721580</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp2.blogger.com/_944y7QbqFZU/Rs7QIB3WP6I/AAAAAAAAACY/1yZBGVOvOak/s400/bruce.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3785118110132341585.post-709830812599147341</id><published>2007-06-15T12:28:00.000-07:00</published><updated>2007-06-18T01:18:45.439-07:00</updated><title type='text'>Syslog</title><content type='html'>Most network active equipment and some applications (mostly Linux ones) use the syslog utility to export all their errors and status messages to files located in the /var/log directory.&lt;br /&gt;&lt;br /&gt;syslog is a utility for tracking and logging system messages from levels informational to critical.&lt;br /&gt;&lt;br /&gt;Each system message sent to the syslog server has two descriptive labels associated with it that makes the message easier to handle.&lt;br /&gt;&lt;br /&gt;The first describes the function (aka facility) of the application that generated it. For example, applications such as mail and cron generate messages with facilities named mail and cron.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The second describes the degree of severity of the message.&lt;br /&gt;&lt;br /&gt;You can configure syslog's /etc/syslog.conf configuration file to place messages of differing severities and facilities in different files.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;img id="BLOGGER_PHOTO_ID_5076385997548508274" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://bp0.blogger.com/_944y7QbqFZU/RnLyKz6lVHI/AAAAAAAAACQ/fRUncFhEeMA/s400/syslog_table_1.JPG" border="0" /&gt;&lt;a name="Table_5-1_Syslog_Facilities"&gt;&lt;/a&gt;&lt;br /&gt;Other keywords may also be &lt;strong&gt;emerg, alert, crit, err, warning, notice, info, debug, none.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The output to which syslog writes each type of message received is set in the /etc/syslog.conf configuration file. This is done via 2 fields: The first lists the facilities and severities of messages to expect and the second lists the files to which they should be logged.&lt;br /&gt;&lt;br /&gt;Some operating systems/devices, by default, put most of their messages in the file /var/log/messages.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;*.info;mail.none;authpriv.none;cron.none /var/log/messages&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc33cc;"&gt;(edit and post about vmbk, scripts to create VMs, cron, nfs, esx3 (nfs, ftp, firewall)&lt;/span&gt;&lt;/strong&gt; &lt;/p&gt;&lt;p&gt;To test the syslog server, issue the following command to force a specific message to be sent:&lt;/p&gt;&lt;p&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;logger -p local1.warning "SYSLOG TEST #1"&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000000;"&gt;or another example:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#666666;"&gt;&lt;em&gt;logger -p local0.crit "Hello readers..."&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;__________________________________&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;In this case, all messages of severity "info" and above are logged, but none from the mail, cron or authentication facilities/subsystems. You can make this logging even more sensitive by replacing the line above with one that captures all messages from debug severity and above in the /var/log/messages file. This example may be more suitable for troubleshooting. *.debug /var/log/messages&lt;br /&gt;In this example, all debug severity messages; except auth, authpriv, news and mail; are logged to the /var/log/debug file in caching mode. Notice how you can spread the configuration syntax across several lines using the slash (\) symbol at the end of each line. *.=debug;\&lt;br /&gt;auth,authpriv.none;\&lt;br /&gt;news.none;mail.none -/var/log/debug&lt;br /&gt;Here we see the /var/log/messages file configured in caching mode to receive only info, notice and warning messages except for the auth, authpriv, news and mail facilities. *.=info;*.=notice;*.=warn;\&lt;br /&gt;auth,authpriv.none;\&lt;br /&gt;cron,daemon.none;\&lt;br /&gt;mail,news.none -/var/log/messages&lt;br /&gt;You can even have certain types of messages sent to the screen of all logged in users. In this example messages of severity emergency and above triggers this type of notification. The file definition is simply replaced by an asterisk to make this occur. *.emerg *&lt;br /&gt;Certain applications will additionally log to their own application specific log files and directories independent of the syslog.conf file. Here are some common examples:&lt;br /&gt;Files: /var/log/maillog : Mail&lt;br /&gt;/var/log/httpd/access_log : Apache web server page access logs&lt;br /&gt;Directories: /var/log&lt;br /&gt;/var/log/samba : Samba messages&lt;br /&gt;/var/log/mrtg : MRTG messages&lt;br /&gt;/var/log/httpd : Apache webserver messages&lt;br /&gt;Note: In some older versions of Linux the /etc/syslog.conf file was very sensitive to spaces and would recognize only tabs. The use of spaces in the file would cause unpredictable results. Check the formatting of your /etc/syslog.conf file to be safe. &lt;a name="Activating_Changes_to_the_syslog_Configuration_File"&gt;&lt;/a&gt;&lt;br /&gt;Activating Changes to the syslog Configuration File&lt;br /&gt;Changes to /etc/syslog.conf will not take effect until you restart syslog. Issue this command to do so: [root@bigboy tmp]# service syslog restart&lt;br /&gt;In Ubuntu / Debian systems the command would be: root@u-bigboy:~# /etc/init.d/sysklogd restart&lt;br /&gt;&lt;a name="How_to_View_New_Log_Entries_as_They_Happen"&gt;&lt;/a&gt;&lt;br /&gt;How to View New Log Entries as They Happen&lt;br /&gt;If you want to get new log entries to scroll on the screen as they occur, then you can use this command: [root@bigboy tmp]# tail -f /var/log/messages&lt;br /&gt;Similar commands can be applied to all log files. This is probably one of the best troubleshooting tools available in Linux. Another good command to use apart from tail is grep. grep will help you search for all occurrences of a string in a log file; you can pipe it through the more command so that you only get one screen at a time. Here is an example: [root@bigboy tmp]# grep string /var/log/messages more&lt;br /&gt;You can also just use the plain old more command to see one screen at a time of the entire log file without filtering with grep. Here is an example: [root@bigboy tmp]# more /var/log/messages&lt;br /&gt;&lt;a name="Logging_syslog_Messages_to_a_Remote_Linux_Server"&gt;&lt;/a&gt;&lt;br /&gt;Logging syslog Messages to a Remote Linux Server&lt;br /&gt;Logging your system messages to a remote server is a good security practice. With all servers logging to a central syslog server, it becomes easier to correlate events across your company. It also makes covering up mistakes or malicious activities harder because the purposeful deletion of log files on a server cannot simultaneously occur on your logging server, especially if you restrict the user access to the logging server.&lt;br /&gt;&lt;a name="Configuring_the_Linux_Syslog_Server"&gt;&lt;/a&gt;&lt;br /&gt;Configuring the Linux Syslog Server&lt;br /&gt;By default syslog doesn't expect to receive messages from remote clients. Here's how to configure your Linux server to start listening for these messages.&lt;br /&gt;As we saw previously, syslog checks its /etc/syslog.conf file to determine the expected names and locations of the log files it should create. It also checks the file /etc/sysconfig/syslog to determine the various modes in which it should operate. Syslog will not listen for remote messages unless the SYSLOGD_OPTIONS variable in this file has a -r included in it as shown below. # Options to syslogd&lt;br /&gt;# -m 0 disables 'MARK' messages.&lt;br /&gt;# -r enables logging from remote machines&lt;br /&gt;# -x disables DNS lookups on messages received with -r&lt;br /&gt;# See syslogd(8) for more details&lt;br /&gt;SYSLOGD_OPTIONS="-m 0 -r"&lt;br /&gt;# Options to klogd&lt;br /&gt;# -2 prints all kernel oops messages twice; once for klogd to decode, and&lt;br /&gt;# once for processing with 'ksymoops'&lt;br /&gt;# -x disables all klogd processing of oops messages entirely&lt;br /&gt;# See klogd(8) for more details&lt;br /&gt;KLOGD_OPTIONS="-2"&lt;br /&gt;Note: In Debian / Ubuntu systems you have to edit the syslog startup script /etc/init.d/sysklogd directly and make the SYSLOGD variable definition become "-r". # Options for start/restart the daemons&lt;br /&gt;# For remote UDP logging use SYSLOGD="-r"&lt;br /&gt;#&lt;br /&gt;#SYSLOGD="-u syslog"&lt;br /&gt;SYSLOGD="-r"&lt;br /&gt;You will have to restart syslog on the server for the changes to take effect. The server will now start to listen on UDP port 514, which you can verify using either one of the following netstat command variations. [root@bigboy tmp]# netstat -a grep syslog&lt;br /&gt;udp 0 0 *:syslog *:*&lt;br /&gt;[root@bigboy tmp]# netstat -an grep 514&lt;br /&gt;udp 0 0 0.0.0.0:514 0.0.0.0:*&lt;br /&gt;[root@bigboy tmp]#&lt;br /&gt;&lt;a name="Configuring_the_Linux_Client"&gt;&lt;/a&gt;&lt;br /&gt;Configuring the Linux Client&lt;br /&gt;The syslog server is now expecting to receive syslog messages. You have to configure your remote Linux client to send messages to it. This is done by editing the /etc/hosts file on the Linux client named smallfry. Here are the steps:&lt;br /&gt;1) Determine the IP address and fully qualified hostname of your remote logging host.&lt;br /&gt;2) Add an entry in the /etc/hosts file in the format: IP-address fully-qualified-domain-name hostname "loghost"&lt;br /&gt;Example: 192.168.1.100 bigboy.my-site.com bigboy loghost&lt;br /&gt;Now your /etc/hosts file has a nickname of "loghost" for server bigboy.&lt;br /&gt;3) The next thing you need to do is edit your /etc/syslog.conf file to make the syslog messages get sent to your new loghost nickname. *.debug @loghost&lt;br /&gt;*.debug /var/log/messages&lt;br /&gt;You have now configured all debug messages and higher to be logged to both server bigboy ("loghost") and the local file /var/log/messages. Remember to restart syslog to get the remote logging started.&lt;br /&gt;You can now test to make sure that the syslog server is receiving the messages with a simple test such as restarting the lpd printer daemon and making sure the remote server sees the messages.&lt;br /&gt;Linux Client [root@smallfry tmp]# service lpd restart&lt;br /&gt;Stopping lpd: [ OK ]&lt;br /&gt;Starting lpd: [ OK ]&lt;br /&gt;[root@smallfry tmp]#&lt;br /&gt;Linux Server [root@bigboy tmp]# tail /var/log/messages&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;Apr 11 22:09:35 smallfry lpd: lpd shutdown succeeded&lt;br /&gt;Apr 11 22:09:39 smallfry lpd: lpd startup succeeded&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;[root@bigboy tmp]#&lt;br /&gt;&lt;a name="Syslog_Configuration_and_Cisco_Network_Devices"&gt;&lt;/a&gt;&lt;br /&gt;Syslog Configuration and Cisco Network Devices&lt;br /&gt;syslog reserves facilities "local0" through "local7" for log messages received from remote servers and network devices. Routers, switches, firewalls and load balancers each logging with a different facility can each have their own log files for easy troubleshooting. Appendix 4 has examples of how to configure syslog to do this with Cisco devices using separate log files for the routers, switches, PIX firewalls, CSS load balancers and LocalDirectors.&lt;br /&gt;&lt;a name="Logrotate"&gt;&lt;/a&gt;&lt;br /&gt;Logrotate&lt;br /&gt;The Linux utility logrotate renames and reuses system error log files on a periodic basis so that they don't occupy excessive disk space.&lt;br /&gt;&lt;a name="The_.2Fetc.2Flogrotate.conf_File"&gt;&lt;/a&gt;&lt;br /&gt;The /etc/logrotate.conf File&lt;br /&gt;This is logrotate's general configuration file in which you can specify the frequency with which the files are reused.&lt;br /&gt;You can specify either a weekly or daily rotation parameter. In the case below the weekly option is commented out with a #, allowing for daily updates.&lt;br /&gt;The rotate parameter specifies the number of copies of log files logrotate will maintain. In the case below the 4 copy option is commented out with a #, while allowing 7 copies.&lt;br /&gt;The create parameter creates a new log file after each rotation&lt;br /&gt;Therefore, our sample configuration file will create daily archives of all the logfiles and store them for seven days. The files will have the following names with, logfile being current active version: logfile&lt;br /&gt;logfile.0&lt;br /&gt;logfile.1&lt;br /&gt;logfile.2&lt;br /&gt;logfile.3&lt;br /&gt;logfile.4&lt;br /&gt;logfile.5&lt;br /&gt;logfile.6&lt;br /&gt;&lt;a name="Sample_Contents_of_.2Fetc.2Flogrotate.conf"&gt;&lt;/a&gt;&lt;br /&gt;Sample Contents of /etc/logrotate.conf # rotate log files weekly&lt;br /&gt;#weekly&lt;br /&gt;# rotate log files daily&lt;br /&gt;daily&lt;br /&gt;# keep 4 weeks worth of backlogs&lt;br /&gt;#rotate 4&lt;br /&gt;# keep 7 days worth of backlogs&lt;br /&gt;rotate 7&lt;br /&gt;# create new (empty) log files after rotating old ones&lt;br /&gt;create&lt;br /&gt;&lt;a name="The_.2Fetc.2Flogrotate.d_Directory"&gt;&lt;/a&gt;&lt;br /&gt;The /etc/logrotate.d Directory&lt;br /&gt;Most Linux applications that use syslog will put an additional configuration file in this directory to specify the names of the log files to be rotated. It is a good practice to verify that all new applications that you want to use the syslog log have configuration files in this directory. Here are some sample files that define the specific files to be rotated for each application.&lt;br /&gt;Here is an example of a custom file located in this directory that rotates files with the .tgz extension which are located in the /data/backups directory. The parameters in this file will override the global defaults in the /etc/logrotate.conf file. In this case, the rotated files won't be compressed, they'll be held for 30 days only if they are not empty, and they will be given file permissions of 600 for user root. /data/backups/*.tgz {&lt;br /&gt;daily&lt;br /&gt;rotate 30&lt;br /&gt;nocompress&lt;br /&gt;missingok&lt;br /&gt;notifempty&lt;br /&gt;create 0600 root root&lt;br /&gt;}&lt;br /&gt;Note: In Debian / Ubuntu systems the /etc/cron.daily/sysklogd script reads the /etc/syslog.conf file and rotates any log files it finds configured there. This eliminates the need to create log rotation configuration files for the common system log files in the /etc/logrotate.d directory. As the script resides in the /etc/cron.daily directory it automatically runs every 24 hours. In Fedora / Redhat systems this script is replaced by the /etc/cron.daily/logrotate daily script which does not use the contents of the syslog configuration file, relying mostly on the contents of the /etc/logrotate.d directory. &lt;a name="Activating_logrotate"&gt;&lt;/a&gt;&lt;br /&gt;Activating logrotate&lt;br /&gt;The above logrotate settings in the previous section will not take effect until you issue the following command: [root@bigboy tmp]# logrotate -f&lt;br /&gt;If you want logrotate to reload only a specific configuration file, and not all of them, then issue the logrotate command with just that filename as the argument like this: [root@bigboy tmp]# logrotate -f /etc/logrotate.d/syslog&lt;br /&gt;&lt;a name="Compressing_Your_Log_Files"&gt;&lt;/a&gt;&lt;br /&gt;Compressing Your Log Files&lt;br /&gt;On busy Web sites the size of your log files can become quite large. Compression can be activated by editing the logrotate.conf file and adding the compress option. #&lt;br /&gt;# File: /etc/logrotate.conf&lt;br /&gt;#&lt;br /&gt;# Activate log compression&lt;br /&gt;compress&lt;br /&gt;The log files will then start to become archived with the gzip utility, each file having a .gz extension. [root@bigboy tmp]# ls /var/log/messages*&lt;br /&gt;/var/log/messages /var/log/messages.1.gz /var/log/messages.2.gz&lt;br /&gt;/var/log/messages.3.gz /var/log/messages.4.gz /var/log/messages.5.gz&lt;br /&gt;/var/log/messages.6.gz /var/log/messages.7.gz&lt;br /&gt;[root@bigboy tmp]#&lt;br /&gt;Viewing the contents of the files still remains easy because the zcat command can quickly output their contents to the screen. Use the command with the compressed file's name as the argument as seen below. [root@bigboy tmp]# zcat /var/log/messages.1.gz&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;Nov 15 04:08:02 bigboy httpd: httpd shutdown succeeded&lt;br /&gt;Nov 15 04:08:04 bigboy httpd: httpd startup succeeded&lt;br /&gt;Nov 15 04:08:05 bigboy sendmail[6003]: iACFMLHZ023165: to=&lt;tvaughan@clematis4spiders.info&gt;, delay=2+20:45:44, xdelay=00:00:02, mailer=esmtp, pri=6388168, relay=www.clematis4spiders.info. [222.134.66.34], dsn=4.0.0, stat=Deferred: Connection refused by www.clematis4spiders.info.&lt;br /&gt;[root@bigboy tmp]#&lt;br /&gt;&lt;a name="syslog-ng"&gt;&lt;/a&gt;&lt;br /&gt;syslog-ng&lt;br /&gt;The more recent syslog-ng application combines the features of logrotate and syslog to create a much more customizable and feature rich product. This can be easily seen in the discussion of its configuration file that follows.&lt;br /&gt;&lt;a name="The_.2Fetc.2Fsyslog-ng.2Fsyslog-ng.conf_file"&gt;&lt;/a&gt;&lt;br /&gt;The /etc/syslog-ng/syslog-ng.conf file&lt;br /&gt;The main configuration file for syslog-ng is the /etc/syslog-ng/sylog-ng.conf file but only rudimentary help on its keywords can be found using the Linux man pages. [root@zippy tmp]# man syslog-ng.conf&lt;br /&gt;Figure 5-1 has a sample syslog-ng.conf file and outlines some key features. The options section that covers global characteristics is fully commented, but it is the source, destination and log sections that define the true strength of the customizability of syslog-ng. &lt;a name="Figure_5-1_A_Sample_syslog-ng.conf_File"&gt;&lt;/a&gt;&lt;br /&gt;Figure 5-1 A Sample syslog-ng.conf File options {&lt;br /&gt;# Number of syslog lines stored in memory before being written to files&lt;br /&gt;sync (0);&lt;br /&gt;# Syslog-ng uses queues&lt;br /&gt;log_fifo_size (1000);&lt;br /&gt;# Create log directories as needed&lt;br /&gt;create_dirs (yes);&lt;br /&gt;# Make the group "logs" own the log files and directories&lt;br /&gt;group (logs);&lt;br /&gt;dir_group (logs);&lt;br /&gt;# Set the file and directory permissions&lt;br /&gt;perm (0640);&lt;br /&gt;dir_perm (0750);&lt;br /&gt;# Check client hostnames for valid DNS characters&lt;br /&gt;check_hostname (yes);&lt;br /&gt;# Specify whether to trust hostname in the log message.&lt;br /&gt;# If "yes", then it is left unchanged, if "no" the server replaces&lt;br /&gt;# it with client's DNS lookup value.&lt;br /&gt;keep_hostname (yes);&lt;br /&gt;# Use DNS fully qualified domain names (FQDN)&lt;br /&gt;# for the names of log file folders&lt;br /&gt;use_fqdn (yes);&lt;br /&gt;use_dns (yes);&lt;br /&gt;# Cache DNS entries for up to 1000 hosts for 12 hours&lt;br /&gt;dns_cache (yes);&lt;br /&gt;dns_cache_size (1000);&lt;br /&gt;dns_cache_expire (43200);&lt;br /&gt;};&lt;br /&gt;# Define all the sources of localhost generated syslog&lt;br /&gt;# messages and label it "d_localhost"&lt;br /&gt;source s_localhost {&lt;br /&gt;pipe ("/proc/kmsg" log_prefix("kernel: "));&lt;br /&gt;unix-stream ("/dev/log");&lt;br /&gt;internal();&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;# Define all the sources of network generated syslog&lt;br /&gt;# messages and label it "d_network"&lt;br /&gt;source s_network {&lt;br /&gt;tcp(max-connections(5000));&lt;br /&gt;udp();&lt;br /&gt;};&lt;br /&gt;# Define the destination "d_localhost" log directory&lt;br /&gt;destination d_localhost {&lt;br /&gt;file ("/var/log/syslog-ng/$YEAR.$MONTH.$DAY/localhost/$FACILITY.log");&lt;br /&gt;};&lt;br /&gt;# Define the destination "d_network" log directory&lt;br /&gt;destination d_network {&lt;br /&gt;file ("/var/log/syslog-ng/$YEAR.$MONTH.$DAY/$HOST/$FACILITY.log");&lt;br /&gt;};&lt;br /&gt;# Any logs that match the "s_localhost" source should be logged&lt;br /&gt;# in the "d_localhost" directory&lt;br /&gt;log { source(s_localhost);&lt;br /&gt;destination(d_localhost);&lt;br /&gt;};&lt;br /&gt;# Any logs that match the "s_network" source should be logged&lt;br /&gt;# in the "d_network" directory&lt;br /&gt;&lt;br /&gt;log { source(s_network);&lt;br /&gt;destination(d_network);&lt;br /&gt;};&lt;br /&gt;In our example, the first set of sources is labeled s_localhost. It includes all system messages sent to the Linux /dev/log device, which is one of syslog's data sources, all messages that syslog-ng views as being of an internal nature and additionally inserts the prefix "kernel" to all messages it intercepts on their way to the /proc/kmsg kernel message file.&lt;br /&gt;Unlike a regular syslog server which listens for client messages on UDP port 514, syslog-ng also listens on TCP port 514. The second set of sources is labeled s_network and includes all syslog messages obtained from UDP sources and limits TCP syslog connections to 5000. Limiting the number of connections to help regulate system load is a good practice in the event that some syslog client begins to inundate your server with messages.&lt;br /&gt;Our example also has two destinations for syslog messages, one named d_localhost, the other, d_network. These examples show the flexibility of syslog-ng in using variables. The $YEAR, $MONTH and $DAY variables map to the current year, month and day in YYYY, MM and DD format respectively. Therefore the example: /var/log/syslog-ng/$YEAR.$MONTH.$DAY/$HOST/$FACILITY.log&lt;br /&gt;refers to a directory called /var/log/syslog-ng/2005.07.09 when messages arrive on July 9, 2005. The $HOST variable refers to the hostname of the syslog client and will map to the client's IP address if DNS services are deactivated in the options section of the syslog-ng.conf file. Similarly the $FACILITY variable refers to the facility of the syslog messages that arrive from that host. &lt;a name="Installing_syslog-ng"&gt;&lt;/a&gt;&lt;br /&gt;Installing syslog-ng&lt;br /&gt;The most recent syslog-ng and its companion eventlog tar files can be downloaded from the www.balabit.com website. The installation procedure is straightforward, but you will need to have the Linux gcc C programming language compiler preinstalled to be successful. Here are the steps.&lt;br /&gt;1. Download the tar files from the BalaBit website. In this case we have browsed the website beforehand and know the exact URLs to use with the wget command. [root@zippy tmp]# wget wget &lt;a class="external free" title="http://www.balabit.com/downloads/syslog-ng/2.0/src/eventlog-0.2.5.tar.gz" href="http://www.balabit.com/downloads/syslog-ng/2.0/src/eventlog-0.2.5.tar.gz"&gt;http://www.balabit.com/downloads/syslog-ng/2.0/src/eventlog-0.2.5.tar.gz&lt;/a&gt;&lt;br /&gt;--12:34:17-- wget &lt;a class="external free" title="http://www.balabit.com/downloads/syslog-ng/2.0/src/eventlog-0.2.5.tar.gz" href="http://www.balabit.com/downloads/syslog-ng/2.0/src/eventlog-0.2.5.tar.gz"&gt;http://www.balabit.com/downloads/syslog-ng/2.0/src/eventlog-0.2.5.tar.gz&lt;/a&gt;&lt;br /&gt;=&gt; `eventlog-0.2.5.tar.gz'&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;12:34:19 (162.01 KB/s) - `eventlog-0.2.5.tar.gz' saved [345231]&lt;br /&gt;[root@zippy tmp]# wget &lt;a class="external free" title="http://www.balabit.com/downloads/syslog-ng/2.0/src/syslog-ng-2.0.0.tar.gz" href="http://www.balabit.com/downloads/syslog-ng/2.0/src/syslog-ng-2.0.0.tar.gz"&gt;http://www.balabit.com/downloads/syslog-ng/2.0/src/syslog-ng-2.0.0.tar.gz&lt;/a&gt;&lt;br /&gt;--12:24:21-- wget &lt;a class="external free" title="http://www.balabit.com/downloads/syslog-ng/2.0/src/syslog-ng-2.0.0.tar.gz" href="http://www.balabit.com/downloads/syslog-ng/2.0/src/syslog-ng-2.0.0.tar.gz"&gt;http://www.balabit.com/downloads/syslog-ng/2.0/src/syslog-ng-2.0.0.tar.gz&lt;/a&gt;&lt;br /&gt;=&gt; ` syslog-ng-2.0.0.tar.gz'&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;12:24:24 (156.15 KB/s) - ` syslog-ng-2.0.0.tar.gz' saved [383589]&lt;br /&gt;[root@zippy tmp]#&lt;br /&gt;2. Install the prerequisite glib libraries. [root@zippy tmp]# yum -y install glib&lt;br /&gt;3. Using the tar command we extract the files in the pre-requisite eventlog archive and then use the configure; make and make install commands to install them correctly. Pay special attention to the output of the configure command to make sure that all the pre-installation tests are passed. If not, install the packages the error messages request and then start again. [root@zippy tmp]# tar -xzf eventlog-0.2.5.tar.gz&lt;br /&gt;[root@zippy tmp]# cd eventlog-0.2.5&lt;br /&gt;[root@zippy eventlog-0.2.5]# ./configure&lt;br /&gt;checking for a BSD-compatible install... /usr/bin/install -c&lt;br /&gt;checking whether build environment is sane... yes&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;[root@zippy eventlog-0.2.5]# make&lt;br /&gt;Making all in utils&lt;br /&gt;make[1]: Entering directory `/tmp/eventlog-0.2.5/utils'&lt;br /&gt;sed -e "s,_SCSH_,/usr/bin/scsh," make_class.in &gt;make_class&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;[root@zippy eventlog-0.2.5]# make install&lt;br /&gt;Making install in utils&lt;br /&gt;make[1]: Entering directory `/tmp/eventlog-0.2.5/utils'&lt;br /&gt;make[2]: Entering directory `/tmp/eventlog-0.2.5/utils'&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;make[2]: Leaving directory `/tmp/eventlog-0.2.5'&lt;br /&gt;make[1]: Leaving directory `/tmp/eventlog-0.2.5'&lt;br /&gt;[root@zippy eventlog-0.2.5]#&lt;br /&gt;4. The next step is to install the prerequisite glib package on your system. [root@zippy eventlog-0.2.5]# yum -y install glib&lt;br /&gt;5. Some environmental variables also need to be set prior to the installation of the syslog-ng files. [root@zippy eventlog-0.2.5]# PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/&lt;br /&gt;[root@zippy eventlog-0.2.5]# export PKG_CONFIG_PATH&lt;br /&gt;6. Using the tar command we extract the files in the pre-requisite syslog-ng archive and then use the configure, make clean, make and make install commands to install them correctly. In this case we the --sysconfdir directive with the configure command to make sure syslog-ng searches for its configuration file in the /etc directory. Once again, pay close attention to the pre-installation tests that the configure command executes. [root@zippy eventlog-0.2.5]# cd /tmp&lt;br /&gt;[root@zippy tmp]# tar -xzf syslog-ng-2.0.0.tar.gz&lt;br /&gt;[root@zippy tmp]# cd syslog-ng-2.0.0&lt;br /&gt;[root@zippy syslog-ng-2.0.0]# make clean&lt;br /&gt;[root@zippy syslog-ng-2.0.0]# ./configure --sysconfdir=/etc&lt;br /&gt;checking for a BSD-compatible install... /usr/bin/install -c&lt;br /&gt;checking whether build environment is sane... yes&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;[root@zippy syslog-ng-2.0.0]# make; make install&lt;br /&gt;Making all in src&lt;br /&gt;make[1]: Entering directory `/tmp/ syslog-ng-2.0.0/src'&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;[root@zippy syslog-ng-2.0.0]#&lt;br /&gt;7. The installation has template init.d/syslog-ng scripts and syslog-ng.conf files in the contribs/ directory. [root@zippy syslog-ng-2.0.0]# ls contrib/&lt;br /&gt;fedora-packaging init.d.RedHat-7.3 init.d.SuSE&lt;br /&gt;Makefile.in rhel-packaging syslog-ng.conf.HP-UX&lt;br /&gt;syslog-ng.vim init.d.HP-UX init.d.solaris&lt;br /&gt;Makefile README syslog2ng&lt;br /&gt;init.d.RedHat syslog-ng.conf.RedHat init.d.SunOS&lt;br /&gt;Makefile.am relogger.pl syslog-ng.conf.doc&lt;br /&gt;syslog-ng.conf.SunOS&lt;br /&gt;[root@zippy syslog-ng-2.0.0]#&lt;br /&gt;8. Copy the versions for your operating system to the /etc/init.d and /etc , /etc/logrotate.d , /etc/sysconfig directories. The /etc/syslog-ng/ directory needs to be created beforehand. Redhat and Fedora installations have their own subdirectories contrib/. [root@zippy syslog-ng-2.0.0]# mkdir /etc/syslog-ng/&lt;br /&gt;[root@zippy syslog-ng-2.0.0]# cp contrib/fedora-packaging/syslog-ng.init \&lt;br /&gt;/etc/init.d/syslog-ng&lt;br /&gt;[root@zippy syslog-ng-2.0.0]# cp contrib/fedora-packaging/syslog-ng.conf \&lt;br /&gt;/etc&lt;br /&gt;[root@zippy syslog-ng-2.0.0]# cp contrib/fedora-packaging/syslog-ng.sysconfig \&lt;br /&gt;/etc/sysconfig/syslog-ng&lt;br /&gt;[root@zippy syslog-ng-2.0.0]# cp contrib/fedora-packaging/syslog-ng.logrotate \&lt;br /&gt;/etc/logrotate.d/syslog-ng&lt;br /&gt;Remember that you may want to customize your syslog-ng.conf file.&lt;br /&gt;9. Change the permissions on your new /etc/inid.d/syslog-ng file. [root@zippy syslog-ng-2.0.0]# chmod 755 /etc/init.d/syslog-ng&lt;br /&gt;10. You need to be careful. The init.d script may refer to a syslog-ng binary file that's in an incorrect location. Find its true location and edit the script. [root@zippy syslog-ng-2.0.0]# updatedb&lt;br /&gt;[root@zippy syslog-ng-2.0.0]# locate syslog-ng grep bin&lt;br /&gt;/usr/local/sbin/syslog-ng&lt;br /&gt;[root@zippy syslog-ng-2.0.0]# vi /etc/init.d/syslog-ng&lt;br /&gt;...&lt;br /&gt;#exec="/sbin/syslog-ng"&lt;br /&gt;exec="/usr/local/sbin/syslog-ng"&lt;br /&gt;...&lt;br /&gt;:wq&lt;br /&gt;[root@zippy syslog-ng-2.0.0]#&lt;br /&gt;11. Next create the /etc/syslog-ng directory for the configuration files and the /var/log/syslog-ng directory for the log files. [root@zippy syslog-ng-2.0.0]# chkconfig syslog off&lt;br /&gt;[root@zippy syslog-ng-2.0.0]# chkconfig syslog-ng on&lt;br /&gt;[root@zippy syslog-ng-2.0.0]# service syslog stop&lt;br /&gt;Shutting down kernel logger: [ OK ]&lt;br /&gt;Shutting down system logger: [ OK ]&lt;br /&gt;[root@zippy syslog-ng-2.0.0]# service syslog-ng start&lt;br /&gt;syslog-ng: unrecognized service&lt;br /&gt;[root@zippy syslog-ng-2.0.0]#&lt;br /&gt;12. The sample syslog-ng.conf file in Figure 5-1 was configured to have all directories owned by the group logs. This user group needs to be created and any users that need access to the directories need to added to this group using the usermod command. In this case the user peter is added to the group and the groups command is used to verify success. [root@zippy tmp]# groupadd logs&lt;br /&gt;[root@zippy tmp]# usermod -G logs peter&lt;br /&gt;[root@zippy tmp]# groups peter&lt;br /&gt;peter: users logs&lt;br /&gt;[root@zippy tmp]# usermod -G logs peter&lt;br /&gt;13. You can now configure syslog-ng to start on the next reboot with the chkconfig command and then use the service command to start it immediately. Remember to stop the old syslog process beforehand. [root@zippy tmp]# service syslog stop&lt;br /&gt;Shutting down kernel logger: [ OK ]&lt;br /&gt;Shutting down system logger: [ OK ]&lt;br /&gt;[root@zippy tmp]# chkconfig syslog off&lt;br /&gt;[root@zippy tmp]# chkconfig syslog-ng on&lt;br /&gt;[root@zippy tmp]# service syslog-ng start&lt;br /&gt;Starting system logger: [ OK ]&lt;br /&gt;Starting kernel logger: [ OK ]&lt;br /&gt;[root@zippy tmp]#&lt;br /&gt;14. Now, your remote hosts should log begin logging to the /var/log/syslog-ng directory. According to our preliminary configuration file, there should be sub-directories categorized by date inside it. Each of these sub-directories in turn will have directories beneath them named after the IP address and/or hostname of the various remote syslog clients and will contain files categorized by syslog facility. In this example we see that the 2005.07.09 directory as received messages from three hosts, 192.168.1.1, 192.168.1.100 and localhost. [root@zippy tmp]# ls /var/log/syslog-ng/&lt;br /&gt;2005.07.09&lt;br /&gt;[root@zippy tmp]# ll /var/log/syslog-ng/2005.07.09/&lt;br /&gt;drwxr-x--- 2 root logs 4096 Jul 9 17:01 192-168-1-1.my-web-site.org&lt;br /&gt;drwxr-x--- 2 root logs 4096 Jul 9 16:45 192-168-1-99.my-web-site.org&lt;br /&gt;drwxr-x--- 2 root logs 4096 Jul 9 23:24 LOGGER&lt;br /&gt;[root@zippy tmp]# ls /var/log/syslog-ng/2005.07.09/localhost/&lt;br /&gt;cron.log kern.log local7.log syslog.log&lt;br /&gt;[root@zippy tmp]#&lt;br /&gt;Using syslog-ng your system can now be used as a much more customizable tool to help troubleshoot devices attached to your network. Each day syslog-ng will automatically create new sub-directories to match the current date and at the end of each calendar quarter the files will be moved to a special archive directory containing all the data for the previous three months. This archived data can then be periodically deleted as needed. For very large deployments, or for better searching and correlation capabilities, it is possible to send the output of syslog-ng to a SQL type database. This is beyond the scope of this book, but it is a worthwhile feature to keep in mind. &lt;a name="Configuring_syslog-ng_Clients"&gt;&lt;/a&gt;&lt;br /&gt;Configuring syslog-ng Clients&lt;br /&gt;Clients logging to the syslog-ng server don't need to have syslog-ng installed on them, a regular syslog client configuration will suffice.&lt;br /&gt;&lt;a name="Simple_syslog_Security"&gt;&lt;/a&gt;&lt;br /&gt;Simple syslog Security&lt;br /&gt;One of the shortcomings of a syslog server is that it doesn't filter out messages from undesirable sources. It is therefore wise to implement the use of TCP wrappers or a firewall to limit the acceptable sources of messages when your server isn't located on a secure network. This will help to limit the effectiveness of syslog based denial of service attacks aimed at filling up your server's hard disk or taxing other system resources that could eventually cause the server to crash.&lt;br /&gt;Remember that regular syslog servers listen on UDP port 514 and syslog-ng servers rely on port 514 for both UDP and TCP. Please refer to Chapter 14, "&lt;a title="Quick HOWTO : Ch14 : Linux Firewalls Using iptables" href="http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch14_:_Linux_Firewalls_Using_iptables"&gt;Linux Firewalls Using iptables&lt;/a&gt;", on Linux firewalls for details on how to configure the Linux iptables firewall application and Appendix I, "&lt;a title="Quick HOWTO : Ap01 : Miscellaneous Linux Topics" href="http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ap01_:_Miscellaneous_Linux_Topics"&gt;Miscellaneous Linux Topics&lt;/a&gt;", for further information on configuring TCP wrappers. &lt;a name="Conclusion"&gt;&lt;/a&gt;&lt;br /&gt;Conclusion&lt;br /&gt;In the next chapter we cover the installation of Linux applications, and the use of syslog will become increasingly important especially in the troubleshooting of Linux-based firewalls which can be configured to ignore and then log all undesirable packets; the Apache Web server which logs all application programming errors generated by some of the popular scripting languages such as PERL and PHP; and finally, Linux mail whose configuration files are probably the most frequently edited system documents of all and which correspondingly suffer from the most mistakes.&lt;br /&gt;This syslog chapter should make you more confident to learn more about these applications via experimentation because you'll at least know where to look at the first sign of trouble.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Some contents retrieved from "&lt;a href="http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch05_:_Troubleshooting_Linux_with_syslog"&gt;http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch05_:_Troubleshooting_Linux_with_syslog&lt;/a&gt;"&lt;br /&gt;&lt;br /&gt;Some more useful links on syslog:&lt;br /&gt;&lt;a href="http://www.monitorware.com/en/topics/syslog/"&gt;tutorials and guides&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.syslog.org/"&gt;syslog home (tips and tools)&lt;/a&gt;&lt;br /&gt;&lt;a href="http://doc.novsu.ac.ru/oreilly/tcpip/puis/ch10_05.htm"&gt;Practical Unix &amp;amp; Internet Security (O'Reilly)&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3785118110132341585-709830812599147341?l=itleadarchitect.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itleadarchitect.blogspot.com/feeds/709830812599147341/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3785118110132341585&amp;postID=709830812599147341&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3785118110132341585/posts/default/709830812599147341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3785118110132341585/posts/default/709830812599147341'/><link rel='alternate' type='text/html' href='http://itleadarchitect.blogspot.com/2007/06/syslog.html' title='Syslog'/><author><name>NullFame</name><uri>http://www.blogger.com/profile/07498992839822721580</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp2.blogger.com/_944y7QbqFZU/Rs7QIB3WP6I/AAAAAAAAACY/1yZBGVOvOak/s400/bruce.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp0.blogger.com/_944y7QbqFZU/RnLyKz6lVHI/AAAAAAAAACQ/fRUncFhEeMA/s72-c/syslog_table_1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
