Questions tagged [wsadmin]

wsadmin is a command shell for administrating IBM Websphere Application Server.

Wsadmin is a command shell for administrating the IBM Websphere Application Server, it takes its name from the batch/script file that is actually used to invoke the shell.

Commands can be entered interactively, or ran as a file based script that Wsadmin receives as an argument.

Wsadmin can interpret commands written in Jacl or Jython, although Jacl has been deprecated with WebSphere Application Server 6.1.

255 questions
2
votes
1 answer

Misleading error message after unhandled exception in wsadmin script

I'm developing an automation framework and I've experienced strange behavior of wsadmin tool. The problem is reproducible in WAS 6.1, 7.0 and 8.0 (I haven't tried with was 8.5). I'm wondering if this is a bug in wsadmin (quite strange that nobody…
Marcin Płonka
  • 2,840
  • 1
  • 17
  • 17
2
votes
1 answer

Unable to call the os.environ from wsadmin using jython in WebSphere 6.x?

I am trying to make a generic script for WebSphere 6.0, 6.1.x and 7 environments. What I need is to read some environment variables of my own that I need to use in the script for which I have been using the os.environ.get['MYVAR']. It works find on…
Husain Khambaty
  • 740
  • 1
  • 9
  • 22
2
votes
1 answer

List active sessions with wsadmin

I'm trying to write a script with wsadmin that will retrieve the total amount of active sessions. I've looked around the web and haven't found anything really helpful. Is there a way to do this with the wsadmin tool? Thanks.
Ryan Schulze
  • 87
  • 2
  • 10
2
votes
2 answers

wsadmin Web authentication behavior

I've been scouring the IBM docs to try to find this but I keep coming up empty. Does anyone know the related script/command using wsadmin to configure the 'Web authentication behavior' for a WAS 7.0 setup? The setting I'm looking at can be reached…
FGreg
  • 14,110
  • 10
  • 68
  • 110
1
vote
2 answers

How to get current application state from wsadmin console for WebSphere 7.0

folks, How I can get current status for application deployed on websphere (such as started/stopped)? I know, that I can use AdminControl.completeObjectName('type=Application,name=myApplication,*') but if I just invoked start it is very much likely…
RomanB
  • 53
  • 1
  • 6
1
vote
2 answers

How to get newlines in classpath for JMSProvider using wsadmin

I want to create a JMSProvider object with a custom classpath. Here's how I'm doing it in jython: ... classpath = "a.jar:b.jar:c.jar".replace(":", "\n") properties = [ ['name', name], ['description', description], …
Synesso
  • 37,610
  • 35
  • 136
  • 207
1
vote
1 answer

What is the WebSphere hierarchy of object types?

The documentation for WebSphere's wsadmin tool is pretty dire. I'm automating deployments and constantly coming across the following scripting exception: WASX7129E: Cannot create objects of type "JAASAuthData" in parents of type "Node" Replace…
Synesso
  • 37,610
  • 35
  • 136
  • 207
1
vote
2 answers

List currently active websphere variables in server using wsadmin

how can I list using the wsadmin tool the currently active websphere variables and its values in a node/server ? Additionally, is there a way to filter the results using regular expressions ? Thanks
xain
  • 13,159
  • 17
  • 75
  • 119
1
vote
1 answer

wsadmin: How to inspect existing resource references?

With $AdminApp view -MapResRefToEJB it is possible to list the resource references defined for a deployed EJB module. However, the result of that command is plain text (that in addition may be localized). To extract that…
Andreas Veithen
  • 8,868
  • 3
  • 25
  • 28
1
vote
2 answers

get partial running status of application using jython

Hi I need to know if the application is running partially. using the following command I am able to get info if the application is running. serverstatus = AdminControl.completeObjectName('type=Application,name='+n1+',*') print serverstatus Is…
Snehan Solomon
  • 432
  • 3
  • 17
1
vote
0 answers

NullPointerException while trying to create IBM websphere SIBus

I'm trying to create Websphere SIBus using the admin console or a script and it fails in both cases. This is how I'm trying to create it using wsadmin wsadmin>params = ["-bus", "test", "-busSecurity",…
jsmin
  • 372
  • 2
  • 12
1
vote
0 answers

enable PMI Submodules with wsadmin

I'm stuck with my script. I am trying to set PMI submodules (such as f.ex JVM>GC) through a python script. I am able to set the PMI Modules themself, but not their submodules. I already read that some of the submodules can only be changed with JVM…
jeko
  • 11
  • 2
1
vote
1 answer

Custom properties (J2EEResourcePropertySet) of datasource do not appear when using UserDefined JDBC provider to create datasource trough wsadmin

So basically i have created user-defined JDBC provider through wsadmin: AdminTask.createJDBCProvider('[-scope Cluster=MyCluster -databaseType User-defined -providerType "User-defined JDBC Provider" -implementationType User-defined -name "MSSQL JDBC…
lamiuks
  • 17
  • 4
1
vote
2 answers

wsadmin jython script call method in script

Is there a way to call specific functions in a jython script through the wsadmin program? # BusAndBusMemeber.py def devCreateBus: AdminTask.createSIBus('[-bus intjmsbus -description [SIBus intjmsbus] -busSecurity false]') …
kyoung
  • 15
  • 2
1
vote
1 answer

New to Jython Need help extracting data from file

I am new to scripting and programing in general. I am trying to run WebSphere command line tool, wsadmin, and it keeps failing. I am looking for answers for 2 questions about the following code: **import sys import os import…