{"id":1229,"date":"2017-01-21T01:07:12","date_gmt":"2017-01-20T17:07:12","guid":{"rendered":"https:\/\/umarzuki.org\/blogku\/?p=1229"},"modified":"2017-01-21T01:07:12","modified_gmt":"2017-01-20T17:07:12","slug":"kemaskini-esxi-5-1-menggunakan-powershell","status":"publish","type":"post","link":"https:\/\/umarzuki.org\/blog\/2017\/01\/21\/kemaskini-esxi-5-1-menggunakan-powershell\/","title":{"rendered":"Kemaskini ESXi 5.1 menggunakan PowerShell"},"content":{"rendered":"<p><code>> Connect-VIServer -Server 10.0.0.100 -User root -Password password<\/p>\n<p>> Get-VMhost | Select name, ConnectionState, Version, Build<\/code><\/p>\n<p>[code lang=&#8217;plain&#8217;]Name       ConnectionState Version Build<br \/>\n&#8212;-       &#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;- &#8212;&#8211;<br \/>\n10.0.0.100       Connected 5.1.0   2323236[\/code]<\/p>\n<p><code>> Set-VMhost -State Maintenance<\/code><\/p>\n<p>[code lang=&#8217;plain&#8217;]Name                 ConnectionState PowerState NumCpu CpuUsageMhz CpuTotalMhz   MemoryUsageGB   MemoryTotalGB Version<br \/>\n&#8212;-                 &#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;- &#8212;&#8212; &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8211;   &#8212;&#8212;&#8212;&#8212;-   &#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;-<br \/>\n10.0.0.100           Maintenance     PoweredOn       4         137        9040           1.527          43.991   5.1.0<\/p>\n<p>> Get-Datastore<\/p>\n<p>Name                               FreeSpaceGB      CapacityGB<br \/>\n&#8212;-                               &#8212;&#8212;&#8212;&#8211;      &#8212;&#8212;&#8212;-<br \/>\nmaildatastore1                         328.009       1,672.750<br \/>\ndatastore1                             265.133         274.000[\/code]<\/p>\n<p><code>>  New-PSDrive -name \"mounteddatastore\" -Root \\ -PSProvider VimDatastore -Datastore (Get-Datastore datastore1)<\/code><\/p>\n<p>[code lang=&#8217;plain&#8217;]Name           Used (GB)     Free (GB) Provider      Root                                               CurrentLocation<br \/>\n&#8212;-           &#8212;&#8212;&#8212;     &#8212;&#8212;&#8212; &#8212;&#8212;&#8211;      &#8212;-                                               &#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nmounted&#8230;                             VimDatastore  \\10.0.0.100@443\\ha-datacenter\\da&#8230;[\/code]<\/p>\n<p><code>> Copy-Datastoreitem C:\\Users\\umarz\\Downloads\\ESXi510-201605001.zip -Destination mounteddatastore:<\/code><\/p>\n<p>SSH ke ESXi dan taip<\/p>\n<p><code># esxcli software vib install -d \/vmfs\/volumes\/datastore1\/ESXi510-201605001.zip<br \/>\n# esxcli system shutdown reboot --reason patch<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>> Connect-VIServer -Server 10.0.0.100 -User root -Password password > Get-VMhost | Select name, ConnectionState, Version, Build [code lang=&#8217;plain&#8217;]Name ConnectionState Version Build &#8212;- &#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;- &#8212;&#8211; 10.0.0.100 Connected 5.1.0 2323236[\/code] > Set-VMhost -State Maintenance [code lang=&#8217;plain&#8217;]Name ConnectionState PowerState NumCpu CpuUsageMhz CpuTotalMhz MemoryUsageGB MemoryTotalGB Version &#8212;- &#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;- &#8212;&#8212; &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;- 10.0.0.100 Maintenance PoweredOn [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[181],"tags":[418,145,419,420],"class_list":["post-1229","post","type-post","status-publish","format-standard","hentry","category-vmware","tag-esxi-5","tag-patch","tag-vib","tag-zip"],"_links":{"self":[{"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/posts\/1229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/comments?post=1229"}],"version-history":[{"count":0,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/posts\/1229\/revisions"}],"wp:attachment":[{"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/media?parent=1229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/categories?post=1229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/tags?post=1229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}