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
- Input/output system configuration (*IOSYSCFG) special authority is required (TCP8050).
Parameters
SERVICE
Service
Specifies the name of the network service to be added. Letters, digits and hyphens are accepted (TCP2914 otherwise).
PORT
Port
Specifies the port number assigned to the service (1-65535).
PROTOCOL
Protocol
Specifies the name of the protocol the network service uses, up to 32 characters.
TEXT
Text description
Specifies text that briefly describes the network service entry.
Suggested / special values:
*BLANK
ALIAS
Aliases
Specifies up to four alternate names for the network service. *NONE means the service has no alternate name.
Suggested / special values:
*NONE
Examples
ADDSRVTBLE SERVICE(FTP) PORT(21) PROTOCOL(TCP)
Adds the FTP service on port 21 with the TCP protocol.
Generated from os/cl/catalog/ADDSRVTBLE.json and os/cl/help/ADDSRVTBLE.json.