beautypg.com

Os _slb:: virtual_server_name(), Example, Description – Brocade Virtual ADX OpenScript API Guide (Supporting ADX v03.1.00) User Manual

Page 118: Context, Usage, Input parameters, Return values

background image

106

Brocade Virtual ADX OpenScript API Guide

53-1003243-01

Methods

7

Example

NOTE

This API returns the status of the real server ports, which belong to group-id 10, that are bind to the
virtual service port where OpenScript is bind only.

OS _SLB:: virtual_server_name()

Description

Returns the name of the virtual server.

Context

This function can be called from any event.

Usage

This function can be used to check the virtual server name.

Input Parameters

None

Return Values

The following table contains the return values.

Example

TABLE 127

Return Values

Name

Type

Description

The current virtual server name.

use OS_SLB;

use OS_HTTP_REQUEST;

sub HTTP_REQUEST {

my $groupStatus = OS_SLB::is_group_up(“10”);

}

use OS_SLB;

use OS_HTTP_REQUEST;

sub HTTP_REQUEST {

OS_SLB::virtual_server_name;

}