Returning information about a serverΒΆ

server_info()

Returning information about a server


SYNTAX

server_info(server_name, record_id)

Returns information about the server specified in server_name and places it in fields in the record buffer record_id.

The following fields, if defined in record_id, return values:

record_id.MaxUsers

The number of licensed users on the server.

record_id.Platform

The server platform: 1=Windows, 2=UNIX.

record_id.ScMajorVersion

The major version number of the Sculptor server.

record_id.ScMinorVersion

The minor version number of the Sculptor server.

record_id.ScFixVersion

The fix version number of the Sculptor server.

record_id.ScDateVersion

The release date of the Sculptor server.

Fields not required can be omitted, and the order of the fields in the record is not important. Other fields not required by server_info() can be included in the record structure.

The function returns zero if the call is successful, or -1 if the specified server cannot be contacted.


RELATED TOPICS

Servers