Forum Discussion
Jon_Bartlett_10
Aug 11, 2006Historic F5 Account
Current Connections v9.x
Can you give a detailed example of how to get the current global connections for a node in perl? So not pool specific.
Thanks!!
Jon
Sep 06, 2006
The statistics are returned as 64 bit numbers. Since the type encoding on SOAP doesn't support 64 bit numbers, we had to create a structure with the low and high 32 bit values in the resulting 64 bit number.
To calculate the 64 bit number you'll have to do something like this
((64bittype)value.high<<32)|(64bittype)value.low;Where "64bittype" is the appropriate 64 bit type for you given langauge.
Examples:
C: ulong value64 = ((ulong)value.high<<32)|(ulong)value.low;
Perl: $value64 = Math::BigInt->new(Math::BigInt->new($high)->blsft(32))->bxor($low);I can't help you out with PHP.
Oh, and yes, the negative values is probably due to the fact that you are displaying a signed value where our stats are all unsigned.
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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