{"id":814,"date":"2011-12-01T20:07:57","date_gmt":"2011-12-02T01:07:57","guid":{"rendered":"http:\/\/enterpriseadmins.org\/blog\/?p=814"},"modified":"2011-12-01T20:07:57","modified_gmt":"2011-12-02T01:07:57","slug":"get-esxcli-and-changes-with-vsphere-5-0","status":"publish","type":"post","link":"https:\/\/enterpriseadmins.org\/blog\/scripting\/get-esxcli-and-changes-with-vsphere-5-0\/","title":{"rendered":"Get-ESXCli and changes with vSphere 5.0"},"content":{"rendered":"<p>I mentioned in a previous post (<a href=\"http:\/\/enterpriseadmins.org\/blog\/virtualization\/vmware-view-inside-vcloud-director\/\">VMware View inside vCloud Director<\/a>) that we had to make a last minute change to the lab content on the fly.  This change was to Exercise 11 that covers the Get-ESXCli cmdlet.  I should mention that this is a change to ESXi &#8212; if you are using PowerCLI 5.0 to access a 4.1 host, you will need to use the 4.1 methods.<\/p>\n<p>The PowerCLI 4.x lab can be found here: <a href=\"http:\/\/www.indyvmug.com\/wp-content\/uploads\/2011\/08\/intro.html\">Demo Days 4: PowerCLI Lab<\/a><br \/>\nThe PowerCLI 5.x lab can be found here: <a href=\"http:\/\/enterpriseadmins.org\/blog\/scripting\/gcvmug-powercli-5-0-lab\/\">GCVMUG PowerCLI 5.0 Lab<\/a><\/p>\n<p>After connecting to the ESXi hosts directly with connect-viserver, we get the ESXCli and assign it to a variable:<\/p>\n<pre>\r\n$esxcli = Get-ESXCli\r\n<\/pre>\n<p>The changes apply to how you access virtual machine information.<\/p>\n<pre><strong># ESXi 4.1:<\/strong>\r\n$esxcli.vms.vm.list()\r\n\r\n<strong># ESXi 5.0:<\/strong>\r\n$esxcli.vm.process.list()<\/pre>\n<p>As you can see the root element for the VM namespace has changed as well as the child namespace.  This has been updated in the lab and should be corrected for the next show.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I mentioned in a previous post (VMware View inside vCloud Director) that we had to make a last minute change to the lab content on the fly. This change was to Exercise 11 that covers the Get-ESXCli cmdlet. I should &hellip; <a href=\"https:\/\/enterpriseadmins.org\/blog\/scripting\/get-esxcli-and-changes-with-vsphere-5-0\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3,4],"tags":[],"class_list":["post-814","post","type-post","status-publish","format-standard","hentry","category-scripting","category-virtualization"],"_links":{"self":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/comments?post=814"}],"version-history":[{"count":12,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/814\/revisions"}],"predecessor-version":[{"id":846,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/814\/revisions\/846"}],"wp:attachment":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/media?parent=814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/categories?post=814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/tags?post=814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}