The command-line tool, maconfig, is provided with Trellix Agent for Linux.
It is installed with Trellix Agent and its default location is /opt/McAfee/agent/bin.
With maconfig you can perform operations such as:
Provision agent to ePO - On-prem
Set custom properties
Set log level
Provision agent to ePO - SaaS (applicable only for MLOS based nDLP appliances)
Command-line switches
Use these command-line switches with the maconfig tool to perform operations.
Parameter | Description |
|---|---|
| Provisions the agent in managed or unmanaged mode. |
| Enforces the agent policies or configurations locally. |
| Provisions the agent in managed mode. |
| Provisions the agent in unmanaged mode. |
| Uses ePO - On-prem credentials. |
| Uses ePO - On-prem files from a specific directory. |
| Specifies ePO - On-prem IP address and port. |
| Provision to ePO - SaaS using the configuration provided in .ini file (for example: " |
| Specifies ePO - On-prem administrator's user name. |
| Specifies ePO - On-prem password. |
| Sets custom properties. You can set more than one custom property. |
| Value of custom property. Specify the value for each of your custom property. |
| Sets license key. |
| Sets log level number(0(Disable)\1(Info)\2(Debug)\3(Detail)). |
| Deletes GUID entries. |
| Starts the agent. |
| Stops the agent. |
| Displays Help for |
Provision the agent to ePO - On-prem
This command provisions a specified ePO - On-prem to the local system that runs this command.
maconfig -provision -managed -auto -epo <ePO IP>:<ePO Console Port> -user <ePO admin username> -password <ePO admin password>Set custom properties
This command allows you to set custom properties that are reported back to ePO - On-prem and are displayed in the system properties.
maconfig -custom -prop1 "string value1" -prop2 "string value2"Set log level
This command allows you to configure the level of agent activity that is recorded.
maconfig -enforce -loglevel 3Provision the agent to ePO - SaaS (applicable only for nDLP appliances)
This command provisions agent to ePO - SaaS. The tenant or an endpoint administrator logs into the endpoint device and runs
maconfig. Themaconfiguses the following parameters to obtain the agent configuration data. Themaconfiginitiates provisioning of agent after retrieving the configuration data.Run the
maconfig -provision -managed -auto - mvisionepoenv <config file path>command to provision agent.For example,
maconfig -provision -managed -auto -mvisionepoenv /tmp/config.iniWhere,
config.inicontains the following parameters:-srt : <srt_token>You can obtain registration token from ePO - SaaS. For more information about obtaining registration token, see ePO - SaaS Product Guide.-iam_url:-epo_url:-proxy_url:-proxy_port:-proxy_user:-proxy_password:-connection_timeout:The default value is set to 30 seconds.-transfer_timeout:The default value is set to 300 seconds.-epo_endpoint:The default value isframeworkconfig.
Inputs to
srt,iam_url, andepo_urlare mandatory. Theproxy_url,proxy_port,epo_endpoint,connection_timeout, andtransfer_timeoutare optional fields. If you provideproxy_url, then providingproxy_portis mandatory. Optionally, you can provideproxy_userandproxy_passwordfor authentication. Otherwise, proxy details are optional parameters. If you provideepo_endpoint, it is appended at the end ofepo_url.