[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Xen-API] Error with VIF_METRICS
- To: xen-api@xxxxxxxxxxxxx
- From: Luiz Roberto <kiko@xxxxxxxxxxxxxxxxx>
- Date: Mon, 25 Jun 2012 12:02:28 -0300
- Delivery-date: Mon, 25 Jun 2012 15:02:49 +0000
- List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>
Hello everybody,
I need to get VIF_metrics from a specific VM and I got a problem
while trying to do that.
(HANDLE_INVALID VIF_metrics
OpaqueRef:f71830ff-301b-77a8-37e9-f4c4aaa2905b)
It is very strange, I never got this error before.
Take a look on my code:
$vms_array = $xenserver->VM_get_all();
foreach ($vms_array as $vm) {
$record = $xenserver->VM_get_record($vm);
if($record['is_a_template']==false &&
$record['is_control_domain']==false) {
var_dump($record['VIFs']); //Return : 0 => string
'OpaqueRef:f71830ff-301b-77a8-37e9-f4c4aaa2905b' (length=46)
foreach($record['VIFs'] as $vif) {
$metrics =
$xenserver->__call('VIF_metrics.get_record',array($vif) ));
var_dump($metrics);
}
}
}
I tried many values as parameter but no success...
Anybody here knows what is this problem?
Thanks
|
_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
|