Question : Jython scriopt changes

http://www.experts-exchange.com/Software/Server_Software/Application_Servers/Java/IBM_Websphere/Q_23195856.html?sfQueryTermInfo=1+10+jython+script

I downloaded the admin2.py , When i executed it , it was list al the cluster , Data source, servers etc I wanted a script for specif cluster , specific data source and specif server

Answer : Jython scriopt changes

Please explain what it is you want.

The script file referred (attached) to that question is a collection of Jython routines.

You want to list all of the clusters?

Start an interactive wsadmin session:

- open a command prompt
- "cd" to the /bin directory, or to the bin directory associated with
   a particular profile
  e.g., cd C:\IBM\WebSphere\AppServer\bin
  or,    cd C:\IBM\WebSphere\AppServer\profiles\AppSrv01\bin
- Start the wsadmin interactive session

wsadmin -conntype none

What output do you get when your execute:

print AdminConfig.list( 'ClusterMember' )

Is this what you want?

What about:

print AdminConfig.list( 'DataSource' )

and what about:

print AdminConfig.list( 'Server' )
Random Solutions  
 
programming4us programming4us