IBM Websphere Application Server (WAS)

Scripting with wsadmin

See the Scripting with wsadmin page

WebSphere 6.1 Network Deployment in Ubuntu Hardy

IBM supposes that /bin/sh is a bash shell, and in all the shell scripts it uses bash specific syntax, but invoking them via #!/bin/sh .

To fix the issue you should:

  • Momentarily replace the link for /bin/sh from dash (the Ubuntu standard) to bash:
  # cd /bin ; rm sh ; ln -s bash sh
  • Run the installation (via launchpad.sh)
  • Undo the shell switch done before, with:
  # cd /bin ; rm sh ; ln -s dash sh
  • After the installation, replace all the occurrences of #!/bin/sh with #!/bin/bash in all the script in the WebSphere directory:
find . -name \*.sh |\
    xargs perl -i.orig -pe 's|^#!/bin/sh|#!/bin/bash|'

Misc WAS hints

Profile management

  • pmt.sh (gui)
  • manageprofiles.sh (command line)

You can see the list of existing profiles/instance in the wsinstance.config file

Misc misc misc :-)

  • versionInfo.sh → WAS version
  • serverStatus.sh → server/node/dmgr status (started, stopped…)
middleware/was.txt · Last modified: 2009/02/25 15:11 by ap
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki