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
0
votes
2 answers

Mapping resources to an application already installed

I am fighting with a script in jython/python for Websphere Application Server 8.5 which has to map some resources, like Datasource, MailSessions, Queues and Activation Specifications, to an installed application. I found on IBM Redbooks and IBM…
adimoise91
  • 558
  • 1
  • 7
  • 26
0
votes
2 answers

java.lang.IllegalArgumentException: WASX7122E: Expected "-" not found

I can update the application manually by this command AdminApp.update('CUSWS', 'app', 'the options below') but when I update from the jython script appName = '\'' +appName+ '\'' updatetype = '\'app\'' appOptions = \'' +options+…
drhojun
  • 41
  • 5
0
votes
1 answer

WSadmin TypeError: sequence subscript must be integer or slice using AdminConfig.modify

I am trying to create a script in Jython to migrate some applications from was 7 to was 8.5. After I create the Data Source I am stuck for about 2 hours with this error: TypeError: sequence subscript must be integer or slice The problem appear at…
adimoise91
  • 558
  • 1
  • 7
  • 26
0
votes
2 answers

How to use "adminClient.addNotificationListener" in a Jython script?

Here's the documentation: http://publib.boulder.ibm.com/infocenter/wsdoc400/v6r0/index.jsp?topic=/com.ibm.websphere.iseries.doc/info/ae/ae/tjmx_develop.html The problem is that this doesn't work: import javax.management.ObjectName as…
the_marcelo_r
  • 1,847
  • 22
  • 35
0
votes
1 answer

Export EARs from Websphere Application Server with resources

I need a little help from you. I have to migrate several applications from WAS 7 to WAS 8.5 with a script in Jython using wsadmin. The thing is that on WAS 7 there are a lot of Datasources and i only need to import the Datasources that are used by…
adimoise91
  • 558
  • 1
  • 7
  • 26
0
votes
1 answer

Creating a new keyStore file with Webspere wsadmin

How do I create a new keystore file with wsadmin tool in websphere. I tried this command AdminTask.createKeyStore('-keyStoreName -keyStoreType PKCS12 -keyStoreLocation
user2070649
  • 103
  • 1
  • 10
0
votes
1 answer

How to get WSADMIN prompt in Connections 5

sorry for the noob question but I just cant get the wsadmin prompt to appear in the cmd window. I have navigated to the Deployment Manager dir and then the bin dir. I type the following D:\IBM\Websphere\AppServer\profiles\Dmgr01\bin>wsadmin -lang…
NotesNut
  • 49
  • 9
0
votes
1 answer

IBM Websphere - wsadmin mandatory parameters to pass

I Had server.bat file to run server.py file through wsadmin. It's an existed file/code and didnt have much knowledge in either python and WAS server. I used to run by - %BIN-DIR% wsadmin -lang jython username %USER% password %pass% %ENV%…
SanthoshP2888
  • 23
  • 1
  • 5
0
votes
2 answers

Fetch JMS configurations and property values for each individual servers in WAS using wsadmin script

I need to fetch JMS configurations and property values for each individual servers of WAS using wsadmin script. Is there any IBM standard jython or jacl script is there to fetch these values ? If not, can somebody guide me how to procceed.
user3772505
  • 75
  • 1
  • 9
0
votes
2 answers

Change "Transaction log directory" In WAS 8.5 Using wsadmin

I need to make a few changes to the "Transaction service" section of a bunch of WebSphere application servers. I was hoping to script things using wsadmin. One of the properties that I want to change is the "Transaction log directory". I tried to…
Tom Purl
  • 519
  • 4
  • 20
0
votes
2 answers

Jacl - What is the proper syntax for variable use in an option specifier

In attempting to run the following command in a Jacl script (with $APPNAME having been set prior to this call): $AdminApp install $EARFILE {-nopreCompileJSPs -distributeApp -nouseMetaDataFromBinary -nodeployejb -verbose -appname $APPNAME…
M. Khan
  • 77
  • 1
  • 9
0
votes
1 answer

Switch off wasx7303i message ("The following options are passed...") when using wsadmin in websphere AS

we are using wsadmin scripts to configure the websphere profile. And we configure Data sources during profile configuration, and to configure DS we pass the database password. Problem in that the wsadmin tool printing the message wasx7303i: "The…
serg
  • 1,003
  • 3
  • 16
  • 26
0
votes
2 answers

Substring function in Jython

I am using Jython for wsadmin scripting for one of my tasks. -c "test = 'project' " + -c "edit = test[1:]" + -c "print edit" However when I execute the piece of code , I get the following error Traceback (innermost last): (no code object) at line…
ssdimmanuel
  • 448
  • 10
  • 29
0
votes
2 answers

Jython How to remove characters a string

This is a WebSphere related question. I am trying to turn this command into variables AdminConfig.modify('(cells/taspmociias204Cell01/clusters/cam_group|resources.xml#J2EEResourceProperty_1324400045826)' I've found that this…
Blogger11
  • 55
  • 1
  • 2
  • 11
0
votes
2 answers

Is is possible to clone a application server in Websphere

I have deployed an application on server1 in Websphere 8.5.5 Can I clone it to create server2 with the same application deployment and datasources.
Debajyoti Das
  • 2,038
  • 4
  • 34
  • 66