Forum Discussion
mealies_60121
Nimbostratus
Jul 14, 2010Overflow 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
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects