4. Command line interface

The dlpd package comes with a program called dlpctl that can be used to manage any aspect of the dlpd process. This section is a guide for that program.

Every command have a --help flag to display available options.

The dlpctl program communicates with the dlpd processes over the control sockets. The raw JSON response data can be useful when using the CLI for scripting with tools like jq, and the request data can be useful when learning about the API. Therefore, the commands have a --json output flag making it return the raw response and a --json-request flag that prints the raw request (JSON encoded).

4.1. Configuration management

These sub-commands can reload the running configuration See the configuration section for more information.

4.1.1. Reloading configurations

You can also invoke the individual reload commands directly:

$ dlpctl reload                           # /etc/halon/dlpd-app.yaml