Brocade Virtual ADX OpenScript API Guide (Supporting ADX v Manual do Utilizador Página 103

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 132
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 102
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";
}
Vista de página 102
1 2 ... 98 99 100 101 102 103 104 105 106 107 108 ... 131 132

Comentários a estes Manuais

Sem comentários