The WebSphere Application Server wsadmin.sh
tool provides the ability to run scripts. You can use the wsadmin.sh
tool to manage a WebSphere Application Server V8.0 installation, as well as configuration, application deployment, and server run-time
operations. The WebSphere Application Server only supports the Jacl and Jython scripting languages.
If you enable security for a WebSphere Application Server cell, supply authentication information to communicate with servers.
The sas.client.props
and the soap.client.props
files are located in the properties
directory for
each WebSphere Application Server profile, profile_root/properties
, where profile_root
is the directory that
contains your profile. In the default installation, profile_root
is /opt/IBM/WebSphere/AppServer/profiles
.
test317:~ # cd /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/properties/ test317:/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/properties # ls -l *props -rwxr-xr-x 1 root root 5442 Jul 11 2012 ipc.client.props -rwxr-xr-x 1 root root 520 May 19 10:35 portdef.props -rwxr-xr-x 1 root root 291 Jul 11 2012 rrdSecurity.props -rwxr-xr-x 1 root root 12114 May 19 10:34 sas.client.props -rwxr-xr-x 1 root root 8437 Jul 11 2012 sas.server.props -rwxr-xr-x 1 root root 5370 May 19 10:34 soap.client.props -rwxr-xr-x 1 root root 5050 May 19 10:35 ssl.client.props -rwxr-xr-x 1 root root 103 Jun 28 2012 wmq.client.props
The nature of the properties file updates required for running in secure mode depend on whether you connect with a Remote Method Invocation (RMI) connector, or a Simple Object Access Protocol (SOAP) connector.
RMI connector
ilc04z:/opt/IBM/WebSphere/AppServer/profiles/AppSrvr01/bin # ./wsadmin.sh -conntype RMI -host ilc04z.boulder.ibm.com -port 2809 Realm/Cell Name: defaultWIMFileBasedRealm User Identity: wasadmin User Password: WASX7209I: Connected to process "server1" on node ilc04zNode01 using RMI connector; The type of process is: UnManagedProcess WASX7029I: For help, enter: "$Help help" wsadmin>
RMI uses the BOOTSTRAP_ADDRESS
port:
ilc04z:/opt/IBM/WebSphere/AppServer/profiles/AppSrvr01/bin # cat ../properties/portdef.props | grep BOOTSTRAP BOOTSTRAP_ADDRESS=2809
If you use a Remote Method Invocation (RMI) connector, set the following properties in the sas.client.props
file
with the appropriate values:
# RMI/IIOP user identity com.ibm.CORBA.loginUserid=wasadmin com.ibm.CORBA.loginPassword=wasadmin
Also, set the following property:
com.ibm.CORBA.loginSource=properties
The default value for this property is prompt
in the sas.client.props
file. If you leave
the default value, a dialog box appears with a password prompt. If the script is running unattended, it appears
to hang.
The result is:
ilc04z:/opt/IBM/WebSphere/AppServer/profiles/AppSrvr01/bin # ./wsadmin.sh -conntype RMI -host ilc04z.boulder.ibm.com -port 2809 WASX7209I: Connected to process "server1" on node ilc04zNode01 using RMI connector; The type of process is: UnManagedProcess WASX7029I: For help, enter: "$Help help" wsadmin>
SOAP connector
ilc04z:/opt/IBM/WebSphere/AppServer/profiles/AppSrvr01/bin # ./wsadmin.sh -conntype SOAP Realm/Cell Name: <default> Username: wasadmin Password: WASX7209I: Connected to process "server1" on node ilc04zNode01 using SOAP connector; The type of process is: UnManagedProcess WASX7029I: For help, enter: "$Help help" wsadmin>
If you use a SOAP connector, set the following properties in the soap.client.props
file with the appropriate values:
com.ibm.SOAP.securityEnabled=true com.ibm.SOAP.loginUserid=wasadmin com.ibm.SOAP.loginPassword=wasadmin
Optionally, set the following property:
com.ibm.SOAP.loginSource=none
The default value for this property is prompt
in the soap.client.props
file. If you
leave the default value, a dialog box appears with a password prompt. If the script is running unattended, it
appears to hang.
The result is:
ilc04z:/opt/IBM/WebSphere/AppServer/profiles/AppSrvr01/bin # ./wsadmin.sh -conntype SOAP WASX7209I: Connected to process "server1" on node ilc04zNode01 using SOAP connector; The type of process is: UnManagedProcess WASX7029I: For help, enter: "$Help help" wsadmin>
If you specify user and password information on a command line and in the sas.client.props
file or the
soap.client.props
file, the command line information overrides the information in the props file.
![]() ![]() ![]() |