Create account toto in role cli (user) whith password azerty
...
...
@@ -171,7 +171,7 @@ All is deny by default
.br
When a user tape a command, cli check the rights from index 0 to the last, if the method and the right tql match whith command, right is applied, else it check the next rights, and if not found a matching rights, it deny the command
.TP
Example:
\fBExample :\fP
\fB[0] tql: method:* target:allow\fP
.br
\fB[1] tql: method:list target:deny\fP
...
...
@@ -191,7 +191,7 @@ is the name of the rpc command to allow
\fI<target>\fP
can be allow or deny
.TP
\fBOptions:\fP
\fBOptions:\fP
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
...
...
@@ -217,29 +217,29 @@ No tagdisplay custom display
\fB--no-color\fP
No output coloration
.TP
\fBExample\fP
\fBExample :\fP
.TP
\fBaddright id=toto "" * allow 0\fP
.br
Allow all method whith all query tql in index 0 for account toto
Allow all method whith all query tql in index 0 for account toto
\fBaddright id=toto "id=toto" list deny 0\fP
.br
Deny method list whith tql "id=toto" for account toto in index 0 (deny commands' example: list id=toto, list id:t*, ...)
Deny method list whith tql "id=toto" for account toto in index 0 (deny commands' example: list id=toto, list id:t*, ...)
.SS alias [\fIoptions\fP] [\fIname\fP] [\fIvalue\fP]
Show or create alias
.TP
CLI support aliasing. This is a very useful command substitution. Alias is stored in \fB~/.config/cc-cli/alias\fP
.TP
\fBOptions:\fP
\fBOptions:\fP
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fBExample:\fP
\fBExample:\fP
.TP
\fBalias w "list a&con!=offline&r=cli"\fP
Setting an alias w, which list online client
.TP
\fBalias vm "list r=vm&status=running$cpu"\fP
Setting an alias vm, which list running vm (and show cpu)
...
...
@@ -251,7 +251,7 @@ Clear tty
.SS close [\fIoptions\fP] \fI<tql>\fP
Disable accounts
.TP
\fBOptions:\fP
\fBOptions:\fP
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
...
...
@@ -280,7 +280,7 @@ No output coloration
.SS declose [\fIoptions\fP] \fI<tql>\fP
Enable accounts
.TP
\fBOptions:\fP
\fBOptions:\fP
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
...
...
@@ -309,7 +309,7 @@ No output coloration
.SS delaccount [\fIoptions\fP] \fI<tql>\fP
Delete an account
.TP
\fBOptions:\fP
\fBOptions:\fP
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
...
...
@@ -342,7 +342,7 @@ Delete account right
\fI<index>\fP
* means all
.TP
\fBOptions:\fP
\fBOptions:\fP
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
...
...
@@ -369,7 +369,7 @@ No tagdisplay custom display
No output coloration
.TP
\fBNotes:\fP
\fBNotes:\fP
.TP
if you have deny rights in the command list, for delete account right, you must use options --raw and -direct
\fBdelright -r -d id=toto x\fP
...
...
@@ -395,7 +395,7 @@ CLI history is stored in \fB~/.local/share/cc-cli/history\fP
@@ -886,12 +907,12 @@ No tagdisplay custom display
\fB--no-color\fP
No output coloration
.TP
\fBExample:\fP
\fBExample:\fP
\fB>>tags r=cli\fP
id=\fBtoto\fP foo=bar hello=bye
.br
id=\fBtiti\fP az=qwerty
.br
List all clients' static tags
.SH JOB COMMANDS
...
...
@@ -899,7 +920,7 @@ List all clients' static tags
.SS cancel [\fIoptions\fP] \fI<job_id>\fP ...
Cancel a job
.TP
\fBOptions:\fP
\fBOptions:\fP
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
...
...
@@ -911,8 +932,10 @@ Immediately terminate the VM. This doesn't give the domain OS any chance to
react, and it's the equivalent of ripping the power cord out on a physical machine. In most
cases you will want to use the stop command instead.
The command add tql \fI&r=vm&status!=stopped\fP
.TP
\fBOptions:\fP
\fBOptions:\fP
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
...
...
@@ -940,8 +963,10 @@ No output coloration
.SS execute [\fIoptions\fP] \fI<tql> <command>\fP
Execute a command on the remote host
The command add tql \fI&con&r~'host|hv'\fP
.TP
\fBOptions:\fP
\fBOptions:\fP
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
...
...
@@ -967,19 +992,16 @@ No tagdisplay custom display
\fB--no-color\fP
No output coloration
.TP
\fBExample:\fP
\fBExample:\fP
.TP
\fBexecute r=hv ls\fP
Execute command ls in all hosts
.TP
.B BUG:
.br
Quand il y a une erreur, il manque un retour à la ligne apres le None
.SS jobs [\fIoptions\fP] [\fItql\fP]
List jobs
.TP
\fBOptions:\fP
\fBOptions:\fP
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
...
...
@@ -1010,7 +1032,7 @@ Migrate vm
Migrate vm from host [\fIsource-tql\fP] to another host [\fIdest-tql\fP]. Only \fBcold\fP (the virtual machine stop to execute any currently working program and copy the current page table to the machine where the virtual machine migrate) type migration and \fBfair\fP algorithm are available.
.TP
\fBOptions:\fP
\fBOptions:\fP
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
...
...
@@ -1036,15 +1058,18 @@ Selection migration type
\fB-a\fP \fIALGO\fP, \fB--algo=\fP\fIALGO\fP
Select migration algorithm
.TP
\fBExample:\fP
\fBExample:\fP
.TP
\fBmigrate -t cold -a fair r=vm&p=host1 id=host2\fP
Migrate all vm from host1 to host2
.SS pause [\fIoptions\fP] \fI<tql>\fP
Pause a running vm
The command add tql \fI&r=vm&status=running\fP
.TP
\fBOptions:\fP
\fBOptions:\fP
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
...
...
@@ -1070,18 +1095,11 @@ No tagdisplay custom display