Forum Discussion

Derek_21893's avatar
Derek_21893
Icon for Nimbostratus rankNimbostratus
Nov 30, 2009

pva_id not populated in get_all_pva_statistics

Hi, I've noticed that pva_id doesn't get a value when using System/Statistics->get_all_pva_statistics under iControl 9.4. The platform only has one packet velocity ASIC, but shouldn't I get at least a value of "0" or "1" for the ID?

 

 

Here's a snippet of my Perl code:

 

 

my $response = $Statistics->get_all_pva_statistics;

 

 

unless ($self->ic->check_response($response)) {

 

$self->error($self->ic->error);

 

return 0;

 

}

 

 

my $stat;

 

my %pva;

 

 

foreach $stat (@{${$response->result}{'statistics'}}) {

 

pva_id is just "" after the following assignment...

 

interestingly it's not undef

 

my $pva_id = $$stat{'pva_id'};

 

}

 

 

any insight appreciated... This would become important on a system with more than one PVA.

 

 

Thanks,

 

-Derek
No RepliesBe the first to reply