macOS Bash scripts syntax

Checks

Check

Parameter

Note

Product Activated

 

Fails if the product is not activated.
Suggested action: Activate

Product Installed

 

Fails if the product is not installed.
Suggested action: Deploy w Activate

Protection Status

 

Reports status, Flags if the status is not “Fully Protected”.

Scans

 

Reports if new scans have been performed since last checked.

Threats

 

Flags if new threats have been detected.
Suggested action: Perform In-Depth scan

Was Configured

--age (in following format: n[m|h|d] as in 4d for 4 days, or 2h for 2 hours…)
Example: --age 10m

Flags If the last configuration change is older than age.

Was Updated

--age (in following format: n[m|h|d] as in 4d for 4 days, or 2h for 2 hours…)
Example: --age 10m

Flags If the last update is older than age.

Tasks

Task

Parameter

Note

Activate

activation “XXXX-XXXX-XXXX-XXXX|ELA_user ELA_password ELA_public_key” (use license key or ESET License Administrator username, password, and public key)

 
Example: --activation “ABCD-EFGH-IJKL-1234-5678”

 

Configure

--file filePath.config (configuration file path)

 
Example: --file ”config000.xml”

 

Deactivate

 

 

Deploy w Activate

--accept_eula (mandatory)
--product {EEA|EES}
--activation (see activate above)

 
Example: --accept_eula --product EEA --activation “ABCD-EFGH-IJKL-1234-5678”

 

Repair

--accept_eula (mandatory)
--product {EEA|EES}
--activation (see activate above)

 
Example: --accept_eula --product EEA --activation “ABCD-EFGH-IJKL-1234-5678”

This task reruns the following checks and acts on the issues as necessary:

If the product is not installed, Repair attempts installation

If the product is not activated, Repair attempts activation

If new threats were detected, Repair starts an in-depth scan

In all cases, Repair performs a signature update

On-demand Scan

--targets {file|folder}
--profile profile

 
Example: --targets “/” --profile “@Smart scan”

 

Uninstall

 

 

Update Module

 

 

Upgrade

--accept_eula (mandatory)
--product {EEA|EES}
--activation (see activate above)

 
Example: --accept_eula --product EES --activation “ABCD-EFGH-IJKL-1234-5678”