~lutostag/ubuntu/trusty/maas/1.5.4

« back to all changes in this revision

Viewing changes to man/maas.8

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2014-02-15 12:08:23 UTC
  • mto: This revision was merged to the branch mainline in revision 48.
  • Revision ID: package-import@ubuntu.com-20140215120823-u7dkitfy0h8tbruh
Tags: upstream-1.5+bzr1948
ImportĀ upstreamĀ versionĀ 1.5+bzr1948

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
.\" Man page generated from reStructuredText.
2
2
.
3
 
.TH "MAAS" "8" "December 13, 2013" "13.10" "MAAS"
 
3
.TH "MAAS" "8" "February 12, 2014" "13.10" "MAAS"
4
4
.SH NAME
5
 
maas \- MAAS administration tool
 
5
maas \- MAAS API commandline utility
6
6
.
7
7
.nr rst2man-indent-level 0
8
8
.
58
58
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
59
59
..
60
60
.SH USAGE
61
 
.sp
62
 
maas  [\-h, \-\-help] createadmin | changepassword | shell
 
61
.INDENT 0.0
 
62
.INDENT 3.5
 
63
.sp
 
64
.nf
 
65
.ft C
 
66
$ maas <profile> <command> [parameters]
 
67
.ft P
 
68
.fi
 
69
.UNINDENT
 
70
.UNINDENT
 
71
.sp
 
72
The available commands are dependent on the API you are connecting to and the
 
73
profile you use. The currently available options are explained below.
63
74
.SH DESCRIPTION
64
75
.sp
65
 
The \fImaas\fP command is part of Canonical\(aqs Metal As A Service software. It is
66
 
derived from and can be used similarly to the \fIdjango\-admin\fP command, and must
67
 
be run with root privileges.
68
 
.sp
69
 
For the end user, there are only three subcommands of interest.
70
 
.INDENT 0.0
71
 
.TP
72
 
.B \fBcreateadmin\fP
73
 
This subcommand is used to create a superuser for the
74
 
MAAS install. The suggested username is "root". This command usually only
75
 
needs to be run when installing MAAS for the first time.
76
 
.TP
77
 
.B \fBchangepassword\fP
78
 
This subcommand is used to change the superuser password
79
 
for the MAAS install. You will be prompted to enter a new password, and then
80
 
enter it once again to verify.
81
 
.TP
82
 
.B \fBshell\fP
83
 
This subcommand may be useful for debugging installed systems. It
84
 
will open a new python shell environment with the correct django environment
85
 
for working with the installed MAAS software.
86
 
.UNINDENT
 
76
As well as the web interface, many tasks can be performed by accessing
 
77
the MAAS API directly through the maas command. This section
 
78
details how to login with this tool and perform some common
 
79
operations.
 
80
.SS Logging in
 
81
.sp
 
82
Before the API will accept any commands from maas, you must first
 
83
login. To do this, you need the API key which can be found in the user
 
84
interface.
 
85
.sp
 
86
Log in to the web interface on your MAAS. Click on the username in the
 
87
top right corner and select \(aqPreferences\(aq from the menu which appears.
 
88
.sp
 
89
A new page will load...
 
90
.sp
 
91
The very first item is a list of MAAS keys. One will have already been
 
92
generated when the system was installed. It\(aqs easiest to just select
 
93
and copy the key (it\(aqs quite long!) and then paste it into the
 
94
commandline. The format of the login command is:
 
95
.INDENT 0.0
 
96
.INDENT 3.5
 
97
.sp
 
98
.nf
 
99
.ft C
 
100
$ maas login <profile\-name> <hostname> <key>
 
101
.ft P
 
102
.fi
 
103
.UNINDENT
 
104
.UNINDENT
 
105
.sp
 
106
The profile created is an easy way of associating your credentials
 
107
with any subsequent call to the API. So an example login might look
 
108
like this:
 
109
.INDENT 0.0
 
110
.INDENT 3.5
 
111
.sp
 
112
.nf
 
113
.ft C
 
114
$ maas login maas http://10.98.0.13/MAAS/api/1.0
 
115
AWSCRMzqMNy:jjk...5e1FenoP82Qm5te2
 
116
.ft P
 
117
.fi
 
118
.UNINDENT
 
119
.UNINDENT
 
120
.sp
 
121
which creates the profile \(aqmaas\(aq and registers it with the given key
 
122
at the specified API endpoint.  If you omit the credentials, they will
 
123
be prompted for in the console. It is also possible to use a hyphen,
 
124
\(aq\-\(aq in place of the credentials. In this case a single line will be
 
125
read from stdin, stripped of any whitespace and used as the
 
126
credentials, which can be useful if you are devolping scripts for
 
127
specific tasks.  If an empty string is passed instead of the
 
128
credentials, the profile will be logged in anonymously (and
 
129
consequently some of the API calls will not be available)
 
130
.SS maas commands
 
131
.sp
 
132
The \fBmaas\fP command exposes the whole API, so you can do anything
 
133
you actually \fIcan\fP do with MAAS using this command. Unsurprisingly,
 
134
this leaves us with a vast number of options, but before we delve into
 
135
detail on the specifics, here is a sort of \(aqcheat\-sheet\(aq for common
 
136
tasks you might want to do using \fBmaas\fP\&.
 
137
.INDENT 0.0
 
138
.INDENT 3.5
 
139
.INDENT 0.0
 
140
.IP \(bu 2
 
141
\fIConfigure DHCP and DNS services\fP
 
142
.IP \(bu 2
 
143
\fICommission all enlisted nodes\fP
 
144
.IP \(bu 2
 
145
\fI\%Setting IPMI power parameters for a node\fP
 
146
.UNINDENT
 
147
.UNINDENT
 
148
.UNINDENT
 
149
.sp
 
150
The main maas commands are:
 
151
.sp
 
152
\fBlist\fP
 
153
.INDENT 0.0
 
154
.INDENT 3.5
 
155
lists the details [name url auth\-key] of all the currently logged\-in
 
156
profiles.
 
157
.UNINDENT
 
158
.UNINDENT
 
159
.sp
 
160
\fBlogin <profile> <url> <key>\fP
 
161
.INDENT 0.0
 
162
.INDENT 3.5
 
163
Logs in to the MAAS controller API at the given URL, using the key
 
164
provided and associates this connection with the given profile name.
 
165
.UNINDENT
 
166
.UNINDENT
 
167
.sp
 
168
\fBlogout <profile>\fP
 
169
.INDENT 0.0
 
170
.INDENT 3.5
 
171
Logs out from the given profile, flushing the stored credentials.
 
172
.UNINDENT
 
173
.UNINDENT
 
174
.sp
 
175
\fBrefresh\fP
 
176
.INDENT 0.0
 
177
.INDENT 3.5
 
178
Refreshes the API descriptions of all the current logged in
 
179
profiles. This may become necessary for example when upgrading the
 
180
maas packages to ensure the command\-line options match with the API.
 
181
.UNINDENT
 
182
.UNINDENT
 
183
.sp
 
184
\fB<profile> [command] [options] ...\fP
 
185
.INDENT 0.0
 
186
.INDENT 3.5
 
187
Using the given profile name instructs \fBmaas\fP to direct the
 
188
subsequent commands and options to the relevant MAAS, which for the
 
189
current API are detailed below...
 
190
.UNINDENT
 
191
.UNINDENT
 
192
.SH ACCOUNT
 
193
.sp
 
194
This command is used for creating and destroying the
 
195
MAAS authorisation tokens associated with a profile.
 
196
.sp
 
197
Usage: maas \fI<profile>\fP account [\-d \-\-debug] [\-h \-\-help]
 
198
create\-authorisation\-token | delete\-authorisation\-token [token_key=\fI<value>\fP]
 
199
.sp
 
200
\fB\-d, \-\-debug\fP
 
201
.INDENT 0.0
 
202
.INDENT 3.5
 
203
Displays debug information listing the API responses.
 
204
.UNINDENT
 
205
.UNINDENT
 
206
.sp
 
207
\fB\-h, \-\-help\fP
 
208
.INDENT 0.0
 
209
.INDENT 3.5
 
210
Display usage information.
 
211
.UNINDENT
 
212
.UNINDENT
 
213
.sp
 
214
\fB\-k, \-\-insecure\fP
 
215
.INDENT 0.0
 
216
.INDENT 3.5
 
217
Disables the SSL certificate check.
 
218
.UNINDENT
 
219
.UNINDENT
 
220
.sp
 
221
\fBcreate\-authorisation\-token\fP
 
222
.INDENT 0.0
 
223
.INDENT 3.5
 
224
Creates a new MAAS authorisation token for the current profile
 
225
which can be used to authenticate connections to the API.
 
226
.UNINDENT
 
227
.UNINDENT
 
228
.sp
 
229
\fBdelete\-authorisation\-token token_key=<value>\fP
 
230
.INDENT 0.0
 
231
.INDENT 3.5
 
232
Removes the given key from the list of authorisation tokens.
 
233
.UNINDENT
 
234
.UNINDENT
 
235
.SH NODE
 
236
.sp
 
237
API calls which operate on individual nodes. With these commands, the
 
238
node is always identified by its "system_id" property \- a unique tag
 
239
allocated at the time of enlistment. To discover the value of the
 
240
system_id, you can use the \fBmaas <profile> nodes list\fP command.
 
241
.sp
 
242
USAGE: maas <profile> node [\-h] release | start | stop | delete |
 
243
read | update <system_id>
 
244
.INDENT 0.0
 
245
.TP
 
246
.B samp
 
247
\fI\-h, \-\-help\fP
 
248
.sp
 
249
Display usage information.
 
250
.UNINDENT
 
251
.sp
 
252
\fBrelease <system_id>\fP
 
253
.INDENT 0.0
 
254
.INDENT 3.5
 
255
Releases the node given by \fI<system_id>\fP
 
256
.UNINDENT
 
257
.UNINDENT
 
258
.sp
 
259
\fBstart <system_id>\fP
 
260
.INDENT 0.0
 
261
.INDENT 3.5
 
262
Powers up the node identified by \fI<system_id>\fP (where MAAS has
 
263
information for power management for this node).
 
264
.UNINDENT
 
265
.UNINDENT
 
266
.sp
 
267
\fBstop <system_id>\fP
 
268
.INDENT 0.0
 
269
.INDENT 3.5
 
270
Powers off the node identified by \fI<system_id>\fP (where MAAS has
 
271
information for power management for this node).
 
272
.UNINDENT
 
273
.UNINDENT
 
274
.sp
 
275
\fBdelete <system_id>\fP
 
276
.INDENT 0.0
 
277
.INDENT 3.5
 
278
Removes the given node from the MAAS database.
 
279
.UNINDENT
 
280
.UNINDENT
 
281
.sp
 
282
\fBread <system_id>\fP
 
283
.INDENT 0.0
 
284
.INDENT 3.5
 
285
Returns all the current known information about the node specified
 
286
by \fI<system_id>\fP
 
287
.UNINDENT
 
288
.UNINDENT
 
289
.sp
 
290
\fBupdate <system_id> [parameters...]\fP
 
291
.INDENT 0.0
 
292
.INDENT 3.5
 
293
Used to change or set specific values for the node. The valid
 
294
parameters are listed below:
 
295
.INDENT 0.0
 
296
.INDENT 3.5
 
297
.sp
 
298
.nf
 
299
.ft C
 
300
hostname=<value>
 
301
     The new hostname for this node.
 
302
 
 
303
architecture=<value>
 
304
     Sets the architecture type, where <value>
 
305
     is a string containing a valid architecture type,
 
306
     e.g. "i386/generic"
 
307
 
 
308
power_type=<value>
 
309
     Apply the given dotted decimal value as the broadcast IP address
 
310
     for this subnet.
 
311
 
 
312
power_parameters_{param1}... =<value>
 
313
     Set the given power parameters. Note that the valid options for these
 
314
     depend on the power type chosen.
 
315
 
 
316
power_parameters_skip_check \(aqtrue\(aq | \(aqfalse\(aq
 
317
     Whether to sanity check the supplied parameters against this node\(aqs
 
318
     declared power type. The default is \(aqfalse\(aq.
 
319
.ft P
 
320
.fi
 
321
.UNINDENT
 
322
.UNINDENT
 
323
.UNINDENT
 
324
.UNINDENT
 
325
.sp
 
326
Example: Setting the power parameters for an ipmi enabled node:
 
327
.INDENT 0.0
 
328
.INDENT 3.5
 
329
.sp
 
330
.nf
 
331
.ft C
 
332
maas update <system_id> \e
 
333
  power_type="ipmi" \e
 
334
  power_parameters_power_address=192.168.22.33 \e
 
335
  power_parameters_power_user=root \e
 
336
  power_parameters_power_pass=ubuntu;
 
337
.ft P
 
338
.fi
 
339
.UNINDENT
 
340
.UNINDENT
 
341
.SH NODES
 
342
.sp
 
343
Usage: maas <profile> nodes [\-h] is\-registered | list\-allocated |
 
344
acquire | list | accept | accept\-all | new | check\-commissioning
 
345
.sp
 
346
\fB\-h, \-\-help\fP
 
347
.INDENT 0.0
 
348
.INDENT 3.5
 
349
Display usage information.
 
350
.UNINDENT
 
351
.UNINDENT
 
352
.sp
 
353
\fBaccept <system_id>\fP
 
354
.INDENT 0.0
 
355
.INDENT 3.5
 
356
Accepts the node referenced by <system_id>.
 
357
.UNINDENT
 
358
.UNINDENT
 
359
.sp
 
360
\fBaccept\-all\fP
 
361
.INDENT 0.0
 
362
.INDENT 3.5
 
363
Accepts all currently discovered but not previously accepted nodes.
 
364
.UNINDENT
 
365
.UNINDENT
 
366
.sp
 
367
\fBacquire\fP
 
368
.INDENT 0.0
 
369
.INDENT 3.5
 
370
Allocates a node to the profile used to issue the command. Any
 
371
ready node may be allocated.
 
372
.UNINDENT
 
373
.UNINDENT
 
374
.sp
 
375
\fBis\-registered mac_address=<address>\fP
 
376
.INDENT 0.0
 
377
.INDENT 3.5
 
378
Checks to see whether the specified MAC address is registered to a
 
379
node.
 
380
.UNINDENT
 
381
.UNINDENT
 
382
.sp
 
383
\fBlist\fP
 
384
.INDENT 0.0
 
385
.INDENT 3.5
 
386
Returns a JSON formatted object listing all the currently known
 
387
nodes, their system_id, status and other details.
 
388
.UNINDENT
 
389
.UNINDENT
 
390
.sp
 
391
\fBlist\-allocated\fP
 
392
.INDENT 0.0
 
393
.INDENT 3.5
 
394
Returns a JSON formatted object listing all the currently allocated
 
395
nodes, their system_id, status and other details.
 
396
.UNINDENT
 
397
.UNINDENT
 
398
.sp
 
399
\fBnew architecture=<value> mac_addresses=<value> [parameters]\fP
 
400
.INDENT 0.0
 
401
.INDENT 3.5
 
402
Creates a new node entry given the provided key=value information
 
403
for the node. A minimum of the MAC address and architecture must be
 
404
provided. Other parameters may also be supplied:
 
405
.INDENT 0.0
 
406
.INDENT 3.5
 
407
.sp
 
408
.nf
 
409
.ft C
 
410
architecture="<value>" \- The architecture of the node, must be
 
411
one of the recognised architecture strings (e.g. "i386/generic")
 
412
hostname="<value>" \- a name for this node. If not supplied a name
 
413
will be generated.
 
414
mac_addresses="<value>" \- The mac address(es)
 
415
allocated to this node.
 
416
power_type="<value>" \- the power type of
 
417
the node (e.g. virsh, ipmi)
 
418
.ft P
 
419
.fi
 
420
.UNINDENT
 
421
.UNINDENT
 
422
.UNINDENT
 
423
.UNINDENT
 
424
.sp
 
425
\fBcheck\-commissioning\fP
 
426
.INDENT 0.0
 
427
.INDENT 3.5
 
428
Displays current status of nodes in the commissioning phase. Any
 
429
that have not returned before the system timeout value are listed
 
430
as "failed".
 
431
.UNINDENT
 
432
.UNINDENT
 
433
.sp
 
434
Examples:
 
435
Accept and commission all discovered nodes:
 
436
.INDENT 0.0
 
437
.INDENT 3.5
 
438
.sp
 
439
.nf
 
440
.ft C
 
441
$ maas maas nodes accept\-all
 
442
.ft P
 
443
.fi
 
444
.UNINDENT
 
445
.UNINDENT
 
446
.sp
 
447
List all known nodes:
 
448
.INDENT 0.0
 
449
.INDENT 3.5
 
450
.sp
 
451
.nf
 
452
.ft C
 
453
$ maas maas nodes list
 
454
.ft P
 
455
.fi
 
456
.UNINDENT
 
457
.UNINDENT
 
458
.sp
 
459
Filter the list using specific key/value pairs:
 
460
.INDENT 0.0
 
461
.INDENT 3.5
 
462
.sp
 
463
.nf
 
464
.ft C
 
465
$ maas maas nodes list architecture="i386/generic"
 
466
.ft P
 
467
.fi
 
468
.UNINDENT
 
469
.UNINDENT
 
470
.SH NODE-GROUPS
 
471
.sp
 
472
Usage: maas <profile> node\-groups [\-d \-\-debug] [\-h \-\-help] [\-k
 
473
\-\-insecure] register | list | refresh\-workers | accept | reject
 
474
.sp
 
475
\fB\-d, \-\-debug\fP
 
476
.INDENT 0.0
 
477
.INDENT 3.5
 
478
Displays debug information listing the API responses.
 
479
.UNINDENT
 
480
.UNINDENT
 
481
.sp
 
482
\fB\-h, \-\-help\fP
 
483
.INDENT 0.0
 
484
.INDENT 3.5
 
485
Display usage information.
 
486
.UNINDENT
 
487
.UNINDENT
 
488
.sp
 
489
\fB\-k, \-\-insecure\fP
 
490
.INDENT 0.0
 
491
.INDENT 3.5
 
492
Disables the SSL certificate check.
 
493
.UNINDENT
 
494
.UNINDENT
 
495
.sp
 
496
\fBregister uuid=<value> name=<value> interfaces=<json_string>\fP
 
497
.INDENT 0.0
 
498
.INDENT 3.5
 
499
Registers a new node group with the given name and uuid. The
 
500
interfaces parameter must be supplied in the form of a JSON string
 
501
comprising the key/value data for the interface to be used, for
 
502
example: interface=\(aq["ip":"192.168.21.5","interface":"eth1", "subnet_mask":"255.255.255.0","broadcast_ip":"192.168.21.255", "router_ip":"192.168.21.1", "ip_range_low":"192.168.21.10", "ip_range_high":"192.168.21.50"}]\(aq
 
503
.UNINDENT
 
504
.UNINDENT
 
505
.sp
 
506
\fBlist\fP
 
507
.INDENT 0.0
 
508
.INDENT 3.5
 
509
Returns a JSON list of all currently defined node groups.
 
510
.UNINDENT
 
511
.UNINDENT
 
512
.sp
 
513
\fBrefresh_workers\fP
 
514
.INDENT 0.0
 
515
.INDENT 3.5
 
516
It sounds a bit like they will get a cup of tea and a
 
517
biscuit. Actually this just sends each node\-group worker an update
 
518
of its credentials (API key, node\-group name). This command is
 
519
usually not needed at a user level, but is often used by worker
 
520
nodes.
 
521
.UNINDENT
 
522
.UNINDENT
 
523
.sp
 
524
\fBaccept <uuid>\fP
 
525
.INDENT 0.0
 
526
.INDENT 3.5
 
527
Accepts a node\-group or number of nodegroups indicated by the
 
528
supplied UUID
 
529
.UNINDENT
 
530
.UNINDENT
 
531
.sp
 
532
\fBreject <uuid>\fP
 
533
.INDENT 0.0
 
534
.INDENT 3.5
 
535
Rejects a node\-group or number of nodegroups indicated by the
 
536
supplied UUID
 
537
.UNINDENT
 
538
.UNINDENT
 
539
.SH NODE-GROUP-INTERFACE
 
540
.sp
 
541
For managing the interfaces. See also \fInode\-group\-interfaces\fP
 
542
.sp
 
543
Usage: maas \fI<profile>\fP node\-group\-interfaces [\-d \-\-debug] [\-h
 
544
\-\-help] [\-k \-\-insecure] read | update | delete [parameters...]
 
545
.sp
 
546
\&..program:: maas node\-group\-interface
 
547
.sp
 
548
\fBread <uuid> <interface>\fP
 
549
.INDENT 0.0
 
550
.INDENT 3.5
 
551
Returns the current settings for the given UUID and interface
 
552
.UNINDENT
 
553
.UNINDENT
 
554
.sp
 
555
\fBupdate [parameters]\fP
 
556
.INDENT 0.0
 
557
.INDENT 3.5
 
558
Changes the settings for the interface according to the given
 
559
parameters:
 
560
.INDENT 0.0
 
561
.INDENT 3.5
 
562
.sp
 
563
.nf
 
564
.ft C
 
565
management=  0 | 1 | 2
 
566
     The service to be managed on the interface ( 0= none, 1=DHCP, 2=DHCP
 
567
     and DNS).
 
568
 
 
569
subnet_mask=<value>
 
570
     Apply the given dotted decimal value as the subnet mask.
 
571
 
 
572
broadcast_ip=<value>
 
573
     Apply the given dotted decimal value as the broadcast IP address for
 
574
     this subnet.
 
575
 
 
576
router_ip=<value>
 
577
     Apply the given dotted decimal value as the default router address
 
578
     for this subnet.
 
579
 
 
580
ip_range_low=<value>
 
581
     The lowest value of IP address to allocate via DHCP
 
582
 
 
583
ip_range_high=<value>
 
584
     The highest value of IP address to allocate via DHCP
 
585
.ft P
 
586
.fi
 
587
.UNINDENT
 
588
.UNINDENT
 
589
.UNINDENT
 
590
.UNINDENT
 
591
.sp
 
592
\fBdelete <uuid> <interface>\fP
 
593
.INDENT 0.0
 
594
.INDENT 3.5
 
595
Removes the entry for the given UUID and interface.
 
596
.UNINDENT
 
597
.UNINDENT
 
598
.sp
 
599
Example:
 
600
Configuring DHCP and DNS.
 
601
.sp
 
602
To enable MAAS to manage DHCP and DNS, it needs to be supplied with the relevant
 
603
interface information. To do this we need to first determine the UUID of the
 
604
node group affected:
 
605
.INDENT 0.0
 
606
.INDENT 3.5
 
607
.sp
 
608
.nf
 
609
.ft C
 
610
$ uuid=$(maas <profile> node\-groups list | grep uuid | cut \-d\e" \-f4)
 
611
.ft P
 
612
.fi
 
613
.UNINDENT
 
614
.UNINDENT
 
615
.sp
 
616
Once we have the UUID we can use this to update the node\-group\-interface for
 
617
that nodegroup, and pass it the relevant interface details:
 
618
.INDENT 0.0
 
619
.INDENT 3.5
 
620
.sp
 
621
.nf
 
622
.ft C
 
623
$ maas <profile> node\-group\-interface update $uuid eth0 \e
 
624
        ip_range_high=192.168.123.200    \e
 
625
        ip_range_low=192.168.123.100     \e
 
626
        management=2                     \e
 
627
        broadcast_ip=192.168.123.255     \e
 
628
        router_ip=192.168.123.1          \e
 
629
.ft P
 
630
.fi
 
631
.UNINDENT
 
632
.UNINDENT
 
633
.sp
 
634
Replacing the example values with those required for this network. The
 
635
only non\-obvious parameter is \(aqmanagement\(aq which takes the values 0
 
636
(no management), 1 (manage DHCP) and 2 (manage DHCP and DNS).
 
637
.SH NODE-GROUP-INTERFACES
 
638
.sp
 
639
The node\-group\-interfaces commands are used for configuring the
 
640
management of DHCP and DNS services where these are managed by MAAS.
 
641
.sp
 
642
Usage: maas \fI<profile>\fP node\-group\-interfaces [\-d \-\-debug] [\-h
 
643
\-\-help] [\-k \-\-insecure] list | new [parameters...]
 
644
.sp
 
645
\fB\-d, \-\-debug\fP
 
646
.INDENT 0.0
 
647
.INDENT 3.5
 
648
Displays debug information listing the API responses.
 
649
.UNINDENT
 
650
.UNINDENT
 
651
.sp
 
652
\fB\-h, \-\-help\fP
 
653
.INDENT 0.0
 
654
.INDENT 3.5
 
655
Display usage information.
 
656
.UNINDENT
 
657
.UNINDENT
 
658
.sp
 
659
\fB\-k, \-\-insecure\fP
 
660
.INDENT 0.0
 
661
.INDENT 3.5
 
662
Disables the SSL certificate check.
 
663
.UNINDENT
 
664
.UNINDENT
 
665
.sp
 
666
\fBlist <label>\fP
 
667
.INDENT 0.0
 
668
.INDENT 3.5
 
669
Lists the current stored configurations for the given identifier
 
670
<label> in a key:value format which should be easy to decipher.
 
671
.UNINDENT
 
672
.UNINDENT
 
673
.sp
 
674
\fBnew <label> ip=<value> interface=<if_device> [parameters...]\fP
 
675
.INDENT 0.0
 
676
.INDENT 3.5
 
677
Creates a new interface group. The required parameters are the IP
 
678
address and the network interface this appies to (e.g. eth0). In
 
679
order to do anything useful, further parameters are required:
 
680
.INDENT 0.0
 
681
.INDENT 3.5
 
682
.sp
 
683
.nf
 
684
.ft C
 
685
management= 0 | 1 | 2
 
686
     The service to be managed on the interface
 
687
     ( 0= none, 1=DHCP, 2=DHCP and DNS).
 
688
 
 
689
subnet_mask=<value>
 
690
     Apply the given dotted decimal value as the subnet mask.
 
691
 
 
692
broadcast_ip=<value>
 
693
     Apply the given dotted decimal value as the
 
694
     broadcast IP address for this subnet.
 
695
 
 
696
router_ip=<value>
 
697
     Apply the given dotted decimal value as the
 
698
     default router address for this subnet.
 
699
 
 
700
ip_range_low=<value>
 
701
     The lowest value of IP address to allocate via DHCP
 
702
 
 
703
ip_range_high=<value>
 
704
     The highest value of IP address to allocate via DHCP
 
705
.ft P
 
706
.fi
 
707
.UNINDENT
 
708
.UNINDENT
 
709
.UNINDENT
 
710
.UNINDENT
 
711
.SH TAG
 
712
.INDENT 0.0
 
713
.TP
 
714
.B Usage: maas <profile> tag read | update\-nodes | rebuild | update |
 
715
nodes | delete
 
716
.UNINDENT
 
717
.sp
 
718
\fBread <tag_name>\fP
 
719
.INDENT 0.0
 
720
.INDENT 3.5
 
721
Returns information on the tag specified by <name>
 
722
.UNINDENT
 
723
.UNINDENT
 
724
.sp
 
725
\fBupdate\-nodes <tag_name> [add=<system_id>] [remove=<system_id>]
 
726
[nodegroup=<system_id>]\fP
 
727
.INDENT 0.0
 
728
.INDENT 3.5
 
729
Applies or removes the given tag from a list of nodes specified by
 
730
either or both of add="<system_id>" and remove="<system_id>". The
 
731
nodegroup parameter, which restricts the operations to a particular
 
732
nodegroup, is optional, but only the superuser can execute this
 
733
command without it.
 
734
.UNINDENT
 
735
.UNINDENT
 
736
.sp
 
737
\fBrebuild\fP
 
738
.INDENT 0.0
 
739
.INDENT 3.5
 
740
Triggers a rebuild of the tag to node mapping.
 
741
.UNINDENT
 
742
.UNINDENT
 
743
.sp
 
744
\fBupdate <tag_name> [name=<value>] | [comment=<value>]|
 
745
[definition=<value>]\fP
 
746
.INDENT 0.0
 
747
.INDENT 3.5
 
748
Updates the tag identified by tag_name. Any or all of name,comment
 
749
and definition may be supplied as parameters. If no parameters are
 
750
supplied, this command returns the current values.
 
751
.UNINDENT
 
752
.UNINDENT
 
753
.sp
 
754
\fBnodes <tag_name>\fP
 
755
.INDENT 0.0
 
756
.INDENT 3.5
 
757
Returns a list of nodes which are associated with the given tag.
 
758
.UNINDENT
 
759
.UNINDENT
 
760
.sp
 
761
\fBdelete <tag_name>\fP
 
762
.INDENT 0.0
 
763
.INDENT 3.5
 
764
Deletes the given tag.
 
765
.UNINDENT
 
766
.UNINDENT
 
767
.SH TAGS
 
768
.sp
 
769
Tags are a really useful way of identifying nodes with particular
 
770
characteristics.
 
771
.sp
 
772
Usage: maas <profile> tag [\-d \-\-debug] [\-h \-\-help] [\-k
 
773
\-\-insecure] list | new
 
774
.sp
 
775
\fB\-d, \-\-debug\fP
 
776
.INDENT 0.0
 
777
.INDENT 3.5
 
778
Displays debug information listing the API responses.
 
779
.UNINDENT
 
780
.UNINDENT
 
781
.sp
 
782
\fB\-h, \-\-help\fP
 
783
.INDENT 0.0
 
784
.INDENT 3.5
 
785
Display usage information.
 
786
.UNINDENT
 
787
.UNINDENT
 
788
.sp
 
789
\fB\-k, \-\-insecure\fP
 
790
.INDENT 0.0
 
791
.INDENT 3.5
 
792
Disables the SSL certificate check.
 
793
.UNINDENT
 
794
.UNINDENT
 
795
.sp
 
796
\fBlist\fP
 
797
.INDENT 0.0
 
798
.INDENT 3.5
 
799
Returns a JSON object listing all the current tags known by the MAAS server
 
800
.UNINDENT
 
801
.UNINDENT
 
802
.sp
 
803
\fBcreate name=<value> definition=<value> [comment=<value>]\fP
 
804
.INDENT 0.0
 
805
.INDENT 3.5
 
806
Creates a new tag with the given name and definition. A comment is
 
807
optional. Names must be unique, obviously \- an error will be
 
808
returned if the given name already exists. The definition is in the
 
809
form of an XPath expression which parses the XML returned by
 
810
running \fBlshw\fP on the node.
 
811
.UNINDENT
 
812
.UNINDENT
 
813
.sp
 
814
Example:
 
815
Adding a tag to all nodes which have an Intel GPU:
 
816
.INDENT 0.0
 
817
.INDENT 3.5
 
818
.sp
 
819
.nf
 
820
.ft C
 
821
$ maas maas tags new name=\(aqintel\-gpu\(aq \e
 
822
    comment=\(aqMachines which have an Intel display driver\(aq \e
 
823
    definition=\(aqcontains(//node[@id="display"]/vendor, "Intel")
 
824
.ft P
 
825
.fi
 
826
.UNINDENT
 
827
.UNINDENT
 
828
.SH UNUSED COMMANDS
 
829
.sp
 
830
Because the \fBmaas\fP command exposes all of the API, it also lists
 
831
some command options which are not really intended for end users, such
 
832
as the "file" and "boot\-images" options.
87
833
.SH FURTHER DOCUMENTATION
88
834
.sp
89
835
For more documentation of MAAS, please see \fI\%https://maas.ubuntu.com/docs\fP
90
836
.SH SEE ALSO
91
837
.sp
92
 
\fImaas\-cli\fP
 
838
\fImaas\fP
93
839
.SH AUTHOR
94
 
Canonical 2013
 
840
Canonical 2013-2014
95
841
.SH COPYRIGHT
96
842
2013, MAAS Developers
97
843
.\" Generated by docutils manpage writer.