5.2.2 Launching wsadmin
The wsadmin.bat (Windows) or .sh (UNIX) command file resides in the bin directory of every profile for an appserver, deployment manager, and managed node instance. Start wsadmin from a command prompt with the command:
<was_home>\profiles\<profile>\bin\wsadmin.bat (.sh)Note that the wsadmin command also exists in the bin directory of every <profile_home> directory. Starting wsadmin from this location is not recommended because you have to be very careful to specify the right profile to work with. The default profile will be chosen.
To get syntax-related help, type wsadmin.bat -? and press Enter. Example 5-1 shows the output. Some of these options have an equivalent in the properties file. Any options specified on the command line will override those set in the properties file.
Example 5-1 wsadmin command-line options
C:\<was_home>\profiles\<profile>\bin>wsadmin -? wsadmin [ -h(elp) ] [ -? ] [ -c <command> ] [ -p <properties_file_name>] [ -profile <profile_script_name>] [ -f <script_file_name>] [ -javaoption java_option] [ -lang language] [ -wsadmin_classpath classpath] [ -profileName profile] [ -conntype SOAP [-host host_name] [-port port_number] [-user userid] [-password password] | RMI [-host host_name] [-port port_number] [-user userid] [-password password] | NONE ] [ -jobid <jobid_string>] [ -tracefile <trace_file>] [ -appendtrace <true/false>] [ script parameters ]