Artwork implying World Wide Web Architecture

Brain Dead Short (but useful) Scripts

Part of the WebSphere Application Server in Plain English Series
Most recently modified on 2008-06-23
Back to home pageBack to articles page

There are quite a few one line scripts that an administrator can use to obtain useful information about a WebSphere Application Server. Here are some useful one line scripts. To run them, type

wsadmin -lang jython -conntype NONE -c "print ****** "

Replace the ****** above with one of the one line scripts below

(If your deployment manager server is running, you can omit the -conntype NONE)

(If your default language is already set to Jython, you can omit the -lang jython)

scriptdescription
AdminTask.reportConfiguredPorts()Lists every server in your cell. Shows all the ports each server uses
AdminTask.reportConfigInconsistencies()Checks the configuation repository and reports any structural inconsistencies
AdminApp.list()Lists every application installed in your cell
AdminApp.view( 'appName' )Replace appName with one of the names returned by AdminApp.list(). The name must be surrounded by quotes
AdminTask.generateSecConfigReport()Shows every setting related to security in your entire cell. Shows the current value of the setting. Shows the menu path through the Admin Console to that setting. The printout is a little confusing at first, but it is very useful once you get used to reading it.

Photo of the author

Arthur Kevin McGrath

Bio:

The author is an engineer with the consulting firm, Contract Engineers. He has consulted and lectured extensively since 1987 about the infrastructure that makes electronic commerce possible

To schedule a speaker at your location, write speakers@edu4eng.com
To inquire about consulting for your company, write consultants@edu4eng.com
To inquire about training for your company, write training@edu4eng.com