Command line options
The qualys
-cloud-agent.sh
supports the following command line options.
Configuration option |
Description |
---|---|
ActivationId |
A valid activation key ID (UUID). This value is obtained from the Cloud Agent user interface (go to Activation Keys, select a key then View Key Info). This parameter is required to provision a Cloud Agent. |
CustomerId |
A valid customer ID (UUID). This value is obtained from the Cloud Agent user interface (go to Activation Keys, select a key then Install Agent). This parameter is required to provision a Cloud Agent. |
LogLevel |
A log level (0-5). A higher value corresponds to more verbosity. Default is, mapped to information (3). 0 - mapped to fatal 1 - mapped to error 2 - mapped to warning 3 - mapped to information 4 - mapped to debug 5 - mapped to trace In a debug/trace mode, the log file may contain sensitive command-line parameters or passwords for configuration files, if the passwords are in clear-text format. Storing passwords in configuration files can result in non-compliance with ISO, SOC, PCI-DSS, HIPAA, and FedRAMP guidelines. Qualys recommends using password vault or token-based authentication instead of storing passwords in the configuration file. |
LogFileDir |
A full path to the log file. By default, the path is |
UseSudo |
Set to 1 to run all data collection commands using the sudo escalation method. By default, sudo is not used (0). |
SudoCommand |
A command for privilege escalation such as |
User |
A valid username is required if you want the daemon to run as a certain user. The daemon starts as root but later drops to the specified user and continues running as that user. |
Group |
A valid group name if you want the daemon to run as a certain group. The daemon will switch to the specified group (if any). |
HostIdSearchDir |
The directory where the host ID file is located. This file contains a host ID tag assigned to the system by Qualys. By default, the directory is |
LogDestType |
The destination of log lines generated by MacOS Agent. Set to
|
ServerUri |
Use this option to migrate a Cloud Agent from one Qualys subscription to another (on the same POD or PCP). ServerUri takes the URL of the Qualys shared Pod or PCP you want to migrate the Cloud Agent, in the following format:
where If the subscription is on the same POD, the ServerUri is the same. Use this option along with ActivationId and CustomerId in order to move the agent to another Qualys shared POD or PCP. The Cloud Agent requires the appropriate Activation ID and Customer ID for the new subscription/platform. The original IDs cannot be used as they are unique per subscription. |
CmdMaxTimeOut |
Execution of a command is dropped if the time taken to execute is more than the specified value. The default timeout is 1800 seconds (30 minutes). |
ProcessPriority |
Specify the Linux niceness scale between -20 and 19 to set a priority for the Qualys cloud agent process. The lower the number, the higher the priority the agent process gets. The default value is zero. |
QualysProxyOrder |
If you are using multiple proxies, set the proxy order to be sequential or random. For sequential order: For random order: |