Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.
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 /QIBM/UserData/WebSphere/AppServer/V6/edition/profiles.
(dependent on configuration)
com.ibm.CORBA.loginUserid= com.ibm.CORBA.loginPassword=Also, set the following property:
com.ibm.CORBA.loginSource=propertiesThe 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.
com.ibm.SOAP.securityEnabled=true com.ibm.SOAP.loginUserid= com.ibm.SOAP.loginPassword=
wsadmin -conntype RMI -port 2809 -user u1 -password secret1
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.
Warning: On UNIX system, the use of -password option may result in security exposure as the password information becomes visible to the system status program such as ps command which can be invoked by other user to display all the running processes. Do not use this option if security exposure is a concern. Instead, specify user and password information in the soap.client.props file for SOAP connector or sas.client.props file for RMI connector. The soap.client.props and sas.client.props files are located in the properties directory of your WebSphere profile.
Related tasks
Using scripting (wsadmin)
Getting started with scripting