### Example CLI commands for specific teams Source: https://docs.fortinet.com/document/forticlient/7.4.6/ems-administration-guide/122790 Demonstrates applying different installer IDs for HR, Marketing, and Office Management teams using the .exe installer. ```bash FortiClientSetup_7.4.6_x64.exe /v"GROUP_TAG=HR" FortiClientSetup_7.4.6_x64.exe /v"GROUP_TAG=Marketing" FortiClientSetup_7.4.6_x64.exe /v"GROUP_TAG=OM" ``` -------------------------------- ### GET emscli config get installer Source: https://docs.fortinet.com/document/forticlient/7.4.6/ems-cli-reference/249756 Retrieves the value(s) of the specified installer configuration settings from the console configuration. ```APIDOC ## GET emscli config get installer ### Description Retrieves the value(s) of the specified installer configuration settings from the console configuration. ### Method GET ### Endpoint emscli config get installer [flags] ### Parameters #### Options - **-h, --help** (flag) - Optional - Display help information for the installer command. ``` -------------------------------- ### Install FortiClient on Ubuntu Source: https://docs.fortinet.com/document/forticlient/7.4.6/administration-guide/213138 Follow these steps to install the GPG key, configure the repository, update package lists, and install FortiClient on Ubuntu systems. ```bash wget -O - https://repo.fortinet.com/repo/forticlient/7.4/ubuntu22/DEB-GPG-KEY | gpg --dearmor | sudo tee /usr/share/keyrings/repo.fortinet.com.gpg ``` ```bash deb [arch=amd64 signed-by=/usr/share/keyrings/repo.fortinet.com.gpg] https://repo.fortinet.com/repo/forticlient/7.4/ubuntu22/ stable non-free ``` ```bash sudo apt-get update ``` ```bash sudo apt install forticlient ``` -------------------------------- ### emscli Config Get Installer Commands Source: https://docs.fortinet.com/document/forticlient/7.4.6/ems-cli-reference/773226/emscli-ha Retrieves the installer configuration setting. ```APIDOC ## emscli Config Get Installer Commands ### Description Retrieves the configuration related to software installers. ### Command - `emscli config get installer`: Displays the installer configuration settings. ### Example ``` emscli config get installer ``` ``` -------------------------------- ### Migration Tool Configuration File Example Source: https://docs.fortinet.com/document/forticlient/7.4.6/ems-administration-guide/46480/kubernetes Example configuration file for the migration tool, specifying SQL Server, PostgreSQL, Linux server, and Kubernetes deployment details. ```ini [sqlserver] host =172.16.1.3 port =1433 user =ems password =Test123! [postgresql] host =172.16.1.22 port =5432 user =postgres password =Test123! db_prefix = [linux_server] host =172.16.1.22 ssh_port =22 user =test key_file =C:\Users\Administrator\.ssh\id_rsa k8s_namespace = ems k8s_pod = ems-aio-86495ff465-dffxc [site_migration] # Update this section only if multiple source single-tenant EMS instances need to be migrated into a single EMS Linux instance. # To enable site migration, set 'enable = true' and specify the target site name on the destination EMS where the site should be migrated. enable = false target_site = # if running EMS on docker compose, use the `docker_compose` key below to specify the full qualified path to the docker compose file # the location of the file can be obtained by running `docker compose ls` on the host where the docker compose is running # docker_compose = '/home/user/docker-compose.yaml' # if instead of pure docker, you're using podman, `docker_compose` is still required but the podman flag below needs to be set to 1 # podman = 0 # if running EMS on K8S, use the `k8s_namespace` and `k8s_pod` below to specify the k8s namespace and the pod where the `deploy` service # is running with EMS. For single pod deployments, the pod name will always start with `ems-aio`. For multi pod deployments, the pod name # starts with `daemons-low`. # k8s_namespace = ems # k8s_pod = ems-aio-86495ff465-dffxc [files] ``` -------------------------------- ### emscli config get installer Source: https://docs.fortinet.com/document/forticlient/7.4.6/ems-cli-reference/249756/emscli-config-get-installer Retrieves specific installer configuration values from the console configuration. ```APIDOC ## emscli config get installer ### Description `config get installer` retrieves the value(s) of the specified setting(s) from the console configuration. ### Synopsis `emscli config get installer [flags]` ### Options ``` -h, --help help for installer ``` ### See also * emscli config get - for retrieving information from a specific EMS config file ``` -------------------------------- ### fds fctinstallers Source: https://docs.fortinet.com/document/forticlient/7.4.6/ems-cli-reference/220039 Get the FCT installers for repackaging. ```APIDOC ## emscli fds fctinstallers ### Description Get the FCT installers for repackaging. ### Synopsis `emscli fds fctinstallers [flags]` ### Options - `-h, --help` (bool) - help for fctinstallers ### See also - `fds` - for managing FDS (FortiGuard Distribution Servers) services ``` -------------------------------- ### Install FortiClient on Ubuntu Source: https://docs.fortinet.com/document/forticlient/7.4.6/administration-guide/437544/installing-forticlient-linux-using-a-downloaded-installation-file Use this command to install FortiClient on Ubuntu systems. Replace `` with the actual path to the downloaded DEB file. ```bash sudo apt-get install ``` -------------------------------- ### Netplan Configuration Examples Source: https://docs.fortinet.com/document/forticlient/7.4.6/ems-quickstart-guide/598033 Examples for defining static IP and DHCP network configurations in YAML format. ```yaml network: version: 2 renderer: networkd ethernets: enp3s0: addresses: - 192.168.1.100/24 nameservers: addresses: [8.8.8.8, 1.1.1.1] search: [mydomain1.local, mydomain2.local] routes: - to: default via: 192.168.1.1 ``` ```yaml network: version: 2 renderer: networkd ethernets: enp0s3: dhcp4: yes ``` -------------------------------- ### Get FortiClient Installers Source: https://docs.fortinet.com/document/forticlient/7.4.6/ems-cli-reference/111093/emscli-fds-fctinstallers Use this command to retrieve FortiClient installers for repackaging. It is part of the FortiGuard Distribution Servers (FDS) management service. ```bash emscli fds fctinstallers [flags] ``` -------------------------------- ### Migration Tool Configuration Example Source: https://docs.fortinet.com/document/forticlient/7.4.6/ems-administration-guide/270581 Example configuration file structure for the migration tool, defining SQL Server, PostgreSQL, and Linux server connection parameters. ```ini [sqlserver] host =172.16.1.3 port =1433 user =ems password =Test123! [postgresql] host =172.16.1.22 port =5432 user =postgres password =postgres#Password from the output of the "execute enable-migration" command db_prefix = [linux_server] host =172.16.1.22 ssh_port =22 user =test#Username from the output of the "execute enable-migration" command key_file =C:\Users\Administrator\.ssh\id_rsa#location of key file in EMS windows [files] # Copy a single file or a directory recursively to the remote server # follow the pattern: file_or_folder_key = {'source' : '', 'target' : '} # multiple entries are allowed, file_or_folder_key is just a placeholder # Examples: # 1 - copying the installer directory recursively: # installer_dir = ``` -------------------------------- ### Deploy FortiClient to Marketing team Source: https://docs.fortinet.com/document/forticlient/7.4.6/ems-administration-guide/122790/deploying-different-installer-ids-to-endpoints-using-the-same-deployment-package Example of installing FortiClient using the same deployment package but assigning a specific installer ID for the Marketing team. ```bash FortiClientSetup_7.4.6_x64.exe /v"GROUP_TAG=Marketing" ``` -------------------------------- ### Install FortiClient on Ubuntu Source: https://docs.fortinet.com/document/forticlient/7.4.6/administration-guide/437544 Use the apt-get package manager to install the DEB file. ```bash $ sudo apt-get install ``` -------------------------------- ### Deploy FortiClient to HR team Source: https://docs.fortinet.com/document/forticlient/7.4.6/ems-administration-guide/122790/deploying-different-installer-ids-to-endpoints-using-the-same-deployment-package Example of installing FortiClient using the same deployment package but assigning a specific installer ID for the HR team. ```bash FortiClientSetup_7.4.6_x64.exe /v"GROUP_TAG=HR" ```