Newer
Older
.TH CC-CLI "MARCH 2011" LINUX "USER MAN"
.SH NAME
cc-cli - Command Line Interface to CloudControl
.SH SYNOPSIS
\fBcc-cli\fP [\fIOPTION\fP] [\fICOMMANDS\fP]
.SH DESCRIPTION
.TP
\fB--version\fP
show program's version number and exit
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-d\fP, \fB--debug\fP
Debug mode
.TP
\fB-D\fP, \fB--no-debug\fP
Unset debug mode
.TP
\fB-L\fP \fILOGIN\fP, \fB--login=\fP\fILOGIN\fP
Server login
.TP
\fB-H\fP \fISERVER\fP, \fB--hostname=\fP\fISERVER\fP
Server hostname
.TP
\fB-P\fP \fIPORT\fP, \fB--port=\fP\fIPORT\fP
Server port
.TP
\fB-t\fP \fITIMEOUT\fP, \fB--timeout=\fP\fITIMEOUT\fP
Connection timeout
.TP
\fB-p\fP \fIPROFILE\fP, \fB--profile=\fP\fIPROFILE\fP
Profile name
.TP
\fB-l\fP, \fB--list-profile\fP
List available profile
.TP
\fB--history-file=\fP\fIHISTORY\fP
History file
.TP
\fB--history-size=\fP\fIHSIZE\fP
History max entry count
.SS Loading procedure:
Configuration is loaded in this order:
.br
2 - load [cli] profile from \fB~/.config/cc-cli/profile\fP
3 - load profile specified by option profile (arg line, env, cli profile)
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
.SH TQL
TQL (text query language)
.br
- TQL build a list of objects in one query
.br
- An object is a list of tags
.br
- TQL can select and sort object by tags
.br
- TQL can choose tags in object
.br
- TQL can limit number of objects to select
.br
- TQL is a list statement mixed by separators
.br
- TQL build his object list from left to right (left parenthesis)
.br
- Each statement update the builded list regarding his separators
.br
- Selecting, sorting and showing separators are followed by tags
.br
- Limiting separators are followed by limiting conditions
.br
- TQL always return id tag
.br
- By default separators is &
.br
- By default object list is sorted id
.br
.SS SEPERATORS
\fB&\fP selection intersection
.br
\fB|\fP selection union
.br
\fB^\fP selection limit
.br
\fB$\fP tag showing
.br
\fB%\fP tag sorting
.SS OPERATORS
\fB=\fP strict equality
.br
\fB:\fP globing matching (no case)
.br
\fB~\fP regex matching
.br
\fB>\fP superior strict
.br
\fB>=\fP superior
.br
.br
Each previous operators can be negated by adding \fB!\fP before it.
.SS LIMITING CONDITIONS
\fBn\fP limit to n first objects
.br
For examples, See the command \fBlist\fP
.SH GENERIC COMMANDS
.SS addaccount [\fIoptions\fP] \fI<account-name> <role>\fP [\fIpassword\fP]
Create an account
.TP
.TP
\fB-h\fP, \fB-help\fP
show this help message and exit
.TP
\fB-q\fP, \fB--quiet\fP
Don't status of call request
.TP
\fB-i\fP, \fB--index\fP
Print TQL line index
.TP
\fB--print-tql\fP
Print TQL before sending to server
.TP
\fB--no-tagdisplay\fP
No tagdisplay custom display
.TP
\fB--no-color\fP
No output coloration
.TP
.TP
\fBaddacount toto cli azerty\fP
Create account toto in role cli (user) whith password azerty
.SS addright [\fIoptions\fP] \fI<account tql> <right tql> <method> <target>\fP [\fIindex\fP]
Add or edit account right
.br
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
\fB[0] tql: method:* target:allow\fP
.br
\fB[1] tql: method:list target:deny\fP
.br
if the user tape the command \fBlist\fP whith any tql, the command will be allowed because it matches with index 0
\fB[0] tql: method:list target:deny\fP
.br
\fB[1] tql: method:* target:allow\fP
.br
if the user tape the command \fBlist\fP whith any tql, the command will be denied because it matches with index 0
.TP
\fI<method>\fP
is the name of the rpc command to allow
.TP
\fI<target>\fP
can be allow or deny
.TP
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-r\fP, \fB--raw\fP
Don't append security filter to TQL
.TP
\fB-d\fP, \fB--direct\fP
Directly send TQL to server
.TP
\fB-q\fP, \fB--quiet\fP
Don't status of call request
.TP
\fB-i\fP, \fB--index\fP
Print TQL line index
.TP
\fB--print-tql\fP
Print TQL before sending to server
.TP
\fB--no-tagdisplay\fP
No tagdisplay custom display
.TP
\fB--no-color\fP
No output coloration
.TP
Allow all method whith all query tql in index 0 for account toto
\fBaddright id=toto "id=toto" list deny 0\fP
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
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
.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)
.SS clear
.TP
Clear tty
.SS close [\fIoptions\fP] \fI<tql>\fP
Disable accounts
.TP
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-r\fP, \fB--raw\fP
Don't append security filter to TQL
.TP
\fB-d\fP, \fB--direct\fP
Directly send TQL to server
.TP
\fB-q\fP, \fB--quiet\fP
Don't status of call request
.TP
\fB-i\fP, \fB--index\fP
Print TQL line index
.TP
\fB--print-tql\fP
Print TQL before sending to server
.TP
\fB--no-tagdisplay\fP
No tagdisplay custom display
.TP
\fB--no-color\fP
No output coloration
.SS declose [\fIoptions\fP] \fI<tql>\fP
Enable accounts
.TP
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-r\fP, \fB--raw\fP
Don't append security filter to TQL
.TP
\fB-d\fP, \fB--direct\fP
Directly send TQL to server
.TP
\fB-q\fP, \fB--quiet\fP
Don't status of call request
.TP
\fB-i\fP, \fB--index\fP
Print TQL line index
.TP
\fB--print-tql\fP
Print TQL before sending to server
.TP
\fB--no-tagdisplay\fP
No tagdisplay custom display
.TP
\fB--no-color\fP
No output coloration
.SS delaccount [\fIoptions\fP] \fI<tql>\fP
Delete an account
.TP
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-r\fP, \fB--raw\fP
Don't append security filter to TQL
.TP
\fB-d\fP, \fB--direct\fP
Directly send TQL to server
.TP
\fB-q\fP, \fB--quiet\fP
Don't status of call request
.TP
\fB-i\fP, \fB--index\fP
Print TQL line index
.TP
\fB--print-tql\fP
Print TQL before sending to server
.TP
\fB--no-tagdisplay\fP
No tagdisplay custom display
.TP
\fB--no-color\fP
No output coloration
.SS delright [\fIoptions\fP] \fI<tql> <index>\fP
Delete account right
.TP
\fI<index>\fP
* means all
.TP
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-r\fP, \fB--raw\fP
Don't append security filter to TQL
.TP
\fB-d\fP, \fB--direct\fP
Directly send TQL to server
.TP
\fB-q\fP, \fB--quiet\fP
Don't status of call request
.TP
\fB-i\fP, \fB--index\fP
Print TQL line index
.TP
\fB--print-tql\fP
Print TQL before sending to server
.TP
\fB--no-tagdisplay\fP
No tagdisplay custom display
.TP
\fB--no-color\fP
No output coloration
.TP
.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
.SS expert
Switch in expert mode
Expert mode history is stored in \fB~/.local/share/cc-cli/expert\fP
.SS help
.TP
Print help
.SS history
Show commands history
CLI history is stored in \fB~/.local/share/cc-cli/history\fP
.SS kill [\fIoptions\fP] \fI<tql>\fP
Kill a server connection
.TP
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-r\fP, \fB--raw\fP
Don't append security filter to TQL
.TP
\fB-d\fP, \fB--direct\fP
Directly send TQL to server
.TP
\fB-q\fP, \fB--quiet\fP
Don't status of call request
.TP
\fB-i\fP, \fB--index\fP
Print TQL line index
.TP
\fB--print-tql\fP
Print TQL before sending to server
.TP
\fB--no-tagdisplay\fP
No tagdisplay custom display
.TP
\fB--no-color\fP
No output coloration
.SS list [\fIoptions\fP] [\fItql\fP]
List objects
.TP
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-r\fP, \fB--raw\fP
Don't append security filter to TQL
.TP
\fB-i\fP, \fB--index\fP
Print TQL line index
.TP
\fB--print-tql\fP
Print TQL before sending to server
.TP
\fB--no-tagdisplay\fP
No tagdisplay custom display
.TP
\fB--no-color\fP
No output coloration
.TP
\fB-t\fP
column aligment display
.TP
\fB-l\fP
line aligment display
.P
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
\fBlist\fP
.br
list all accounts
\fBlist h:fw*\fP
.br
list all hostname starting by fw
\fBlist r=hv\fP
.br
list all hypervisor
\fBlist r=vm\fP
.br
list all vm
\fBlist hv=toto\fP
.br
list vm of hypervisor toto
\fBlist r=vm&cpu=2\fP
.br
list vm with 2 cpu
\fBlist r=vm&cpu=2&mem>10g\fP
.br
list vm with 2 cpu and mem > 10g
\fBlist r=hv&cpu=2&mem>10g\fP
.br
list hypervisor with 2 cpu and 10G memory
\fBlist cpu>=2$pop$alloc\fP
.br
list object with at least 2cpu and show tags pop and alloc
\fBlist r=vm^10\fP
.br
list first 10 vm
\fBlist r=vm%cpu\fP
.br
list vm sorted by cpu
.SS passwd [\fIoptions\fP] [\fItql\fP] [\fIpassword\fP]
Change account password
.TP
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-r\fP, \fB--raw\fP
Don't append security filter to TQL
.TP
\fB-d\fP, \fB--direct\fP
Directly send TQL to server
.TP
\fB-q\fP, \fB--quiet\fP
Don't status of call request
.TP
\fB-i\fP, \fB--index\fP
Print TQL line index
.TP
\fB--print-tql\fP
Print TQL before sending to server
.TP
\fB--no-tagdisplay\fP
No tagdisplay custom display
.TP
\fB--no-color\fP
No output coloration
.SS quit
Quit application with respect
.SS rights [\fIoptions\fP] [\fItql\fP]
List account rights
.TP
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-r\fP, \fB--raw\fP
Don't append security filter to TQL
.TP
\fB--print-tql\fP
Print TQL before sending to server
.TP
\fB--no-tagdisplay\fP
No tagdisplay custom display
.TP
\fB>>right id=toto\fP
.br
a:toto
.br
[0] tql:id=toto method:list target:deny
Display right for account with id toto.
.br
The user toto doesn't have right use method list whith a tql conained "id=toto" (deny commands' example: list id=toto, list id:t*, ...)
.SS server \fI<options>\fP
Server manipulation command
.TP
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-c\fP
show server cache
.TP
\fB-f\fP
show server functions
.TP
\fB-v\fP
show server version
.SS shutdown [\fIoptions\fP] \fI<tql>\fP
Shutdown a physical host
The command add tql \fB&con&r~'host|hv'\fP
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-r\fP, \fB--raw\fP
Don't append security filter to TQL
.TP
\fB-d\fP, \fB--direct\fP
Directly send TQL to server
.TP
\fB-q\fP, \fB--quiet\fP
Don't status of call request
.TP
\fB-i\fP, \fB--index\fP
Print TQL line index
.TP
\fB--print-tql\fP
Print TQL before sending to server
.TP
\fB--no-tagdisplay\fP
No tagdisplay custom display
.TP
\fB--no-color\fP
No output coloration
.TP
\fB-R\fP, \fB--reboot\fP
Reboot after shutdown (default)
.TP
\fB-H\fP, \fB--halt\fP
Halt after shutdown
.TP
\fB-F\fP
do not go through init but go down real fast
.SS unalias [\fIoptions\fP] [\fIname\fP]
Remove an alias
.TP
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.SS usage \fI<command>\fP
Print usage of a command
.SS version
Print cli version
.SS whoami
Show connection login
.SH TAG COMMANDS
Every tag is composed by a tagname and a tagvalue
.br
- Tagname are case insensitive, tagvalue is case sensitive
.br
- You can use globin on tagname
.br
- tagname starting by - means all tag except this one
.br
- Operators machtes on tagvalues
./certain tag sont reservé et ne peuvent etre cree modfie ou supprimer par le client
.SS RESERVERD TAGS
Reserved tags are tags with a special meaning and cannot be set or remove directly by clients
\fBid\fP : object unique identifier (eg: kvmlab-1.test5)
\fBp\fP : parent object identifier (eg: kvmlab-1)
\fBr\fP : account role (host/hv/vm/cli/web/spv)
\fBcon\fP : connection uptime in seconds (eg: 3600)
\fBip\fP : ipv4 of connection
.SS WELL KNOWN TAGS
\fBalloc\fP : host is allowed to be selected to a migration
.br
\fBarch\fP : hardware architecture (x86/x64)
.br
\fBchaasset\fP : blade chassis asset tag (dell tag)
\fBchaserial\fP : blade chassis serial number (dell tag)
\fBcpufreq\fP : cpu core frequency
.br
\fBcputhread\fP : total number of cpu thread
\fBcpuuse\fP : global cpu usage (percentage)
.br
\fBdisk\fP : disk index list (eg: 1 2 3 4)
\fBdisk1_path\fP : disk 1 path (eg: /dev/vg/sex)
\fBdisk1_pool\fP : storage pool back reference (eg: vg) [vmonly]
.br
\fBdisk1_size\fP : disk 1 size (eg: 1024)
\fBdisk1_vol\fP : storage pool volume back reference (eg: titi) [vmonly]
.br
\fBh\fP : hostname (eg: access)
\fBhbios\fP : host bios version and/or date (eg: A05 (01/09/2006))
\fBhmodel\fP : host model (eg: PowerEdge 2850)
.br
\fBhserial\fP : host serial number (eg: Dell service tag)
\fBhtype\fP : hypervisor type (xen/kvm)
\fBhv\fP : hypervisor name (eg: kvmlab-1)
\fBhvm\fP : hardware virtualisation enabled
.br
\fBhvendor\fP : host vendor (eg: Dell Computer Corporation)
\fBhvver\fP : hypervisor version (eg: 0.14)
.br
\fBlibvirtver\fP : Libvirt version
\fBmem\fP : memory total size
.br
\fBos\fP : operating system (linux/windows)
\fBplatform\fP : python platform info
\fBrcpu\fP : reserved cpu count
.br
\fBstatus\fP : VM status (running/paused/stopped)
.br
.br
\fBstovg_free\fP : vg storage pool free space (eg: 1041)
\fBstovg_path\fP : vg storage pool path (eg: /dev/vg/)
.br
\fBstovg_size\fP : vg storage pool size (eg: 1042)
\fBstovg_type\fP : vg storage pool type (eg: lvm)
\fBstovg_used\fP : vg storage pool used space (eg: 1)
\fBstovg_vol\fP : vg storage pool volume list (eg: sex titi toto)
\fBuname\fP : output of uname command
\fBuptime\fP : uptime of hostname
\fBversion\fP : account reported version
\fBvmpaused\fP : paused vm count on an hypervisor
\fBvmstarted\fP : started vm count on an hypervisor
\fBvmstopped\fP : stopped vm count on an hypervisor
.SS addtag [\fIoptions\fP] \fI<tql> <tag> <value>\fP
Add/Modify a static tag on an account
.TP
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-r\fP, \fB--raw\fP
Don't append security filter to TQL
.TP
\fB-d\fP, \fB--direct\fP
Directly send TQL to server
.TP
\fB-q\fP, \fB--quiet\fP
Don't status of call request
.TP
\fB-i\fP, \fB--index\fP
Print TQL line index
.TP
\fB--print-tql\fP
Print TQL before sending to server
.TP
\fB--no-tagdisplay\fP
No tagdisplay custom display
.TP
\fB--no-color\fP
No output coloration
.TP
Create tag hello whith value foo for account toto
Create tag hello whith value foo for all vm
.SS deltag [\fIoptions\fP] \fI<tql> <tag>\fP
Delete a static tag from an account
.TP
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-r\fP, \fB--raw\fP
Don't append security filter to TQL
.TP
\fB-d\fP, \fB--direct\fP
Directly send TQL to server
.TP
\fB-q\fP, \fB--quiet\fP
Don't status of call request
.TP
\fB-i\fP, \fB--index\fP
Print TQL line index
.TP
\fB--print-tql\fP
Print TQL before sending to server
.TP
\fB--no-tagdisplay\fP
No tagdisplay custom display
.TP
\fB--no-color\fP
No output coloration
.TP
.TP
\fBdeltag id=toto hello\fP
Delete tag hello from account toto
.SS tagdisplay [\fIoptions\fP] [\fItag\fP] ...
Tagdisplay tool
.TP
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-c\fP \fISET-COLOR\fP
Set custom color on [\fItag\fP].
.br
.br
\fBregular :\fP
\fIblack\fP, \fIred\fP, \fIgreen\fP, \fIyellow\fP, \fIblue\fP, \fIpurple\fP, \fIcyan\fP, \fIwhite\fP
\fBlighted :\fP
\fIlgrey\fP, \fIlred\fP, \fIlgreen\fP, \fIlyellow\fP, \fIlblue\fP, \fIlpurple\fP, \fIlcyan\fP, \fIlwhite\fP
\fBunderline :\fP
\fIured\fP, \fIugreen\fP, \fIuyellow\fP, \fIublue\fP, \fIupurple\fP, \fIucyan\fP
.TP
\fB-C\fP
Remove custom color on [\fItag\fP]
.TP
\fB-t\fP \fISET-TYPE\fP
Set custom type on [\fItag\fP].
.br
\fIstring\fP, \fIlower\fP, \fIupper\fP, \fIsi\fP (system international), \fIsecond\fP, \fIdate\fP, \fItime\fP, \fIdatetime\fP.
.TP
\fB-T\fP
Remove custom type on [\fItag\fP]
.TP
\fB-f\fP \fISET-TITLE-COLOR\fP
Set custom title color on [\fItag\fP]
.TP
\fB-F\fP
Remove custom title color on [\fItag\fP]
.TP
\fB--list-colors\fP
List allowed color
.TP
\fB--list-types\fP
List allowed types
\fBExample :\fP
.TP
\fBtagdisplay -c red hv\fP
The tag hv is displayed with color red
.SS tags [\fIoptions\fP] [\fItql\fP]
List only static tags
.TP
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-r\fP, \fB--raw\fP
Don't append security filter to TQL
.TP
\fB-i\fP, \fB--index\fP
Print TQL line index
.TP
\fB--print-tql\fP
Print TQL before sending to server
.TP
\fB--no-tagdisplay\fP
No tagdisplay custom display
.TP
\fB--no-color\fP
No output coloration
\fB>>tags r=cli\fP
id=\fBtoto\fP foo=bar hello=bye
.br
id=\fBtiti\fP az=qwerty
.SH JOB COMMANDS
.SS cancel [\fIoptions\fP] \fI<job_id>\fP ...
Cancel a job
.TP
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.SS destroy [\fIoptions\fP] \fI<tql>\fP
Force a vm to stop
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
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-r\fP, \fB--raw\fP
Don't append security filter to TQL
.TP
\fB-d\fP, \fB--direct\fP
Directly send TQL to server
.TP
\fB-q\fP, \fB--quiet\fP
Don't status of call request
.TP
\fB-i\fP, \fB--index\fP
Print TQL line index
.TP
\fB--print-tql\fP
Print TQL before sending to server
.TP
\fB--no-tagdisplay\fP
No tagdisplay custom display
.TP
\fB--no-color\fP
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
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-r\fP, \fB--raw\fP
Don't append security filter to TQL
.TP
\fB-d\fP, \fB--direct\fP
Directly send TQL to server
.TP
\fB-q\fP, \fB--quiet\fP
Don't status of call request
.TP
\fB-i\fP, \fB--index\fP
Print TQL line index
.TP
\fB--print-tql\fP
Print TQL before sending to server
.TP
\fB--no-tagdisplay\fP
No tagdisplay custom display
.TP
\fB--no-color\fP
No output coloration
.TP
\fBexecute r=hv ls\fP
Execute command ls in all hosts
.SS jobs [\fIoptions\fP] [\fItql\fP]
List jobs
.TP
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-r\fP, \fB--raw\fP
Don't append security filter to TQL
.TP
\fB-i\fP, \fB--index\fP
Print TQL line index
.TP
\fB--print-tql\fP
Print TQL before sending to server
.TP
\fB--no-tagdisplay\fP
No tagdisplay custom display
.TP
\fB--no-color\fP
No output coloration
.TP
\fB-d\fP, \fB--done\fP
Show done jobs
.TP
\fB-R\fP, \fB--no-running\fP
Don't show running jobs
.SS migrate [\fIoptions\fP] [\fIsource-tql\fP] [\fIdest-tql\fP]
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.
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-q\fP, \fB--quiet\fP
Don't status of call request
.TP
\fB-i\fP, \fB--index\fP
Print TQL line index
.TP
\fB--no-tagdisplay\fP
No tagdisplay custom display
.TP
\fB--no-color\fP
No output coloration
.TP
\fB-l\fP, \fB--list\fP
List migration types and algo
.TP
\fB-t\fP \fITYPE\fP, \fB--type=\fP\fITYPE\fP
Selection migration type
.TP
\fB-a\fP \fIALGO\fP, \fB--algo=\fP\fIALGO\fP
Select migration algorithm
.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
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-r\fP, \fB--raw\fP
Don't append security filter to TQL
.TP
\fB-d\fP, \fB--direct\fP
Directly send TQL to server
.TP
\fB-q\fP, \fB--quiet\fP
Don't status of call request
.TP
\fB-i\fP, \fB--index\fP
Print TQL line index
.TP
\fB--print-tql\fP
Print TQL before sending to server
.TP
\fB--no-tagdisplay\fP
No tagdisplay custom display
.TP
\fB--no-color\fP
No output coloration
.TP
.TP
\fBpause r=vm&status=running&p=host1\fP
Pause all vm started in the hypervisor host1
.SS resume [\fIoptions\fP] \fI<tql>\fP
Resume a paused vm
This will allow a previously paused vm to
now be eligible for scheduling by the underlying hypervisor.
The command add tql \fI&r=vm&status=paused\fP
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-r\fP, \fB--raw\fP
Don't append security filter to TQL
.TP
\fB-d\fP, \fB--direct\fP
Directly send TQL to server
.TP
\fB-q\fP, \fB--quiet\fP
Don't status of call request
.TP
\fB-i\fP, \fB--index\fP
Print TQL line index
.TP
\fB--print-tql\fP
Print TQL before sending to server
.TP
\fB--no-tagdisplay\fP
No tagdisplay custom display
.TP
\fB--no-color\fP
No output coloration
.SS start [\fIoptions\fP] \fI<tql>\fP
Start a stopped vm
The command add tql \fI&r=vm&status=stopped\fP
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-r\fP, \fB--raw\fP
Don't append security filter to TQL
.TP
\fB-d\fP, \fB--direct\fP
Directly send TQL to server
.TP
\fB-q\fP, \fB--quiet\fP
Don't status of call request
.TP
\fB-i\fP, \fB--index\fP
Print TQL line index
.TP
\fB--print-tql\fP
Print TQL before sending to server
.TP
\fB--no-tagdisplay\fP
No tagdisplay custom display
.TP
\fB--no-color\fP
No output coloration
.SS stop [\fIoptions\fP] \fI<tql>\fP
Stop a running vm
This coordinates with the domain OS to perform graceful
stop, so there is no guarantee that it will succeed, and may take a variable length of
time depending on what services must be shutdown in the domain
The command add tql \fI&r=vm&status=running\fP
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
.TP
\fB-h\fP, \fB--help\fP
show this help message and exit
.TP
\fB-r\fP, \fB--raw\fP
Don't append security filter to TQL
.TP
\fB-d\fP, \fB--direct\fP
Directly send TQL to server
.TP
\fB-q\fP, \fB--quiet\fP
Don't status of call request
.TP
\fB-i\fP, \fB--index\fP
Print TQL line index
.TP
\fB--print-tql\fP
Print TQL before sending to server
.TP
\fB--no-tagdisplay\fP
No tagdisplay custom display
.TP
\fB--no-color\fP
No output coloration
.SH FILES
.TP
\fB~/.config/cc-cli/profile\fP
file where cli profile is stored
\fBExample :\fP
# Options in this section is loaded is each others section
[DEFAULT]
hsize = 1000
#debug = true
# This section is loaded at start
[cli]
profile = lab
[lab]
login = snoopy
pass = toto
server = 192.168.0.162
[prod]
login = snoopy
pass = titi
server = 14.8.25.32
.TP
\fB~/.local/share/cc-cli/history\fP
file where cli history are stored
.TP
\fB~/.local/share/cc-cli/expert\fP
file where expert mode history are stored
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
.TP
\fB~/.config/cc-cli/tagdisplay\fP
file where tagdisplay options are stored
\fBExample :\fP
[color]
a = lpurple
h = lred
pop = lyellow
mem* = lyellow
r = red
id = lblue
cpu = lyellow
con = cyan
[titlecolor]
h = red
id = cyan
[type]
uptime = second
con = second
disk* = si
sto* = si
mem* = bit
[option]
quotespace = 1
.TP
\fB~/.config/cc-cli/alias\fP
file where alias are stored
\fBExample :\fP
[alias]
zzz = list r=cli&idle>300
versions = list -t version
hv = list r=hv&con$cpu$mem$arch%id
vm = list r=vm&status=running$h$cpu$mem$arch%h
userrights = rights r=cli
lt = list -t &con%r%h$h$cpu$r$os$version$-con$mem
ls = list &con$h$cpu$r$os$version
w = list -l r=cli&con$os
host = list r=host&con$cpu$mem