CLI Policy Server Connectivity Methods

Contents
casso10
Contents
GetPorts Method Deprecated
The GetPorts method is deprecated in
CA Single Sign-On
v6.0 and replaced by the GetServerPort method.
GetServerAddress Method Retrieves the Host Name or IP Address of the Policy Server
The GetServerAddress method retrieves the Host Name or IP address of the Policy Server.
Syntax
The GetServerAddress method has the following format:
Netegrity::PolicyMgtServer->GetServerAddress()
Parameters
The GetServerAddress method accepts no parameters.
Return Value
The GetServerAddress method returns one of the following values:
  • A string representing the Policy Server host name or IP address
  • undef
    if the call is unsuccessful
GetServerPort Method Retrieves TCP Port for Policy Server or Server Cluster
The GetServerPort method retrieves one of the following:
  • For a clustered server, retrieves an array that contains the Policy Server port.
  • For a non-clustered server, retrieves an array of the Accounting, Authentication, and Authorization ports, in that order.
Syntax
The GetServerPort method has the following format:
Netegrity::PolicyMgtServer->GetServerPort()
Parameters
The GetServerPort method accepts no parameters:
Return Value
The GetServerPort method returns one of the following values:
  • An array of host ports
  • undef
    if the call is unsuccessful
Remarks
The single-process Policy Server introduced in
CA Single Sign-On
v6.0 combines the previously separate Authentication, Authorization, and Accounting processes into one combined process whose requests go through one TCP port. As a result, the ports numbers retrieved in the array are all the same.