Connecting to the CLI
You can connect to the CLI using the Linux command line terminal or SSH.
Non-virtual appliance EMS installation
For a typical, non-virtual appliance EMS installation, from the machine where EMS is installed, open the Linux command line terminal and do one of the following. See Commands for EMS non-virtual appliance template installation for the available commands:
-
Enter an
emsclicommand directly as follows:sudo emscli system get info
When using this method, call
emscliassudoas in the examplesudo emscli system get info. Some commands that change the status of the host or the EMS installation do not work properly ifemscliis not called assudo. -
Enter the EMS CLI by entering the following:
sudo emscli
An
emsclisession starts and prompts$>. You can then enter a command without includingemscli. For example, to use emscli system get info, you can entersystem get infoinstead ofemscli system get info.
Terminate the session by editing on the emscli prompt exit. This returns you to the Linux terminal.
Virtual appliance EMS installation
For a virtual appliance installation, accessing EMS via SSH logs you directly into the command line interface where you can proceed to use the commands as documented in Commands for EMS virtual appliance template installation. Deploying EMS as a virtual appliance image enables SSH access via port 22 by default. See Deploying EMS as a virtual appliance image. You can also use SSH to remotely call the commands.
Terminate the SSH session by editing on the emscli prompt exit. This logs you out from the host.