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

Wsadmin connect to remote Profile, ADMA0043E exception

I am trying to install an application on websphere using wsadmin: AdminApp.install('D:\work\my.ear',['-cluster', 'Vivaldi', '-MapWebModToVH', [['.*', '.*', 'default_host']]]) and get en error: ADMA0043E:…
AlexOk
  • 35
  • 5
0
votes
1 answer

Use variable in AdminApp.update() function in WAS wsadmin

I'm not able to use a string variable inside AdminApp.update() function that contains the value of sys.argv[0] (EAR filename) I've tried with %s and then add %(APP_NAME) at the end but it doesn't work. I'd like to use the variable…
jmbravo
  • 1
  • 2
0
votes
1 answer

How to set custom HTTP URL prefix with wsadmin Jython script

I want to write a jython-script that sets Enterprise Application Parameters after deployment. Especially change the "HTTP endpoint URL Information" for an ear-file. In Websphere admin-console I do this by selecting Applications > WebSphere…
0
votes
1 answer

WASX7129E: Cannot create objects of type "Property" in parents of type "DescriptiveProperty"

I am using wasdmin shell and jython lang for setting properties in WAS9. Actually I have created an automated process with several shell and jython scripts which helps my application setup. While using AdminConfig.create(), it throws below…
Manpreet
  • 125
  • 3
  • 11
0
votes
1 answer

Jython - How to get the path of the executed script

I've found many answer about the python way but what I found isn't working with jython. I'm running a jython script using the WebSphere interpreter wsadmin -lang jython -f /path/to/script I'd like to know the path of the script im running. This…
Patrick
  • 3
  • 1
  • 2
0
votes
1 answer

Write to the file output of wsadmin scripting

I want to redirect results out to a file without leaving the wsadmin command line. Jyhton code : dsid = AdminConfig.getid('/DataSource:IG.JASPER.DS/') AdminControl.testConnection(dsid) I find something like below. but I am not sure really Can…
Arbelac
  • 1,698
  • 6
  • 37
  • 90
0
votes
1 answer

Jython - JDBC DS settings

I want to update to true an existing property called "SendStringParametersAsUnicode" in custom properties on my datasource. 2- I want to set maximum connections to 50 within connection pools in data source dsid =…
Arbelac
  • 1,698
  • 6
  • 37
  • 90
0
votes
1 answer

IBM Websphere - can you extract a Application Properties file?

When I run the following command: AdminTask.extractConfigProperties('[propertiesFileName /tmp/hrLister.props --configData Applicaition=HRListerEAR]') I get: Configuration data Application=HRListerEAR specified for command extractconfigProperties is…
warhansen
  • 704
  • 1
  • 8
  • 22
0
votes
1 answer

How do I get that a WebSphere application has been installed in Jython?

When I deploy an .ear application in WebSphere I have a problem in installing the shared libraries. I use a workaround to solve my issue like that [... code to install the application] && sleep 60 &&…
giotto
  • 532
  • 3
  • 15
0
votes
0 answers

Issue Multiple Commands on a Batch File

I would want my batch file to execute 3 commands. This is my code: CALL wsadmin.bat sadmin -conntype %conType% -host %hostName% -port %soapPort% wsadmin set jvmProcessDef [$AdminConfig getid…
Zaveid
  • 21
  • 5
0
votes
1 answer

Run a Bat File on Java with a command line for the bat file

I'm trying to run wsadmin as administrator on Java and I would like to input the jacl script with it as well. How do I do that? This is my current code. Runtime rt = Runtime.getRuntime(); rt.exec("cmd /c start…
Zaveid
  • 21
  • 5
0
votes
1 answer

How to Change the Class loader order to parent last in ManageModules using IBM JAVA API?

I want to change Web Application's class loader order to PARENT_LAST using WebSphere Java Administration API. Enterprise Applications > MyAppEAR > Manage Modules > MyApp.war How to get the attribute to set using ConfigService. Tried the below code…
kusumat
  • 319
  • 3
  • 9
  • 21
0
votes
1 answer

websphere/wsadmin: how to specify third party provider in queue

In wsadmin, the command AdminConfig.create("WASQueue"... is to create MQ Queues and the command AdminTask.createSIBJMSQueue is to create JMS queues using the default JMS provider in Websphere... However, how do we create a queue using a third party…
user27478
  • 121
  • 1
  • 5
0
votes
1 answer

Error Running Jython Script using WSADMIN

I'm trying to write a simple script to restart the WebSphere application server. Below is my script : ManagedProcessList=AdminControl.queryNames('WebSphere:type=Server,*') for i in range(len(ManagedProcessList)) : …
Rajasekhar
  • 25
  • 1
  • 7
0
votes
1 answer

Is it possible to update application build level (version) using wsadmin

Is it possible to update the build level (version) for a deployed application in Websphere 8.5 using wsadmin AdminApp? I am aware that its an 'uneditable' field in admin console, and that the build level is read from the implementation-version…
M I P
  • 867
  • 10
  • 25