Fortinet white logo
Fortinet white logo

EMS CLI Reference

7.4.5

Connecting to the CLI

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 emscli command directly as follows:

    sudo emscli system get info
    Note

    When using this method, call emscli as sudo as in the example sudo emscli system get info. Some commands that change the status of the host or the EMS installation do not work properly if emscli is not called as sudo.

  • Enter the EMS CLI by entering the following:

    sudo emscli

    An emscli session starts and prompts $>. You can then enter a command without including emscli. For example, to use emscli system get info, you can enter system get info instead of emscli 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.

Connecting to the CLI

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 emscli command directly as follows:

    sudo emscli system get info
    Note

    When using this method, call emscli as sudo as in the example sudo emscli system get info. Some commands that change the status of the host or the EMS installation do not work properly if emscli is not called as sudo.

  • Enter the EMS CLI by entering the following:

    sudo emscli

    An emscli session starts and prompts $>. You can then enter a command without including emscli. For example, to use emscli system get info, you can enter system get info instead of emscli 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.