{"id":555,"date":"2009-08-27T22:13:00","date_gmt":"2009-08-27T22:13:00","guid":{"rendered":"https:\/\/brainlitter.itgroove.net\/2009\/08\/27\/patching-standalone-esx4-using-vsphere-cli-on-windows\/"},"modified":"2009-08-27T22:13:00","modified_gmt":"2009-08-27T22:13:00","slug":"patching-standalone-esx4-using-vsphere-cli-on-windows","status":"publish","type":"post","link":"https:\/\/regroove.ca\/brainlitter\/2009\/08\/27\/patching-standalone-esx4-using-vsphere-cli-on-windows\/","title":{"rendered":"Patching Standalone ESX4 using vSphere CLI on Windows"},"content":{"rendered":"<div class=\"ExternalClassF70804DA75D04945A1AA77B2E892ABBA\">\n<p>Thanks to Robert from our office for this visual walkthrough of the ESX4 patching process, when you don&#8217;t have Virtual Center.<\/p>\n<\/p>\n<p>ESXi 4 hosts can be patched using the GUI tool VMHostUpdate. ESX4 hosts, on the other hand, have to be patched manually if there is no vCenter involved in managing the host. There are CLI tools on the host that allow for patch management but the VMware vSphere CLI toolset for Windows workstations makes the job a much easier task.<\/p>\n<\/p>\n<p>If you do not have the vSphere CLI toolset on your machine it can be downloaded from the VMware download site.<\/p>\n<\/p>\n<h2>Step 1: Download patch from VMware<\/h2>\n<p>Patches are easily downloaded from VMware from the ESX download site. The best way to patch is to download the rollup patch in the form of a zip file. Individual bulletins&#8221; can be downloaded to patch a single issue but the rollup zip&#8217;s are the best way to go. Obtain the zip and store in a local directory on the machine that has the CLI tools. For purposes of this blog the location is C: .<\/p>\n<\/p>\n<h2>Step 2: Verify the patch is appropriate for your ESX and install<\/h2>\n<p>First, using the vSphere client, shutdown all running guest VM&#8217;s and place ESX into <strong>Maintenance Mode<\/strong>. This is mandatory for the rest of the process to succeed.<\/p>\n<\/p>\n<p>Open the vSphere CLI command prompt then cd to bin.<\/p>\n<\/p>\n<p><img decoding=\"async\" src=\"\/brainlitterarchive\/Lists\/Photos\/082809_0513_PatchingSta1.png\" alt=\"\"><\/p>\n<\/p>\n<p>(The rest of the examples are cut\/pasted from the command prompt window)<\/p>\n<\/p>\n<p>Using the vihostupdate.pl command to execute the following:<\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">C:Program FilesVMwareVMware vSphere CLIbin&gt;vihostupdate.pl &#8211;server 192.168.18.110 &#8211;username root &#8211;password XXXXXX \u2013query <\/span><\/p>\n<\/p>\n<p>(Substitute the IP or FQDN of your target server as well as the username and password)<\/p>\n<\/p>\n<p>This command will return a list of applied patches\/bundles installed on the server, in this case there were none installed.<\/p>\n<\/p>\n<p>Execute the following command to scan the zip file previously downloaded for applicability to your server. Again, substitute appropriate values for server, username, password and location\/name of your downloaded zip file:<\/p>\n<\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">C:Program FilesVMwareVMware vSphere CLIbin&gt;vihostupdate.pl &#8211;server 192.168.18.110 &#8211;username root &#8211;password XXXXXX &#8211;bundle c:esx400-200906001.zip \u2013scan <\/span><\/p>\n<\/p>\n<p>The command will return output similar to the following:<\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">The bulletins which apply to but are not yet installed on this ESX host are listed. <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">&#8212;&#8212;&#8212;Bulletin ID&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;-Summary&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906412-BG Updates esxupdate <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906401-BG Updates VMX <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906404-BG Updates CIM <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906411-SG Updates udev <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906402-BG Updates ESX Scripts <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906406-SG Updates sudo <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906405-SG Updates krb5 and pam_krb5 <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906410-BG Updates hostd <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906407-SG Updates curl <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906403-BG Updates VMware Tools <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906408-BG Updates SCSI Driver for QLogic FC <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906409-BG Updates LSI storelib Library <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906413-BG Updates vmkernel iSCSI Driver <\/span><\/p>\n<\/p>\n<p>This is the listing of the bulletins within the patch zip file that apply to your server.<\/p>\n<\/p>\n<p>Use the following command to upload the zip to your server and apply the appropriate bulletins. Again, substitute appropriate values for server, username, password and location\/name of your downloaded zip file:<\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">C:Program FilesVMwareVMware vSphere CLIbin&gt;vihostupdate.pl &#8211;server 192.168.18.110 &#8211;username root &#8211;password XXXXXX &#8211;bundle c:esx400-200906001.zip \u2013install <\/span><\/p>\n<\/p>\n<p>The command will run for some period of time. Upon completion the following will be displayed:<\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">The update completed successfully, but the system needs to be rebooted for the changes to be effective. <\/span><\/p>\n<\/p>\n<p>NOTE: The wording may be different if applied patches do NOT require a system reboot. In this case you will need to restart the ESX server. Once the server has rebooted, use the following command to verify the patches have applied:<\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">C:Program FilesVMwareVMware vSphere CLIbin&gt;vihostupdate.pl &#8211;server 192.168.18.110 &#8211;username root &#8211;password XXXXXX \u2013query <\/span><\/p>\n<\/p>\n<p>You should see output similar to the following:<\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">&#8212;&#8212;&#8212;Bulletin ID&#8212;&#8212;&#8212; &#8212;&#8211;Installed&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;-Summary&#8212;&#8212;- <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906401-BG 2009-08-27T20:24:31 Updates VMX <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906412-BG 2009-08-27T20:24:31 Updates esxupdate <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906404-BG 2009-08-27T20:24:31 Updates CIM <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906411-SG 2009-08-27T20:24:31 Updates udev <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906405-SG 2009-08-27T20:24:31 Updates krb5 and pam_krb5 <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906406-SG 2009-08-27T20:24:31 Updates sudo <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906402-BG 2009-08-27T20:24:31 Updates ESX Scripts <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906407-SG 2009-08-27T20:24:31 Updates curl <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906403-BG 2009-08-27T20:24:31 Updates VMware Tools <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906408-BG 2009-08-27T20:24:31 Updates SCSI Driver for QLogic FC <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906409-BG 2009-08-27T20:24:31 Updates LSI storelib Library <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">ESX400-200906413-BG 2009-08-27T20:24:31 Updates vmkernel iSCSI Driver <\/span><\/p>\n<\/p>\n<p>If you are super paranoid you can rerun the following command:<\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">C:Program FilesVMwareVMware vSphere CLIbin&gt;vihostupdate.pl &#8211;server 192.168.18.110 &#8211;username root &#8211;password XXXXXX\u00a0 &#8211;bundle c:esx400-200906001.zip \u2013scan <\/span><\/p>\n<\/p>\n<p>Which should then return the following:<\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">The bulletins which apply to but are not yet installed on this ESX host are listed. <\/span><\/p>\n<p><span style=\"color:#c0504d;font-family:Courier New;font-size:10pt\">&#8212;&#8212;&#8212;Bulletin ID&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;-Summary&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; <\/span><\/p>\n<\/p>\n<p>This indicates that the patch has been fully applied. You can now log back into the vSphere Client and take ESX out of maintenance mode and then start up the guest VM&#8217;s (or reboot and allow ESX to autostart them).<\/p>\n<p>Patching process is now complete!<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Thanks to Robert from our office for this visual walkthrough of the ESX4 patching process, when you don&#8217;t have Virtual Center. ESXi 4 hosts can be patched using the GUI tool VMHostUpdate. ESX4 hosts, on the other hand, have to be patched manually if there is no vCenter involved in managing the host. There are &hellip; <a href=\"https:\/\/regroove.ca\/brainlitter\/2009\/08\/27\/patching-standalone-esx4-using-vsphere-cli-on-windows\/\"><\/a><\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":"","_jetpack_memberships_contains_paid_content":false},"categories":[430],"tags":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Patching Standalone ESX4 using vSphere CLI on Windows - Brainlitter - Inside the mind of Sean Wallbridge<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/regroove.ca\/brainlitter\/2009\/08\/27\/patching-standalone-esx4-using-vsphere-cli-on-windows\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Patching Standalone ESX4 using vSphere CLI on Windows - Brainlitter - Inside the mind of Sean Wallbridge\" \/>\n<meta property=\"og:description\" content=\"Thanks to Robert from our office for this visual walkthrough of the ESX4 patching process, when you don&#8217;t have Virtual Center. ESXi 4 hosts can be patched using the GUI tool VMHostUpdate. ESX4 hosts, on the other hand, have to be patched manually if there is no vCenter involved in managing the host. There are &hellip;\" \/>\n<meta property=\"og:url\" content=\"http:\/\/regroove.ca\/brainlitter\/2009\/08\/27\/patching-standalone-esx4-using-vsphere-cli-on-windows\/\" \/>\n<meta property=\"og:site_name\" content=\"Brainlitter - Inside the mind of Sean Wallbridge\" \/>\n<meta property=\"article:published_time\" content=\"2009-08-27T22:13:00+00:00\" \/>\n<meta name=\"author\" content=\"Sean Wallbridge\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sean Wallbridge\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/regroove.ca\/brainlitter\/2009\/08\/27\/patching-standalone-esx4-using-vsphere-cli-on-windows\/\",\"url\":\"http:\/\/regroove.ca\/brainlitter\/2009\/08\/27\/patching-standalone-esx4-using-vsphere-cli-on-windows\/\",\"name\":\"Patching Standalone ESX4 using vSphere CLI on Windows - Brainlitter - Inside the mind of Sean Wallbridge\",\"isPartOf\":{\"@id\":\"https:\/\/regroove.ca\/brainlitter\/#website\"},\"datePublished\":\"2009-08-27T22:13:00+00:00\",\"dateModified\":\"2009-08-27T22:13:00+00:00\",\"author\":{\"@id\":\"https:\/\/regroove.ca\/brainlitter\/#\/schema\/person\/74e1c0def190f181c1394c2b6d883e77\"},\"breadcrumb\":{\"@id\":\"http:\/\/regroove.ca\/brainlitter\/2009\/08\/27\/patching-standalone-esx4-using-vsphere-cli-on-windows\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/regroove.ca\/brainlitter\/2009\/08\/27\/patching-standalone-esx4-using-vsphere-cli-on-windows\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/regroove.ca\/brainlitter\/2009\/08\/27\/patching-standalone-esx4-using-vsphere-cli-on-windows\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Brainlitter\",\"item\":\"https:\/\/regroove.ca\/brainlitter\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Patching Standalone ESX4 using vSphere CLI on Windows\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/regroove.ca\/brainlitter\/#website\",\"url\":\"https:\/\/regroove.ca\/brainlitter\/\",\"name\":\"Brainlitter - Inside the mind of Sean Wallbridge\",\"description\":\"Dad. Husband. Drummer. Learner of Things.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/regroove.ca\/brainlitter\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/regroove.ca\/brainlitter\/#\/schema\/person\/74e1c0def190f181c1394c2b6d883e77\",\"name\":\"Sean Wallbridge\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/regroove.ca\/brainlitter\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/adf8cea6291c39d166616f2148d919a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/adf8cea6291c39d166616f2148d919a6?s=96&d=mm&r=g\",\"caption\":\"Sean Wallbridge\"},\"url\":\"https:\/\/regroove.ca\/brainlitter\/author\/swallbridge\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Patching Standalone ESX4 using vSphere CLI on Windows - Brainlitter - Inside the mind of Sean Wallbridge","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/regroove.ca\/brainlitter\/2009\/08\/27\/patching-standalone-esx4-using-vsphere-cli-on-windows\/","og_locale":"en_US","og_type":"article","og_title":"Patching Standalone ESX4 using vSphere CLI on Windows - Brainlitter - Inside the mind of Sean Wallbridge","og_description":"Thanks to Robert from our office for this visual walkthrough of the ESX4 patching process, when you don&#8217;t have Virtual Center. ESXi 4 hosts can be patched using the GUI tool VMHostUpdate. ESX4 hosts, on the other hand, have to be patched manually if there is no vCenter involved in managing the host. There are &hellip;","og_url":"http:\/\/regroove.ca\/brainlitter\/2009\/08\/27\/patching-standalone-esx4-using-vsphere-cli-on-windows\/","og_site_name":"Brainlitter - Inside the mind of Sean Wallbridge","article_published_time":"2009-08-27T22:13:00+00:00","author":"Sean Wallbridge","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Sean Wallbridge","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/regroove.ca\/brainlitter\/2009\/08\/27\/patching-standalone-esx4-using-vsphere-cli-on-windows\/","url":"http:\/\/regroove.ca\/brainlitter\/2009\/08\/27\/patching-standalone-esx4-using-vsphere-cli-on-windows\/","name":"Patching Standalone ESX4 using vSphere CLI on Windows - Brainlitter - Inside the mind of Sean Wallbridge","isPartOf":{"@id":"https:\/\/regroove.ca\/brainlitter\/#website"},"datePublished":"2009-08-27T22:13:00+00:00","dateModified":"2009-08-27T22:13:00+00:00","author":{"@id":"https:\/\/regroove.ca\/brainlitter\/#\/schema\/person\/74e1c0def190f181c1394c2b6d883e77"},"breadcrumb":{"@id":"http:\/\/regroove.ca\/brainlitter\/2009\/08\/27\/patching-standalone-esx4-using-vsphere-cli-on-windows\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/regroove.ca\/brainlitter\/2009\/08\/27\/patching-standalone-esx4-using-vsphere-cli-on-windows\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/regroove.ca\/brainlitter\/2009\/08\/27\/patching-standalone-esx4-using-vsphere-cli-on-windows\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Brainlitter","item":"https:\/\/regroove.ca\/brainlitter\/"},{"@type":"ListItem","position":2,"name":"Patching Standalone ESX4 using vSphere CLI on Windows"}]},{"@type":"WebSite","@id":"https:\/\/regroove.ca\/brainlitter\/#website","url":"https:\/\/regroove.ca\/brainlitter\/","name":"Brainlitter - Inside the mind of Sean Wallbridge","description":"Dad. Husband. Drummer. Learner of Things.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/regroove.ca\/brainlitter\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/regroove.ca\/brainlitter\/#\/schema\/person\/74e1c0def190f181c1394c2b6d883e77","name":"Sean Wallbridge","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/regroove.ca\/brainlitter\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/adf8cea6291c39d166616f2148d919a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/adf8cea6291c39d166616f2148d919a6?s=96&d=mm&r=g","caption":"Sean Wallbridge"},"url":"https:\/\/regroove.ca\/brainlitter\/author\/swallbridge\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/posts\/555"}],"collection":[{"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/comments?post=555"}],"version-history":[{"count":0,"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/posts\/555\/revisions"}],"wp:attachment":[{"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/media?parent=555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/categories?post=555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/tags?post=555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}