Repository navigation
Expand file tree
/
Copy pathcloudmonkey.po
More file actions
541 lines (488 loc) · 16 KB
/
Copy pathcloudmonkey.po
File metadata and controls
541 lines (488 loc) · 16 KB
1
2
3
4
5
6
7
8
9
10
11
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
48
49
50
51
52
53
54
55
56
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
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
283
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
312
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
345
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
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
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
428
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
455
456
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
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
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
539
540
541
#Licensed to the Apache Software Foundation (ASF) under one
#or more contributor license agreements. See the NOTICE file
#distributed with this work for additional information
#regarding copyright ownership. The ASF licenses this file
#to you under the Apache License, Version 2.0 (the
#"License"); you may not use this file except in compliance
#with the License. You may obtain a copy of the License at
#http://www.apache.org/licenses/LICENSE-2.0
#Unless required by applicable law or agreed to in writing,
#software distributed under the License is distributed on an
#"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
#KIND, either express or implied. See the License for the
#specific language governing permissions and limitations
#under the License.
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: Apache CloudStack Docs\n"
"POT-Creation-Date: 2013-03-19T13:38:03\n"
"PO-Revision-Date: 2013-03-19 14:14+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: None\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: it_IT\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. Tag: title
#, no-c-format
msgid "CloudMonkey"
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"CloudMonkey is the &PRODUCT; Command Line Interface (CLI). It is written in "
"Python. CloudMonkey can be used both as an interactive shell and as a "
"command line tool which simplifies &PRODUCT; configuration and management. "
"It can be used with &PRODUCT; CloudStack 4.0-incubating and above"
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"CloudMonkey is still under development and should be considered a Work In "
"Progress (WIP), the wiki is the most up to date documentation:"
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"<ulink url=\"https://cwiki.apache.org/CLOUDSTACK/cloudstack-cloudmonkey-"
"cli.html\">https://cwiki.apache.org/CLOUDSTACK/cloudstack-cloudmonkey-"
"cli.html</ulink>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Installing CloudMonkey"
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"CloudMonkey is dependent on <emphasis>readline, pygments, "
"prettytable</emphasis>, when installing from source you will need to resolve"
" those dependencies. Using the cheese shop, the dependencies will be "
"automatically installed."
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"There are three ways to get CloudMonkey. Via the official &PRODUCT; source "
"releases or via a community maintained distribution at <ulink "
"url=\"http://pypi.python.org/pypi/cloudmonkey/\">the cheese shop</ulink>. "
"Developers can also get it directly from the git repository in "
"<emphasis>tools/cli/</emphasis>."
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"Via the official Apache &PRODUCT; releases as well as the git repository."
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid ""
"\n"
" \n"
"$ git clone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git # (optional if using a release download)\n"
"$ mvn clean install -P developer\n"
"$ cd tools/cli # cloudmonkey-x.x.x.tar.gz will be built in dist\n"
"$ python setup.py build\n"
"$ python setup.py install\n"
" \n"
" "
msgstr ""
#. Tag: para
#, no-c-format
msgid "Via a community maintained package on Cheese Shop"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "pip install cloudmonkey"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Configuration"
msgstr "Configurazione"
#. Tag: para
#, no-c-format
msgid ""
"To configure CloudMonkey you can edit the ~/.cloudmonkey/config file in the "
"user's home directory as shown below. The values can also be set "
"interactively at the cloudmonkey prompt. Logs are kept in "
"~/.cloudmonkey/log, and history is stored in ~/.cloudmonkey/history. "
"Discovered apis are listed in ~/.cloudmonkey/cache. Only the log and history"
" files can be custom paths and can be configured by setting appropriate file"
" paths in ~/.cloudmonkey/config"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid ""
"\n"
"$ cat ~/.cloudmonkey/config \n"
"[core]\n"
"log_file = /Users/sebastiengoasguen/.cloudmonkey/log\n"
"asyncblock = true\n"
"paramcompletion = false\n"
"history_file = /Users/sebastiengoasguen/.cloudmonkey/history\n"
"\n"
"[ui]\n"
"color = true\n"
"prompt = > \n"
"tabularize = false\n"
"\n"
"[user]\n"
"secretkey =VDaACYb0LV9eNjTetIOElcVQkvJck_J_QljX_FcHRj87ZKiy0z0ty0ZsYBkoXkY9b7eq1EhwJaw7FF3akA3KBQ \n"
"apikey = plgWJfZK4gyS3mOMTVmjUVg-X-jlWlnfaUJ9GAbBbf9EdMkAYMmAiLqzzq1ElZLYq_u38zCm0bewzGUdP66mg\n"
"\n"
"[server]\n"
"path = /client/api\n"
"host = localhost\n"
"protocol = http\n"
"port = 8080\n"
"timeout = 3600\n"
" "
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"The values can also be set at the CloudMonkey prompt. The API and secret "
"keys are obtained via the &PRODUCT; UI or via a raw api call."
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid ""
"\n"
"\n"
"$ cloudmonkey\n"
"☁ Apache CloudStack cloudmonkey 4.1.0-snapshot. Type help or ? to list commands.\n"
"\n"
"> set prompt myprompt>\n"
"myprompt> set host localhost\n"
"myprompt> set port 8080\n"
"myprompt> set apikey <your api key>\n"
"myprompt> set secretkey <your secret key>\n"
"\n"
" "
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"You can use CloudMonkey to interact with a local cloud, and even with a "
"remote public cloud. You just need to set the host value properly and obtain"
" the keys from the cloud administrator."
msgstr ""
#. Tag: title
#, no-c-format
msgid "API Discovery"
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"In &PRODUCT; 4.0.* releases, the list of api calls available will be pre-"
"cached, while starting with &PRODUCT; 4.1 releases and above an API "
"discovery service is enabled. CloudMonkey will discover automatically the "
"api calls available on the management server. The sync command in "
"CloudMonkey pulls a list of apis which are accessible to your user role, "
"along with help docs etc. and stores them in ~/.cloudmonkey/cache. This "
"allows cloudmonkey to be adaptable to changes in mgmt server, so in case the"
" sysadmin enables a plugin such as Nicira NVP for that user role, the users "
"can get those changes. New verbs and grammar (DSL) rules are created on the "
"fly."
msgstr ""
#. Tag: para
#, no-c-format
msgid "To discover the APIs available do:"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid ""
"\n"
" > sync\n"
"324 APIs discovered and cached\n"
" "
msgstr ""
#. Tag: title
#, no-c-format
msgid "Tabular Output"
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"The number of key/value pairs returned by the api calls can be large "
"resulting in a very long output. To enable easier viewing of the output, a "
"tabular formatting can be setup. You may enable tabular listing and even "
"choose set of column fields, this allows you to create your own field using "
"the filter param which takes in comma separated argument. If argument has a "
"space, put them under double quotes. The create table will have the same "
"sequence of field filters provided"
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"To enable it, use the <emphasis>set</emphasis> function and create filters "
"like so:"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid ""
"\n"
"> set tabularize true\n"
"> list users filter=id,domain,account\n"
"count = 1\n"
"user:\n"
"+--------------------------------------+--------+---------+\n"
"| id | domain | account |\n"
"+--------------------------------------+--------+---------+\n"
"| 7ed6d5da-93b2-4545-a502-23d20b48ef2a | ROOT | admin |\n"
"+--------------------------------------+--------+---------+\n"
" "
msgstr ""
#. Tag: title
#, no-c-format
msgid "Interactive Shell Usage"
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"To start learning CloudMonkey, the best is to use the interactive shell. "
"Simply type CloudMonkey at the prompt and you should get the interactive "
"shell."
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"At the CloudMonkey prompt press the tab key twice, you will see all "
"potential verbs available. Pick on, enter a space and then press tab twice. "
"You will see all actions available for that verb"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid ""
"\n"
"\n"
"cloudmonkey>\n"
"EOF assign cancel create detach extract ldap prepare reconnect restart shell update \n"
"activate associate change delete disable generate list query register restore start upload \n"
"add attach configure deploy enable get mark quit remove revoke stop \n"
"api authorize copy destroy exit help migrate reboot reset set suspend \n"
"cloudmonkey>create \n"
"account diskoffering loadbalancerrule portforwardingrule snapshot tags vpc\n"
"autoscalepolicy domain network privategateway snapshotpolicy template vpcoffering\n"
"autoscalevmgroup firewallrule networkacl project sshkeypair user vpnconnection\n"
"autoscalevmprofile instancegroup networkoffering remoteaccessvpn staticroute virtualrouterelement vpncustomergateway\n"
"condition ipforwardingrule physicalnetwork securitygroup storagenetworkiprange vlaniprange vpngateway\n"
"counter lbstickinesspolicy pod serviceoffering storagepool volume zone\n"
"\n"
" "
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"Picking one action and entering a space plus the tab key, you will obtain "
"the list of parameters for that specific api call."
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid ""
"\n"
"\n"
"cloudmonkey>create network \n"
"account= domainid= isAsync= networkdomain= projectid= vlan= \n"
"acltype= endip= name= networkofferingid= startip= vpcid= \n"
"displaytext= gateway= netmask= physicalnetworkid= subdomainaccess= zoneid= \n"
"\n"
" "
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"To get additional help on that specific api call you can use the following:"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid ""
"\n"
"\n"
"cloudmonkey>create network -h\n"
"Creates a network\n"
"Required args: displaytext name networkofferingid zoneid\n"
"Args: account acltype displaytext domainid endip gateway isAsync name netmask networkdomain networkofferingid physicalnetworkid projectid startip subdomainaccess vlan vpcid zoneid\n"
"\n"
"cloudmonkey>create network -help\n"
"Creates a network\n"
"Required args: displaytext name networkofferingid zoneid\n"
"Args: account acltype displaytext domainid endip gateway isAsync name netmask networkdomain networkofferingid physicalnetworkid projectid startip subdomainaccess vlan vpcid zoneid\n"
"\n"
"cloudmonkey>create network --help\n"
"Creates a network\n"
"Required args: displaytext name networkofferingid zoneid\n"
"Args: account acltype displaytext domainid endip gateway isAsync name netmask networkdomain networkofferingid physicalnetworkid projectid startip subdomainaccess vlan vpcid zoneid\n"
"cloudmonkey> \n"
"\n"
" "
msgstr ""
#. Tag: para
#, no-c-format
msgid "Note the required arguments necessary for the calls."
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"To find out the required parameters value, using a debugger console on the "
"&PRODUCT; UI might be very useful. For instance using Firebug on Firefox, "
"you can navigate the UI and check the parameters values for each call you "
"are making as you navigate the UI."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Starting a Virtual Machine instance with CloudMonkey"
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"To start a virtual machine instance we will use the <emphasis>deploy "
"virtualmachine</emphasis> call."
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid ""
"\n"
"\n"
"cloudmonkey>deploy virtualmachine -h\n"
"Creates and automatically starts a virtual machine based on a service offering, disk offering, and template.\n"
"Required args: serviceofferingid templateid zoneid\n"
"Args: account diskofferingid displayname domainid group hostid hypervisor ipaddress iptonetworklist isAsync keyboard keypair name networkids projectid securitygroupids securitygroupnames serviceofferingid size startvm templateid userdata zoneid\n"
"\n"
" "
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"The required arguments are <emphasis>serviceofferingid, templateid and "
"zoneid</emphasis>"
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"In order to specify the template that we want to use, we can list all "
"available templates with the following call:"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid ""
"\n"
"\n"
"cloudmonkey>list templates templatefilter=all\n"
"count = 2\n"
"template:\n"
"========\n"
"domain = ROOT\n"
"domainid = 8a111e58-e155-4482-93ce-84efff3c7c77\n"
"zoneid = e1bfdfaf-3d9b-43d4-9aea-2c9f173a1ae7\n"
"displaytext = SystemVM Template (XenServer)\n"
"ostypeid = 849d7d0a-9fbe-452a-85aa-70e0a0cbc688\n"
"passwordenabled = False\n"
"id = 6d360f79-4de9-468c-82f8-a348135d298e\n"
"size = 2101252608\n"
"isready = True\n"
"templatetype = SYSTEM\n"
"zonename = devcloud\n"
"...<snipped>\n"
"\n"
" "
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"In this snippet, I used DevCloud and only showed the beginning output of the"
" first template, the SystemVM template"
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"Similarly to get the <emphasis>serviceofferingid</emphasis> you would do:"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid ""
"\n"
"\n"
"cloudmonkey>list serviceofferings | grep id\n"
"id = ef2537ad-c70f-11e1-821b-0800277e749c\n"
"id = c66c2557-12a7-4b32-94f4-48837da3fa84\n"
"id = 3d8b82e5-d8e7-48d5-a554-cf853111bc50\n"
"\n"
" "
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"Note that we can use the linux pipe as well as standard linux commands "
"within the interactive shell. Finally we would start an instance with the "
"following call:"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid ""
"\n"
"\n"
"cloudmonkey>deploy virtualmachine templateid=13ccff62-132b-4caf-b456-e8ef20cbff0e zoneid=e1bfdfaf-3d9b-43d4-9aea-2c9f173a1ae7 serviceofferingid=ef2537ad-c70f-11e1-821b-0800277e749c\n"
"jobprocstatus = 0\n"
"created = 2013-03-05T13:04:51-0800\n"
"cmd = com.cloud.api.commands.DeployVMCmd\n"
"userid = 7ed6d5da-93b2-4545-a502-23d20b48ef2a\n"
"jobstatus = 1\n"
"jobid = c441d894-e116-402d-aa36-fdb45adb16b7\n"
"jobresultcode = 0\n"
"jobresulttype = object\n"
"jobresult:\n"
"=========\n"
"virtualmachine:\n"
"==============\n"
"domain = ROOT\n"
"domainid = 8a111e58-e155-4482-93ce-84efff3c7c77\n"
"haenable = False\n"
"templatename = tiny Linux\n"
"...<snipped>\n"
"\n"
" "
msgstr ""
#. Tag: para
#, no-c-format
msgid "The instance would be stopped with:"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid ""
"\n"
"cloudmonkey>stop virtualmachine id=7efe0377-4102-4193-bff8-c706909cc2d2\n"
" "
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"The <emphasis>ids</emphasis> that you will use will differ from this "
"example. Make sure you use the ones that corresponds to your &PRODUCT; "
"cloud."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Scripting with CloudMonkey"
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"All previous examples use CloudMonkey via the interactive shell, however it "
"can be used as a straightfoward CLI, passing the commands to the "
"<emphasis>cloudmonkey</emphasis> command like shown below."
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "$cloudmonkey list users"
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"As such it can be used in shell scripts, it can received commands via stdin "
"and its output can be parsed like any other unix commands as mentioned "
"before."
msgstr ""