Os_slb:: server_id($name, $port), Input parameters, Return values – Brocade Virtual ADX OpenScript API Guide (Supporting ADX v03.1.00) User Manual
Page 102: Example, Context, Usage

90
Brocade Virtual ADX OpenScript API Guide
53-1003243-01
Methods
7
Input Parameters
The following table contains the input values.
Return Values
The following table contains the return values.
Example
OS_SLB:: server_id($name, $port)
Returns the real server ID that has a name with the value specified by $name.
Context
This function can be called from any event.
Usage
Can be used to check the server ID.
Input Parameters
The following table contains the input values.
TABLE 105
Input Values
Name
Type
Description
$id
integer
The server ID.
TABLE 106
Return Values
Name
Type
Description
string
The server name that
corresponds to the ID value
specified by $id.
TABLE 107
Input Values
Name
Type
Description
$name
string
The server name.
$port
integer
The server port number.
use OS_SLB;
use OS_HTTP_REQUEST;
sub HTTP_REQUEST {
my $server_name = OS_SLB::server_name("1125");
print "The name of the real server with one of the real server port's server-
id 1125 is: $server_name\n";
}