[ovirt-users] Reg: Could not able to collect VCPU details for VMs

2014-05-08 Thread Rathidevi
Hi Users,

I am using ovirt package for RHEV development. I can able collect the 
ipaddress, os, status and name of the virtual machines.
But i want the CPU details of all VMs. I tried this below method but i stil can 
not get cpu informations. I hope this can understand.
Please help to resolve this issue.

CPU cs = vm.getCpu();
CpuTune tune = cs.getCpuTune();
ListVCpuPin ms = tune.getVCpuPin();
for(int vc=0; vcms.size(); vc++)
{
VCpuPin pin = (VCpuPin)ms.get(vc);
pin.getVcpu();
}

Note: getVcpu does not giving any output.


Thanks  Regards,
Rathidevi___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Reg: Could not able to collect VCPU details for VMs

2014-05-08 Thread Juan Hernandez
On 05/08/2014 04:48 PM, Rathidevi wrote:
 Hi Users,
  
 I am using *ovirt* package for RHEV development. I can able collect the
 ipaddress, os, status and name of the virtual machines.
 But i want the CPU details of all VMs. I tried this below method but i
 stil can not get cpu informations. I hope this can understand.
 Please help to resolve this issue.
  
 CPU cs = vm.getCpu();
 CpuTune tune = cs.getCpuTune();
 ListVCpuPin ms = tune.getVCpuPin();
 for(int vc=0; vcms.size(); vc++)
 {
 VCpuPin pin = (VCpuPin)ms.get(vc);
 pin.getVcpu();
 }
  
 Note: getVcpu does not giving any output.
  
  
 Thanks  Regards,
 Rathidevi
 
 

What kind of information about the CPUs are you trying to find exactly?

-- 
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users