4.6.12 Closing a port
To close an open port, run the set subcommand of the asadmin utility command to disable the setting of the port-related parameter.
Prerequisites
-
The domain administration server (DAS) is running.
-
Application Server is running.
Intended users
-
System engineers
Port-related parameter to be specified for closing a port
When closing the port, specify the following port-related parameter for the get and set subcommands of the asadmin utility command:
-
configs.config.configuration_name_of_the_Java_EE_server.network-config.network-listeners.network-listener.listener_name.enabled
This parameter closes the port that has the port number specified by configs.config.configuration_name_of_the_Java_EE_server.network-config.network-listeners.network-listener.listener_name.port.
Procedure
Run the get subcommand of the asadmin utility command to get the setting value for the port-related parameter, and confirm that the port is open (the setting value is true).
asadmin get port_related_parameter
When this command is run, the result is displayed as follows:
Command get executed successfully.
To close the opened port, run the set subcommand of the asadmin utility command.
asadmin set port_related_parameter=false
Specifying false for the port-related parameter closes the port by disabling the setting of this parameter.
When this command is run, the result is displayed as follows:
Command set executed successfully.