FreeKB - IBM WebSphere Getting Started with wsadmin
IBM WebSphere - Getting Started with wsadmin

The wsadmin utility can be used to perform a wide variety of administrative tasks. Use the following command to start the wsdamin utility. Following are the locations of the wsadmin utility on Linux or Windows.

# Linux
${WAS_INSTALL_ROOT}/profiles/your_profile_name/bin/wsadmin.sh

# Windows
${WAS_INSTALL_ROOT}\profiles\your_profile_name\bin\wsadmin.bat

 


Username / Password

When invoking the wsadmin utility without any option, if you are not prompted to provide a username and password, this means administrative security is disabled. On the other hand, if you are prompted to provide a username and password, this means administrative security is enabled. In this scenario, refer to our article on how to securely pass a username and password to the wsadmin utility.

 


When invoking the wsadmin utility without any option, you will be provided with an interactive prompt, like this.

WASX7209I: Connected to process "dmgr" on node DmgrNode01 using SOAP connector; The type of process is: DeploymentManager
WASX7031I: For help, enter: "print Help.help()"
wsadmin>

 


Disconnecting from the wsadmin utility

Typing "exit" ad the wsadmin prompt will disconnect you from the wsadmin utility.

wsadmin>exit

 


Connection type (SOAP, RMI, IPC, JSR160RMI, NONE)

By default, the wsadmin utility connects via SOAP. However, the -ConnType option can be used to specify another type of connection, such as RMI, IPC, JSR160RMI, or NONE. Or, the default connection type can be changed in the wsadmin.properties file. Refer to our article on connection type for more information.

 


AdminApp, AdminControl, AdminConfig, AdminTask

The wsadmin utility has 4 scripting objects, AdminApp, AdminControl, AdminConfig, and AdminTask. You will use one of these scripting objects when invoking a wsadmin command. Refer to our article on AdminApp, AdminControl, AdminConfig, and AdminTask for more information.

 


Running commands in-line

Instead of getting an interactive prompt, you will almost always want to instead run commands inline. The -c option can be used to run commands inline. Refer to our article on running commands inline for more information.

 


Languages (Jacl / Jython)

By default, the wsadmin utility uses the Jython langage. Refer to our article on using Jacl or Jython for more information.

 


Generate command using the WebSphere admin console

Some of the wsadmin commands can be generate using the WebSphere admin console. Refer to our article on generating wsadmin commands from the WebSphere admin console for more information.



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter 16872 in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |