0 - Successful execution
realmctl1p
Send commands to the dnssec-tools realms daemon
Usage
realmctl [options]
Overview
The realmctl command sends commands to dtrealms, the DNSSEC-Tools realms daemon. In most cases, dtrealms will send a response to realmctl. realmctl will print a success or failure message, as appropriate. Only one option may be specified on a command line.
Options
The following options are handled by realmctl.
-
-allstart -
Starts all suspended realms.
-
-allstop -
Stops all running realms.
- -cmd -- realm cmd args
- -command -- realm cmd args
-
Sends a command to the specified realm. The command given as cmd will be sent to the
rollerdrunning in realm realm.The double-dash given above is critical for proper argument parsing of the command line.
All command-line arguments, as args above, following the realm name and command name will be sent as the command.
Whatever output the command gives will be returned to
realmctl, which will then print that output. The command's return code will be appended to the command's output. No attempt will be made to analyze the output for success or failure.For example, this command will tell the realm
giant-ispto stop rollover of zone bob.example.com:$ realmctl -command -- giant-isp rollctl -skipzone bob.example.comWarning:This is an inherently dangerous command. When choosing a user under which the realm and rollover commands will be executed, be aware that this problem exists.realmctlmay be modified in the future to restrict the commands that may be executed with this option.
-
-display -
Starts the realms status GUI.
-
-halt [now] -
Cleanly halts
dtrealmsexecution.
-
-logfile logfile -
Sets the
dtrealmslog file to logfile. This must be a valid logging file, meaning that if logfile already exists, it must be a regular file. The only exceptions to this are if logfile is/dev/stdoutor/dev/tty.
-
-loglevel loglevel -
Sets the
dtrealmslogging level to loglevel. This must be one of the valid logging levels defined inrealmmgr.pm(3).If a logging level is not specified, then the list of valid levels will be printed and
realmctlwill exit. The list is given in both text and numeric forms.
-
-logtz logtz -
Sets the
dtrealmslogging timezone to loglevel. This must be either gmt (for Greenwich Mean Time or local (for the host's local time.)
-
-nodisplay -
Stops the realms status GUI.
-
-realmstatus -
Gets the current status of all the realms from
dtrealms. For each realm, the name, execution status, and zone counts are printed. The zone counts are, in order, the number of zones in normal state, the number of zones in ZSK rollover, the number of zones in KSK rollover, and the number of zones waiting in KSK phase 6. The zone counts are determined by sending the realm's rollover manager an information request. Therefore, if the zone is inactive, the zone counts are not included.Example:
dev active normal: 18 ZSK: 3 KSK: 1 KSK phase 6: 0test-r inactivemoney active normal: 10 ZSK: 0 KSK: 0 KSK phase 6: 1
-
-shutdown -
Synonym for
-halt.
-
-startrealm realm -
Starts the suspended realm named by realm. Multiple realms can be specified on the command line. For instance, this command will send the startrealm command to
dtrealmsfor three realms.$ realmctl -startrealm testing production customers
-
-status -
Has
dtrealmswrite several of its operational parameters to its log file. The parameters are also reported torealmctl, which prints them to the screen.
-
-stoprealm realm -
Stops the realm named by realm. Multiple realms can be specified on the command line. For instance, this command will send the stoprealm command to
dtrealmsfor two realms.$ realmctl -stoprealm big-isp-3 misc-customers
-
-Version -
Displays the version information for
realmctland the DNSSEC-Tools package.
-
-quiet -
Prevents output from being given. Both error and non-error output is stopped.
-
-help -
Displays a usage message.
Exit status
realmctl may give the following exit codes:
-
1 - Error sending the command to dtrealms.
-
2 - Missing realm argument.
-
3 - Too many command options specified.
-
4 - Missing argument for -cmd or -command.
-
5 - No option specified.
-
200 - dtrealms is not running.
-
201 - Configuration file checks failed.
Releases
2 releases since Debian 7 (Wheezy); the text changed 1 time.