Command reference / comm

ADDSRVTBLE

Add Service Table Entry

Adds a service entry to the TCP/IP service table, which maps network services to ports and records the protocols that the services use. A service is uniquely identified by its port number and protocol; the same service name can be added on several ports.

Allowed environments: *ALL. Positional parameters: 3.

Restrictions

Parameters

SERVICE Service

Specifies the name of the network service to be added. Letters, digits and hyphens are accepted (TCP2914 otherwise).

Type
*CHAR
Required
Yes
Length
64
Case
Uppercase

PORT Port

Specifies the port number assigned to the service (1-65535).

Type
*UINT2
Required
Yes
Length
5
Range
1 to 65535
Case
Uppercase

PROTOCOL Protocol

Specifies the name of the protocol the network service uses, up to 32 characters.

Type
*CHAR
Required
Yes
Length
32
Case
Uppercase

TEXT Text description

Specifies text that briefly describes the network service entry.

Type
*CHAR
Required
No
Default
*BLANK
Length
50
Case
Uppercase

Suggested / special values: *BLANK

ALIAS Aliases

Specifies up to four alternate names for the network service. *NONE means the service has no alternate name.

Type
*CHAR
Required
No
Default
*NONE
Length
64
List limit
4
Case
Uppercase

Suggested / special values: *NONE

Examples

ADDSRVTBLE SERVICE(FTP) PORT(21) PROTOCOL(TCP)

Adds the FTP service on port 21 with the TCP protocol.

IBM command documentation

Generated from os/cl/catalog/ADDSRVTBLE.json and os/cl/help/ADDSRVTBLE.json.