wsadmin Command Reference 5-19
5.2.3 Server and Endpoint Utility Functions
This section describes the following utility functions, which are used to manage server end points.
■
showEndPointsUsingName
■
showEndPointsUsingObject
■
showServer
■
getEndPointHostUsingName
■
getEndPointHostUsingObject
■
getEndPointPortUsingName
■
getEndPointPortUsingObject
■
setEndPointHostUsingName
■
setEndPointHostUsingObject
■
setEndPointPortUsingName
■
setEndPointPortUsingObject
5.2.3.1 showEndPointsUsingName
Displays the list of end points for the specified server name and node name.
Syntax
OracleMWConfigUtilities.showEndPointsUsingNameserverName, nodeName
Example The following example displays the list of end points for the server
OracleAdminServer on the TEST01Node03 node.
print OracleMWConfigUtilities.showEndPointsUsingNameOracleAdminServer,TEST01Node03
[trw] AdminListenerAddress [trw] AdminSSLListenerAddress
[trw] HttpListenerAddress [trw] HttpsListenerAddress
[trw] SoapListenerAddress [trw] SibListenerAddress
[trw] SibSSLListenerAddress [trw] BootstrapListenerAddress
[trw] OrbListenerAddress [trw] SasSSLServerAuthListenerAddress
[trw] Cisv2SSLServerAuthListenerAddress [trw] Cisv2SSLMutualAuthListenerAddress
[trw] DcsUnicastListenerAddress [trw] SipListenerAddress
[trw] SipSSLListenerAddress [trw] SibMQListenerAddress
Argument Definition
serverName The name of the server
nodeName The name of the node
5-20 Configuration Guide for IBM WebSphere Application Server
[trw] SibMQSSLListenerAddress [trw] IpcListenerAddress
[trw] NodeDiscoveryListenerAddress [trw] NodeMulticastListenerAddress
[trw] NodeIPV6ListenerAddress
5.2.3.2 showEndPointsUsingObject
Displays the list of end points for the specified server.
Syntax
OracleMWConfigUtilities.showEndPointsUsingObjectserverObject
Example The following example displays the list of end points for the OracleAdminServer
server.
server = OracleMWConfig.getChildByNameServer,OracleAdminServer print OracleMWConfigUtilities.showEndPointsUsingObjectserver
[trw] AdminListenerAddress [trw] AdminSSLListenerAddress
[trw] HttpListenerAddress [trw] HttpsListenerAddress
[trw] SoapListenerAddress [trw] SibListenerAddress
[trw] SibSSLListenerAddress [trw] BootstrapListenerAddress
[trw] OrbListenerAddress [trw] SasSSLServerAuthListenerAddress
[trw] Cisv2SSLServerAuthListenerAddress [trw] Cisv2SSLMutualAuthListenerAddress
[trw] DcsUnicastListenerAddress [trw] SipListenerAddress
[trw] SipSSLListenerAddress [trw] SibMQListenerAddress
[trw] SibMQSSLListenerAddress [trw] IpcListenerAddress
[trw] NodeDiscoveryListenerAddress [trw] NodeMulticastListenerAddress
[trw] NodeIPV6ListenerAddress
5.2.3.3 showServer
Displays the child nodes and attributes for the specified server on the specified node.
Syntax
OracleMWConfigUtilities.showServerserverName, nodeName
Argument Definition
serverObject The server object
Argument Definition
serverName The name of the server
nodeName The name of the node
wsadmin Command Reference 5-21
Example The following example displays the attributes for the myServer server on the
TEST01Nod03 node.
OracleMWConfigUtilities.showServermyServer, TEST01Node03 [ar-] Name [soa_server1]
[ar-] NodeName [adc6140173Node02] [arw] DevelopmentMode [false]
[trw] ListenerAddress
5.2.3.4 getEndPointHostUsingName
Returns the value of the Host attribute of the specified end point for the specified server name and node name.
Syntax
OracleMWConfigUtilities.getEndPointHostUsingNameserverName, nodeName, endPointName
Example The following example returns the value of the Host attribute for the
SoapListenerAddress end point on the OracleAdminServer server on node
TEST01Node03. host = OracleMWConfigUtilities.getEndPointHostUsingName
OracleAdminServer,TEST01Node03,SoapListenerAddress print host
myserver.domain.com
5.2.3.5 getEndPointHostUsingObject
Returns the value of the Host attribute of the specified end point for the specified server.
Syntax
OracleMWConfigUtilities.getEndPointHostUsingObjectserverObject, endPointName
Example The following example returns the value of the Host attribute for the
SoapListenerAddress end point for the OracleAdminServer server.
server = OracleMWConfig.getChildByNameServer,OracleAdminServer
Argument Definition
serverName The name of the server
nodeName The name of the node
endPointName The name of the end point
Argument Definition
serverObject The server object
endPointName The name of the end point
5-22 Configuration Guide for IBM WebSphere Application Server
print OracleMWConfigUtilities.getEndPointHostUsingObjectserver,SoapListenerAddress’
’myserver.domain.com’
5.2.3.6 getEndPointPortUsingName
Returns the value of the Port attribute of the specified end point for the specified server name and node name.
Syntax
OracleMWConfigUtilities.getEndPointPortUsingNameserverName, nodeName,endPointName
Example The following example returns the value of the Port attribute for the
SoapListenerAddress end point for the OracleAdminServer server name on the
TEST01Node01 node. print
OracleMWConfigUtilities.getEndPointPortUsingNameOracleAdminServer,TEST01Node01 ,SoapListenerAddress
8882
5.2.3.7 getEndPointPortUsingObject
Returns the value of the Port attribute of the specified end point for the specified server.
Syntax
OracleMWConfigUtilities.getEndPointPortUsingObjectserver, endPointName
Example The following example returns the value of the Port attribute for the
SoapListenerAddress end point on the OracleAdminServer server.
server = OracleMWConfig.getChildByNameServer,OracleAdminServer print
OracleMWConfigUtilities.getEndPointHostUsingObjectserver,SoapListenerAddress’ 8882
Argument Definition
serverName The name of the server
nodeName The name of the node
endPointName The name of the end point
Argument Definition
server The server object
endPointName The name of the end point
wsadmin Command Reference 5-23
5.2.3.8 setEndPointHostUsingName
Sets the value of the Host attribute of the specified end point for the specified server and node.
Syntax
OracleMWConfigUtilities.setEndPointHostUsingNameserverName, nodeName,endPointName,hostValue
Example The following example sets the value of the Host attribute of the
SoapListenerAddress end point for the OracleAdminServer server on the
TEST01Node03 node. OracleMWConfigUtilities.setEndPointHostUsingNameOracleAdminServer,TEST01Node03
,SoapListenerAddress,myserver.domain.com Host Name myserver.domain.com for SoapListenerAddress is set.
5.2.3.9 setEndPointHostUsingObject
Sets the value of the Host attribute of the specified end point for the specified server.
Syntax
OracleMWConfigUtilities.setEndPointHostUsingObjectserverObject, endPointName, hostValue
Example The following example sets the value of the Host attribute of the
HttpListenerAddress end point for the OracleAdminServer server.
server = OracleMWConfig.getChildByNameServer,OracleAdminServer OracleMWConfigUtilities.setEndPointHostUsingObjectserver,HttpListenerAddress’,
localhost Host Name localhost for HttpListenerAddress is set.
Argument Definition
serverName The name of the server
nodeName The name of the node
endPointName The name of the end point
hostValue The host value, which may be localhost, the host name, or
an IP address
Argument Definition
serverObject The server object
endPointName The name of the end point
hostValue The host value, which may be localhost, the host name, or
an IP address
5-24 Configuration Guide for IBM WebSphere Application Server
5.2.3.10 setEndPointPortUsingName
Sets the value of the Port attribute of the specified end point for the specified server name and node name.
Syntax
OracleMWConfigUtilities.setEndPointPortUsingNameserverName, nodeName, endPointName, portValue
Example The following example sets the value of the Port attribute of the
HttpListenerAddress end point for the OracleAdminServer server on the
TEST01Node03 node. OracleMWConfigUtilities.setEndPointPortUsingNameOracleAdminServer,
TEST01Node03,HttpListenerAddress,9999 Port 9999 for a HttpListenerAddress is set.
5.2.3.11 setEndPointPortUsingObject
Sets the value of the Port attribute of the specified end point for the specified server.
Syntax
OracleMWConfigUtilities.setEndPointPortUsingObjectserverObject, endPointName, portValue
Example The following example sets the value of the Port attribute for the
HttpListenerAddress end point for the OracleAdminServer server.
server = OracleMWConfig.getChildByNameServer,OracleAdminServer OracleMWConfigUtilities.setEndPointPortUsingObjectserver,
HttpListenerAddress,9999
Port 9999 for a HttpListenerAddress is set.
5.2.4 JDBC Utility Functions