{"id":1395,"date":"2020-09-02T14:07:26","date_gmt":"2020-09-02T04:07:26","guid":{"rendered":"https:\/\/blog.hegars.com\/?p=1395"},"modified":"2020-09-02T14:11:52","modified_gmt":"2020-09-02T04:11:52","slug":"vmware","status":"publish","type":"post","link":"https:\/\/blog.hegars.com\/?p=1395","title":{"rendered":"VMware"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Poweron VM from CLI<\/h2>\n\n\n\n<p>To power on a virtual machine from the command line:<\/p>\n\n\n\n<ol><li>List the inventory ID of the virtual machine with the command:<br><br><em>vim-cmd vmsvc\/getallvms |grep &lt;vm name><\/em><br><br><strong>Note<\/strong>: The first (leftmost) column of the output shows the\u00a0vmid.<br>\u00a0<\/li><li>Check the power state of the virtual machine with the command:<br><br><em>vim-cmd vmsvc\/power.getstate &lt;vmid><\/em><br>\u00a0<\/li><li>Power-on the virtual machine with the command:<br><br><em>vim-cmd vmsvc\/power.on &lt;vmid><\/em><\/li><\/ol>\n\n\n\n<p>esxcli vm process list<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Get IP Routes<\/h2>\n\n\n\n<p>esxcli network ip route ipv4 list <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Get IP addresses <\/h2>\n\n\n\n<p>esxcli network ip interface ipv4 address list<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Poweron VM from CLI To power on a virtual machine from the command line: List the inventory ID of the virtual machine with the command: vim-cmd vmsvc\/getallvms |grep &lt;vm name> Note: The first (leftmost) column of the output shows the\u00a0vmid.\u00a0 Check the power state of the virtual machine with the command: vim-cmd vmsvc\/power.getstate &lt;vmid>\u00a0 Power-on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts\/1395"}],"collection":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1395"}],"version-history":[{"count":3,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts\/1395\/revisions"}],"predecessor-version":[{"id":1399,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts\/1395\/revisions\/1399"}],"wp:attachment":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1395"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}