cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sanjay Tripathi <sanjay.tripa...@citrix.com>
Subject RE: Total number of Vms?
Date Thu, 08 May 2014 05:35:00 GMT
Hi Juan,

If you want to use API, then use "listVirtualMachines" API with "listAll=true" parameter and
in the API resource, first thing you'll get is the count of total VMs present in your setup.

--Sanjay

-----Original Message-----
From: Juan Gomez [mailto:juan.gomez@kumo.com.co] 
Sent: Wednesday, May 7, 2014 5:58 AM
To: <users@cloudstack.apache.org>
Subject: Re: Total number of Vms?

Thank you all for the help , it seems that the easyest way is querying the dataabase 

Enviado desde mi iPhone

> El 6/05/2014, a las 18:39, "Pierre-Luc Dion" <pdion@cloudops.com> escribió:
> 
> Their is also the ruby gem: cloudstack_ruby_client if its for a script.
> It provide the total instance count  automatically when calling 
> list_instance
> 
> Le mardi 6 mai 2014, Ahmad Emneina <aemneina@gmail.com> a écrit :
> 
>> make sure to include in your query some additional clauses; and type='User'
>> and removed is null... something along those lines.
>> 
>> 
>> On Tue, May 6, 2014 at 3:07 PM, rammohan ganapavarapu < 
>> rammohanganap@gmail.com <javascript:;>> wrote:
>> 
>>> Can't you query databse? "select * from user_vm;" some thing like this?
>>> 
>>> 
>>>> On Tue, May 6, 2014 at 1:58 PM, Juan Gomez 
>>>> <juan.gomez@kumo.com.co<javascript:;>>
>>> wrote:
>>> 
>>>> Hello everyone,
>>>> 
>>>> How can i quickly count the total number of VMs that exist in my 
>>>> whole cluoudstack environment including all the zones ?
>>>> 
>>>> Thank You
>>>> 
>>>> 
>>>> 
>>>> 
>>>> Email asegurado por Check Point
> 
> 
> --
> 
> Pierre-Luc Dion
> Architecte de Solution Cloud | Cloud Solutions Architect 855-OK-CLOUD 
> (855-652-5683) x1101
> - - -
> 
> *CloudOps*420 rue Guy
> Montréal QC  H3J 1S6
> www.cloudops.com
> @CloudOps_
> 
> 
> 
> Email asegurado por Check Point
> 

Email asegurado por Check Point

Mime
View raw message