-detect
Use this command-line switch to search for traces of a running security agent.
The following table lists the usage examples for the detect
switch.
OS | Operation |
---|---|
Windows |
|
macOS |
|
Linux |
|
Switch | Description |
---|---|
-detect | Verify and report if the product is running or not on the endpoint. The following statuses are currently supported:
|
-r | An optional parameter supported on Windows only. When specified, it performs a reboot requirement assessment of the system. If a previous maintenance operation finished with a reboot required state (such as uninstall, or competitor removal operation) it will prompt the RMM SDK Tools to report this pending requirement. In such scenarios, if the detection operation was executed as a prerequisite for the install it is recommended not to proceed with the installation until the reboot is performed. Upon a successful reboot, perform another detection operation to asses the new state of the endpoint. |
Upon successful operation completion, the process prints to stdout
in the following format:
// the four returned values are separated by a pipe | character
[detect result]|[GravityZone customer id]|[GravityZone group id]|[Endpoint hardware id]
The following table lists the stdout
results:
stdout result | Description |
---|---|
detect result | One of the four numerical values described above is supported and printed to stdout. |
GravityZone customer id | This is the ID of the GravityZone company managing the endpoint. It will be returned for the detection result value of 1.It can be returned for the detection result value of 2 when that is not reporting a misconfigured product. Refer to the Bitdefender GravityZone API documentation for usage information. |
GravityZone group id | This is the ID of the GravityZone custom group an endpoint belongs to. This value reflects only the value of the group used at the time of the installation and only if this value was specified in the installation package. |
Endpoint hardware id | This is the hardware ID used by the endpoint to communicate to GravityZone. Run the detection operation again in case the ID changes post-installation. You can use this ID to search for the endpoint in Control Center. Refer to the Bitdefender GravityZone API documentation for detailed API information. |
The following table lists common usage scenarios and their results. For more information on process exit codes, refer to Error codes.
Scenario | OS | Command-line switch | Process exit code | stdout value |
---|---|---|---|---|
The product is not running | Windows |
|
|
|
The product is running | Windows |
|
|
|
The product is installed but some of the services are not running | Linux |
|
|
|
The product is misconfigured | macOS |
|
|
|
The detection process failed reading resources | Windows |
|
|
|
The product is running but a reboot is required | Windows |
|
|
|