Commands

ClusterCockpit Energy Manager Command Line References

Build

make

This produces the cc-energy-manager binary in the repository root.

Run

./cc-energy-manager [options]

Options

FlagDefaultDescription
-config <path>./config.jsonPath to the JSON configuration file
-loglevel <level>warnLogging verbosity: debug, info, warn, err, fatal, crit
-logdatefalsePrefix every log line with date and time
-oncefalseRun all collectors once and then exit (useful for testing)

Example

./cc-energy-manager -config /etc/cc-energy-manager/config.json -loglevel info -logdate

Signals

cc-energy-manager handles the following UNIX signals for graceful shutdown:

  • SIGTERM — sent by systemd on systemctl stop
  • SIGINT — sent by Ctrl+C

On receiving either signal, the daemon stops all receivers, sinks, the cluster manager, and the controller before exiting.