SET.SERVER, SET.PRIVATE.SERVER |
|
|
The SET.SERVER command defines a QMNet server available to all users. The SET.PRIVATE.SERVER command defines a QMNet server visible only from the QM session in which the command is executed.
Format
SET.SERVER name ip.address{:port} username password {NO.QUERY} SET.SERVER name ip.address{:port} LIKE server.name {NO.QUERY} SET.PRIVATE.SERVER name ip.address{:port} username password
where
The command will prompt for command line elements that are omitted.
To allow for IPV6 format addresses, the colon separator between the ip.address and the port may alternatively be entered as a semicolon. This applies either on the command line or in response to a prompt for the address.
QMNet allows an application to access QM data files on other servers as though they were local file, with complete support for concurrency control via file and record locks. The remote server must have remote access enabled by setting the NETFILES configuration parameter to 2.
Public servers may be defined by any user with system administrator rights using the SET.SERVER command in the QMSYS account. The NO.QUERY keyword suppresses the confirmation prompt if the server name is already defined. A public server defined with this command can be accessed by all users. The ADMIN.SERVER command can be used to create or modify server definitions to apply restrictions on which users can access the server. Alternatively, the LIKE keyword can be used to copy the security settings from another public server definition.
Private servers are defined using the SET.PRIVATE.SERVER command. As part of the QM security system (see Application Level Security), the SET.PRIVATE.SERVER command is only available to users for which it is enabled in their user register entry. On a system running with security disabled, any user may define private servers. The default behaviour of QM is to allow a private server definition to have the same name as a public server, effectively redirecting connections to that server. The SECURITY configuration parameter can be used to disallow creation of such definitions.
Example
SET.SERVER ADMIN 193.100.13.18:4000 root
This example will create a server known within QM as ADMIN. The server IP address is 193.100.13.18 and connection will use port 4000. The user name (root) has been included in the command but, because the password has been omitted, the command will prompt for this.
See also: |