script or tool for info websphere configurations

Posted on 2008-11-05
Last Modified: 2013-12-11

To build a central information base for our network I'ld like to find a way to retrieve information from websphere applications, servers and dmgrs.

I want to be able to retrieve portnumbers, connectornames, quenames, etc, etc, etc,  . A bit like generating documentation I guess.

Does anyone know if a tool exists which can handle this? If not, can I script this via the commandlines and shellscripts (examples maybe?  ) ?

Our Websphere servers run on IBM AIX .
I am not familiair with Python or Jython, so these are not an option for me.

Question by:ehout
    LVL 1

    Expert Comment

    Checkout IBM Support Assistant tool.  There are agents that you can install that will collect and provide the information that you are looking for as well as a plethora of other very useful admin tools.
    LVL 41

    Accepted Solution

    What kind of information is it that you need?

    To obtain information about the version of product installed:


    To get details about the install & update history for the installation:


    To get the install & update history as an HTML file:


    To display more specific configuration information, you may need to get access to the configuration details using some wsadmin scripts:

    WebSphere Application Server (6.1) documentation:

    Scripting the application serving environment (wsadmin)

    For example, a script to display the configured ports might look something like:

    To use it, the command line would look something like:

    wsadmin -conntype none -lang jython -profileName Dmgr01 -f ..\scripts\
    import AdminConfig
    def showAsDict( configID ) :
      'Return a dictionary of the configID ) result.'
      result = {}
      try :
        # The result of the should be a string
        # containing many lines.  Each line of which starts and ends
        # with brackets.  The "name" portion should be separated from the
        # associated value by a space.
        for item in configID ).splitlines() :
          if ( item[ 0 ] == '[' ) and ( item[ -1 ] == ']' ) :
            ( key, value ) = item[ 1:-1 ].split( ' ', 1 )
            result[ key ] = value
      except NameError, e :
        print 'Name not found: ' + str( e )
      except :
        ( kind, value ) = sys.exc_info()[ :2 ]
        print 'Exception  type: ' + str( kind )
        print 'Exception value: ' + str( value )
      return result
    SEs = AdminConfig.list( 'ServerEntry' ).splitlines()
    # for each ServerEntry configuration ID
    for SE in SEs :
      SEname = SE.split( '(', 1 )[ 0 ]   # The name occurs before the '('
      print '''
    Server name: %s\n
    Port#|EndPoint Name
    -----+-------------''' % SEname        # Display the server name & headings
      # For the given server (SE) get the list of NamedEndPoints
      # Then, for each NamedEndPoint, display the port # and endPointName values
      NEPs = AdminConfig.list( 'NamedEndPoint', SE ).splitlines()
      for NEP in NEPs :
        NEPdict = showAsDict( NEP )
        EPdict  = showAsDict( NEPdict[ 'endPoint' ] )
        print '%5d|%s' % ( EPdict[ 'port' ], NEPdict[ 'endPointName' ] )

    Open in new window

    LVL 3

    Author Comment

    Wow...That's a whole lot of info. Thnx.
    Have holiday right now, but when back at the office will try this. Especially this portnumber thing would really help us. Would it also work for 6.0 and/or 5.x ?
    LVL 41

    Expert Comment

    Unfortunately not.

    It may work for version 6.0, but Jython as a scripting language isn't supported until version 6.0, and has changed a bit (for the better) from 6.0 -> 6.1

    For version 5.x, you would have to use Jacl as a scripting language:

    Deploying and managing using scripting (v 5.1)
    LVL 41

    Expert Comment

    Thanks for the grade and points.

    Good luck & have a great day.
    LVL 3

    Author Comment

    lol... didn't expect it anymore, right? Been away a long time from ee, sorry.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
    Hello, As I have seen there a lot of requests regarding monitoring and reporting for exchange 2007 / 2010 / 2013 I have decided to post some thoughts together and link to articles that have helped me. Of course a lot of information you can get…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now