.\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.16) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is turned on, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .ie \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . nr % 0 . rr F .\} .el \{\ . de IX .. .\} .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "REALMCTL 1p" .TH REALMCTL 1p "2012-06-21" "perl v5.14.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" realmctl \- Send commands to the DNSSEC\-Tools realms daemon .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& realmctl [options] .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" The \fBrealmctl\fR command sends commands to \fBdtrealms\fR, the DNSSEC-Tools realms daemon. In most cases, \fBdtrealms\fR will send a response to \fBrealmctl\fR. \&\fBrealmctl\fR will print a success or failure message, as appropriate. Only one option may be specified on a command line. .SH "OPTIONS" .IX Header "OPTIONS" The following options are handled by \fBrealmctl\fR. .IP "\fB\-allstart\fR" 4 .IX Item "-allstart" Starts all suspended realms. .IP "\fB\-allstop\fR" 4 .IX Item "-allstop" Stops all running realms. .IP "\fB\-cmd \*(-- realm cmd args\fR" 4 .IX Item "-cmd realm cmd args" .PD 0 .IP "\fB\-command \*(-- realm cmd args\fR" 4 .IX Item "-command realm cmd args" .PD Sends a command to the specified realm. The command given as \fIcmd\fR will be sent to the \fBrollerd\fR running in realm \fIrealm\fR. .Sp The double-dash given above is critical for proper argument parsing of the command line. .Sp All command-line arguments, as \fIargs\fR above, following the realm name and command name will be sent as the command. .Sp Whatever output the command gives will be returned to \fBrealmctl\fR, 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. .Sp For example, this command will tell the realm \fBgiant-isp\fR to stop rollover of zone \fIbob.example.com\fR: .Sp .Vb 1 \& $ realmctl \-command \-\- giant\-isp rollctl \-skipzone bob.example.com .Ve .Sp \&\fBWarning:\fR 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. \fBrealmctl\fR \fImay\fR be modified in the future to restrict the commands that may be executed with this option. .IP "\fB\-display\fR" 4 .IX Item "-display" Starts the realms status \s-1GUI\s0. .IP "\fB\-halt\fR [now]" 4 .IX Item "-halt [now]" Cleanly halts \fBdtrealms\fR execution. .IP "\fB\-logfile logfile\fR" 4 .IX Item "-logfile logfile" Sets the \fBdtrealms\fR log file to \fIlogfile\fR. This must be a valid logging file, meaning that if \fIlogfile\fR already exists, it must be a regular file. The only exceptions to this are if \fIlogfile\fR is \fB/dev/stdout\fR or \&\fB/dev/tty\fR. .IP "\fB\-loglevel loglevel\fR" 4 .IX Item "-loglevel loglevel" Sets the \fBdtrealms\fR logging level to \fIloglevel\fR. This must be one of the valid logging levels defined in \fB\f(BIrealmmgr.pm\fB\|(3)\fR. .Sp If a logging level is not specified, then the list of valid levels will be printed and \fBrealmctl\fR will exit. The list is given in both text and numeric forms. .IP "\fB\-logtz logtz\fR" 4 .IX Item "-logtz logtz" Sets the \fBdtrealms\fR logging timezone to \fIloglevel\fR. This must be either \&\fIgmt\fR (for Greenwich Mean Time or \fIlocal\fR (for the host's local time.) .IP "\fB\-nodisplay\fR" 4 .IX Item "-nodisplay" Stops the realms status \s-1GUI\s0. .IP "\fB\-realmstatus\fR" 4 .IX Item "-realmstatus" Gets the current status of all the realms from \fBdtrealms\fR. 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 \&\s-1ZSK\s0 rollover, the number of zones in \s-1KSK\s0 rollover, and the number of zones waiting in \s-1KSK\s0 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. .Sp Example: .Sp .Vb 3 \& dev active normal: 18 ZSK: 3 KSK: 1 KSK phase 6: 0 \& test\-r inactive \& money active normal: 10 ZSK: 0 KSK: 0 KSK phase 6: 1 .Ve .IP "\fB\-shutdown\fR" 4 .IX Item "-shutdown" Synonym for \fB\-halt\fR. .IP "\fB\-startrealm realm\fR" 4 .IX Item "-startrealm realm" Starts the suspended realm named by \fIrealm\fR. Multiple realms can be specified on the command line. For instance, this command will send the \&\fIstartrealm\fR command to \fBdtrealms\fR for three realms. .Sp .Vb 1 \& $ realmctl \-startrealm testing production customers .Ve .IP "\fB\-status\fR" 4 .IX Item "-status" Has \fBdtrealms\fR write several of its operational parameters to its log file. The parameters are also reported to \fBrealmctl\fR, which prints them to the screen. .IP "\fB\-stoprealm realm\fR" 4 .IX Item "-stoprealm realm" Stops the realm named by \fIrealm\fR. Multiple realms can be specified on the command line. For instance, this command will send the \fIstoprealm\fR command to \fBdtrealms\fR for two realms. .Sp .Vb 1 \& $ realmctl \-stoprealm big\-isp\-3 misc\-customers .Ve .IP "\fB\-Version\fR" 4 .IX Item "-Version" Displays the version information for \fBrealmctl\fR and the DNSSEC-Tools package. .IP "\fB\-quiet\fR" 4 .IX Item "-quiet" Prevents output from being given. Both error and non-error output is stopped. .IP "\fB\-help\fR" 4 .IX Item "-help" Displays a usage message. .SH "EXIT CODES" .IX Header "EXIT CODES" \&\fBrealmctl\fR may give the following exit codes: .IP "0 \- Successful execution" 4 .IX Item "0 - Successful execution" .PD 0 .IP "1 \- Error sending the command to \fBdtrealms\fR." 4 .IX Item "1 - Error sending the command to dtrealms." .IP "2 \- Missing realm argument." 4 .IX Item "2 - Missing realm argument." .IP "3 \- Too many command options specified." 4 .IX Item "3 - Too many command options specified." .IP "4 \- Missing argument for \fB\-cmd\fR or \fB\-command\fR." 4 .IX Item "4 - Missing argument for -cmd or -command." .IP "5 \- No option specified." 4 .IX Item "5 - No option specified." .IP "200 \- dtrealms is not running." 4 .IX Item "200 - dtrealms is not running." .IP "201 \- Configuration file checks failed." 4 .IX Item "201 - Configuration file checks failed." .PD .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright 2012 \s-1SPARTA\s0, Inc. All rights reserved. See the \s-1COPYING\s0 file included with the DNSSEC-Tools package for details. .SH "AUTHOR" .IX Header "AUTHOR" Wayne Morrison, tewok@tislabs.com .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fB\f(BINet::DNS::SEC::Tools::realmmgr.pm\fB\|(3)\fR, \&\fB\f(BINet::DNS::SEC::Tools::realm.pm\fB\|(3)\fR .PP \&\fB\f(BIdtrealms\fB\|(8)\fR, \&\fB\f(BIrollctl\fB\|(8)\fR \&\fB\f(BIrollerd\fB\|(8)\fR