Network Deployment (Distributed operating systems), v8.0 > Reference > Commands (wsadmin scripting)
PortManagement command group
Use the Jython or Jacl scripting languages to configure servers with wsadmin.sh. The commands and parameters in the PortManagement group can be used to list and modify application and server ports.
The PortManagement command group includes the following commands:
listApplicationPorts
Use the listApplicationPorts command to list the ports in order to access a particular application.
Target object
The application name for which the list of ports is generated. (String)
Required parameters NoneReturn values
The ports that are used by the application specified.
Batch example...
### Jacl
$AdminTask listApplicationPorts {}
Jython string: AdminTask.listApplicationPorts ()
Interactive example...
### Jacl
$AdminTask listApplicationPorts {-interactive}
Jython string: AdminTask.listApplicationPorts ('[-interactive]')
listServerPorts
Use the listServerPorts command to list the ports that are used by the server that you specify.
Target object
The server name. (String)
Optional parameters
-nodeName
The name of the node. This parameter is only required when the server name is not unique in the cell. (String, optional)
Batch example...
### Jacl
$AdminTask listServerPorts server1 {-nodeName myNode}
Jython string: AdminTask.listServerPorts ('server1', '[-nodeName myNode]')
Interactive example...
### Jacl
$AdminTask listServerPorts {-interactive}
Jython string: AdminTask.listServerPorts ('[-interactive]')
modifyServerPort
Use the modifyServerPort command to modify the port used by the server.
Target object
The name of the server for which the port is modified.
Required parameters
-nodeName
The name of the server node. This parameter is required only if the server name is not unique in the cell. (String, required)
-endPointName
The name of the port to modify. (String, required)
Optional parameters
-host
The new value for the host name of the endpoint. (String, optional)
-port
The new value for the port number of the endpoint. (Integer, optional)
-modifyShared
Set this parameter to true to modify the port of interest if the port is shared between multiple transport channel chains. If this parameter is not specified, the command will not modify the port if it is used in more than one transport channel chain. (Boolean, optional)
Batch example...
### Jacl
$AdminTask modifyServerPort server1 {-nodeName myNode -endPointName port1 -port 5566 -modifyShared true}
Jython string: AdminTask.modifyServerPort ('server1', '[-nodeName myNode -endPointName port1 -port 5566 -modifyShared true]')
Use Jython list: AdminTask.modifyServerPort ('server1', ['-nodeName', 'myNode', '-endPointName', 'port1', '-port', '5566 -modifyShared true'])
Interactive example...
### Jacl
$AdminTask modifyServerPort {-interactive}
Jython string: AdminTask.modifyServerPort ('[-interactive]')
Use Jython list: AdminTask.modifyServerPort (['-interactive'])
Use the wsadmin scripting AdminTask object for scripted administration
Related
Commands using wsadmin.sh