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:[email protected]] 
Sent: Wednesday, May 7, 2014 5:58 AM
To: <[email protected]>
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" <[email protected]> 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 <[email protected]> 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 < 
>> [email protected] <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 
>>>> <[email protected]<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

Reply via email to