Use the Command Agent tool to perform selected Trellix Agent tasks from the managed system.
Different Command Agent tools are available for Windows and non-Windows operating systems.
Windows —
cmdagent.exeNon-Windows —
cmdagent
The Command Agent tool is installed on the managed system at the time of Trellix Agent installation. Perform this task locally on managed systems. It must be run from an Administrator command prompt.
The Command Agent tool file is located in the Trellix Agent installation folder. By default, this location is:
Windows —
<Program Files>\McAfee\AgentLinux —
/opt/McAfee/agent/binMacintosh —
/Library/McAfee/agent/bin
Using multiple switches per command can start multiple concurrent agent-server communications and can cause policy errors. For example, CmdAgent.exe /p. Make sure you use only one switch per command. These switches are case sensitive. Switches on non-Windows systems use a - instead of /.
Command-line options
Parameter | Description |
|---|---|
| Checks for new policies. Trellix Agent contacts ePO - On-prem for new or updated policies, then enforces them immediately on receipt. |
| Prompts Trellix Agent to enforce policies locally. |
| Sends properties to ePO - On-prem. |
| Displays the Trellix Agent monitor on Windows client systems. |
| Forwards events from client systems to ePO - On-prem. |
| Trellix Agent displays detailed information for point products such as the list of installed products and their versions, FIPS mode status (enabled/disabled), VDI mode status(enabled/disabled), TA msgbus certificate details, ePO certificates in use, and TA msgbus communication status. NoteThe point product information is accessible only to root users on non-Windows systems. On Windows systems, the about-box feature must be turned on in the general policy to access it. VDI mode status is available only on Windows systems. |
| Lists all switches with their description. |
| Set location of the log file. |
| Verifies the signatures of Trellix binaries for message bus communication with Trellix Agent. Command:
|
You can use Trellix Agent Return Codes with installation and removal scripts to allow the script to continue to the next step or stop depending on the code returned. The two return codes are:
0 — Success
-1 — Failure
For a code -1, the parameter is invalid or it failed to open one of the global events for the framework service. Make sure that the service is running, the user has administrator rights, and you are using a valid command line.