In this recipe, we will learn how to issue commands on the added target vCenter Servers or ESXi hosts.
Running CLI commands on target servers
How to do it…
The following procedures explain how to set a target server and issue direct commands to it. We will discuss all three methods.
Method 1 – Issuing commands on the default target
Follow these steps to issue commands on the default target:
- Set the intended server as the default target for all commands:
Syntax:
vifptarget –s <servername>
Example:
vifptarget –s esxi65ga-1.vcloud.local
- Issue...