beautypg.com

Os_slb:: servers($group_id), Return values, Example – Brocade Virtual ADX OpenScript API Guide (Supporting ADX v03.1.00) User Manual

Page 103: Context, Usage, Input parameters

background image

Brocade Virtual ADX OpenScript API Guide

91

53-1003243-01

Methods

7

Return Values

The following table contains the return values.

Example

OS_SLB:: servers($group_id)

Returns an array of real servers that belong to the group specified by $group_id.

Context

This function can be called from any event.

Usage

Can be used to return an array of real server names and port numbers that belongs to the group
$group_id.

Input Parameters

The following table contains the input values.

Return Values

The following table contains the return values.

TABLE 108

Return Values

Name

Type

Description

integer

The server ID that corresponds to the name
value specified by $name.

TABLE 109

Input Values

Name

Type

Description

$group_id

integer

The server group ID.

TABLE 110

Return Values

Name

Type

Description

array

An array of all of the real server
names and port numbers that
belongs to the group specified
by $group_id.

use OS_SLB;

use OS_HTTP_REQUEST;

sub HTTP_REQUEST{

my $id = OS_SLB::server_id("rs1", 80);

print "The id of the real server rs1 port 80 is: $id\n";

}