Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Remove TCP/IP Port Restriction (RMVTCPPORT) command removes a particular user profile from the list of user profiles that are allowed to use a port or range of ports. The removal of the user profile takes effect as soon as that user profile being removed is no longer using the port or any of the ports within the range of ports.
There are two independent sets of ports. One set is for TCP processing and the other is for UDP processing. They are completely independent sets of ports and have no relationship to one another.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
PORT | Range of port values | Element list | Required, Positional 1 |
Element 1: Lower value | 1-65535, *ALL | ||
Element 2: Upper value | 1-65535, *ONLY | ||
PROTOCOL | Protocol | *UDP, *TCP | Required, Positional 2 |
USRPRF | User profile | Character value | Required, Positional 3 |
Top |
Specifies the port number or range of port numbers that are having the user profile removed from the list of user profiles that are allowed to use that port or range of ports. Valid values range from 1 through 65535. However, ports 1 through 1023 are reserved for use by system-supplied TCP/IP applications. If the user specifies ports 1 through 1023, it can affect the operation of those applications.
This is a required parameter.
Element 1: Lower value
Element 2: Upper value
Top |
Specifies the transport protocol associated with the port or range of ports having the user profile removed from the list of user profiles that have exclusive use of a port or range of ports.
This is a required parameter.
Top |
Specifies the name of the user profile whose profile is to be removed from the list of user profiles that have exclusive use of the port or range of ports.
This is a required parameter.
Top |
Example 1: Removing Restriction on a Single User Profile
RMVTCPPORT PORT(1590) PROTOCOL(*UDP) USRPRF(USER1)
This command removes the restriction for the user profile named USER1 for UDP port 1590. This user profile is removed from the list of user profiles that are allowed to use port number 1590.
Example 2: Removing Restriction on a Range of Ports
RMVTCPPORT PORT(1590 2000) PROTOCOL(*TCP) USRPRF(USER2)
This command removes the restriction for the user profile named USER2 for TCP ports 1590 through port 2000. This user profile is removed from the list of user profiles that are allowed to use ports 1590 though 2000.
Example 3: Removing All Ports
RMVTCPPORT PORT(*ALL) PROTOCOL(*TCP) USRPRF(USER3)
This command removes the restriction for the user profile named USER3 for TCP port 1 through port 65535. The command will complete successfully even if the user did not have a port within this range restricted. This user profile is removed from the list of user profiles that are allowed to use any of the TCP ports.
Top |
*ESCAPE Messages
Top |