Forum Discussion

mealies_60121's avatar
mealies_60121
Icon for Nimbostratus rankNimbostratus
Jul 14, 2010

Overflow in Virtual Server Stats

I am writing a Powershell script which brings back the Virtual Server Statisitcs (Bytes In, Bytes Out, etc) Getting the data back ok, but the first two numbers (bytes in, Bytes Out) are coming back with overflow errors, even before any conversion has happened..

 

 

Is there anything i can do to stop this?

 

 

EDIT: On the F5 the affected virtual server has 20GB Bytes in and 200GB Bytes out

 

 

The affected code is below

 

 

$VirtualServerStatistics = (Get-F5.iControl).LocalLBVirtualServer.get_statistics( (, $virtual_server) );

 

$t = Get-TimeFromTimeStamp $VirtualServerStatistics.time_stamp;

 

$t = Get-EpochTime $t

 

$VirtualServerStatisticEntry = $VirtualServerStatistics.statistics[0];

 

$Statistics = $VirtualServerStatisticEntry.statistics |

 

WHERE {$_.type -eq "STATISTIC_CLIENT_SIDE_BYTES_IN" -or

 

$_.type -eq "STATISTIC_CLIENT_SIDE_BYTES_OUT" };

 

 

foreach ($Statistic in $Statistics)

 

{

 

WRITE-HOST $Statistic.value.high $Statistic.value.low;

 

 

 

 

 

 

No RepliesBe the first to reply