PowerCLI

We can't forget PowerCLI, of course. PowerShell lovers will love PowerCLI or PowerNSX. As you already know, you must first log in to the ESXi or vCenter server:

Connect-VIServer IP/FQDN

You can easily get information about hosts with the Get-VMHost command:

PS C:> Get-VMHost

Name ConnectionState PowerState NumCpu CpuUsageMhz CpuTotalMhz MemoryUsageGB MemoryTotalGB Version

---- --------------- ---------- ------ ----------- ----------- ------------- ------------- -------
esxi-prod-5.learn... Connected PoweredOn 4 98 14396 5.997 11.999 6.7.0
esxi-prod-4.learn... Connected PoweredOn 4 142 14396 3.440 11.999 6.7.0
esxi-prod-6.learn... Connected PoweredOn 4 75 14396 1.437 11.999 6.7.0
esxi-prod-2.learn... Connected PoweredOn 4 870 14396 10.978 11.999 6.7.0
esxi-prod-1.learn... Connected PoweredOn 4 309 14396 1.565 11.999 6.7.0
esxi-prod-3.learn... Connected PoweredOn 4 156 14396 6.032 11.999 6.7.0

I think that your brain is now full of CLI and commands. However, at this moment, it is not essential to remember every CLI. We need to know and remember what is possible and which CLI can be used for the different parts of the TRBL process.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.88.130