Os_slb:: is_client_ssl, Context, Usage – Brocade Virtual ADX OpenScript API Guide (Supporting ADX v03.1.00) User Manual
Page 106: Input parameters, Return values, Example

94
Brocade Virtual ADX OpenScript API Guide
53-1003243-01
Methods
7
OS_SLB:: get_server_port_current_connections
($name, $port)
Returns the current connections for the real server port specified by $name.
Context
This function can be called from any event.
Usage
Can be used for monitoring purposes.
Input Parameters
The following table contains the input values.
Return Values
The following table contains the return values.
Example
OS_SLB:: is_client_ssl
Returns “1” of the current client connection is SSL.
Context
This function can be called from the events which are triggered by the traffic.
TABLE 115
Input Values
Name
Type
Description
$name
string
The real server name.
$port
integer
The port number.
TABLE 116
Return Values
Name
Type
Description
integer
The number of current connections for the server
port specified by $name and $port.
use OS_SLB;
use OS_HTTP_REQUEST;
sub HTTP_REQUEST{
my $connections = OS_SLB::get_server_port_current_connections("rs1", 80);
print "The current connections of the server rs1 port 80 is: $connections\n";
}