Commandes utiles
par
popularité : 3%
Commandes utiles :
Modification del’afffichage :
Il y a deux possibilités :
- En ligne de commande : cloudmonkey -d "option"
- Dans cloudmonkey : set display "option"
Les options sont :
csv default json table xml
Connaitre id d’une VM.
# cloudmonkey list virtualmachines name=SERVER1-VM filter=id,name count = 1 virtualmachine : +--------------------------------------+-----------+
id |
name |
+--------------------------------------+-----------+
768000b5-434f-4f4d-b5db-41af3b9a0ee2 |
SERVER1-VM |
+--------------------------------------+-----------+
Connaitre la liste des VM :
# cloudmonkey list virtualmachines filter=id,name
Les options filter :
account, diskofferingid, hostid, memoryintfreekbs, projectid, templateid, affinitygroup, diskofferingname, hostname, memorykbs, publicip, templatename, cpunumber, displayname, hypervisor, memorytargetkbs, publicipid, userid, cpuspeed, displayvm, id, name, rootdeviceid, username, cpuused, domain, instancename, networkkbsread, rootdevicetype, vgpu, created, domainid, isdynamicallyscalable, networkkbswrite, securitygroup, zoneid, details, forvirtualnetwork, isodisplaytext, nic, serviceofferingid, zonename, diskioread, group, isoid, ostypeid, serviceofferingname, diskiowrite, groupid, isoname, password, servicestate, diskkbsread, guestosid, keypair, passwordenabled, state, diskkbswrite, haenable, memory, project, templatedisplaytext,
Connaitre la liste des réseaux :
# cloudmonkey list networks filter=id,name
Les options filter :
account, dns2, name, project, tags, aclid, domain, netmask, projectid, traffictype, acltype, domainid, networkcidr, related, type, broadcastdomaintype, gateway, networkdomain, reservediprange, vlan, broadcasturi, id, networkofferingavailability, restartrequired, vpcid, canusefordeploy, ip6cidr, networkofferingconservemode, service, zoneid, cidr, ip6gateway, networkofferingdisplaytext, specifyipranges, zonename, displaynetwork, isdefault, networkofferingid, state, zonesnetworkspans, displaytext, ispersistent, networkofferingname, strechedl2subnet, dns1, issystem, physicalnetworkid, subdomainaccess,
Connaitre id du loadbalancer :
# cloudmonkey list loadbalancerrules
< ?xml version="1.0" ?>
<CloudStack-poc>
<count>1</count>
<loadbalancerrule>
<item>
<networkid>90e24070-a97c-4b46-95bc-a911a101771E</networkid>
<account>SOCIE0/VDCC/273185</account>
<domainid>96d53e04-57ed-4ce8-9276-3e968c27575E</domainid>
<name>robert</name>
<algorithm>roundrobin</algorithm>
<tags/>
<cidrlist/>
<publicipid>77adae14-95a0-423e-af61-221f9f8d42cb</publicipid>
<zoneid>374b937d-2051-4440-b02c-a314dd9cb27e</zoneid>
<publicip>113.139.141.158</publicip>
<state>Active</state>
<domain>Societe System-1</domain>
<privateport>80</privateport>
<publicport>80</publicport>
<id>915817b9-c633-4f70-a67e-4f27251a82aE</id>
</item>
</loadbalancerrule>
</CloudStack-poc>
Les options filter ;
account, cidrlist, domain, fordisplay, name, privateport, projectid, publicip, publicport, tags, algorithm, description, domainid, id, networkid, project, protocol, publicipid, state, zoneid,
Ajout VM dans loadbalancer :
#cloudmonkey -b assign toloadbalancerrule id=915817b9-c633-4f70-a67e-4f27251a82aE virtualmachineids=68000b5-434f-4f4d-b5db-41af3b9a0ee2
Changer id et virtualmachineids ;)
Suppression VM dans loadbalancer :
#cloudmonkey remove fromloadbalancerrule id=915817b9-c633-4f70-a67e-4f27251a82aE virtualmachineids=768000b5-434f-4f4d-b5db-41af3b9a0ee2
Changer id et virtualmachineids ;)