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
1 answer

WSADMIN: Invalid command "print"

I'm trying to run a print commant using websphere wsadmin and it gives me the error " error while eval'ing Jacl expression: invalid command name "print"", although the command is totally correct. As in the screenshot. How to solve this problem?
jsmin
  • 372
  • 2
  • 12
0
votes
1 answer

Best way to pass a file path containing '\t' from Powershell script as argument to a Jython script

I'm using Powershell as the main script language on our Windows servers, and for this particular case I use it to trigger a Jython script that is run by wsadmin (WebSphere command line). One of the arguments is the full path to a file, all fine,…
rhellem
  • 769
  • 1
  • 11
  • 26
0
votes
1 answer

How to create script to import and delete personal certificate in websphere application server using wsadmin?

I have one old certificate and one new certificate in my keystore hence i want to remove the old cert by using the wsadmin script and also import the new one using wsadmin script. i have listed the cert using this command - Command to List certs…
Rancho
  • 15
  • 5
0
votes
1 answer

Enabling NCSA access log with wsadmin scrpting

How can someone enable NCSA access log by using wsadmin script. To view the settings page for an HTTP channels in WAS console we follow these steps: Servers > Server Types > WebSphere application servers > server > Web Container Settings > Web…
nurub
  • 333
  • 2
  • 11
0
votes
2 answers

A resource already exists

I have an XML list of queues. I configure them without problems with python script and wsadmin console. Now I want to add new queues to the existing list and create them. While creating, console recognizes that queues with JNDI names already exist,…
0
votes
0 answers

How to run commands via wsadmin from PowerShell?

I am creating a powershell script to do a ripple start for a cluster hosted on Windows websphere install. For testing I was using this: cmd.exe /k '"E:\u01\was85\bin\wsadmin.bat" -lang jython -c "print AdminApp.list()"' This works fine and returns…
markyodo
  • 5
  • 2
0
votes
1 answer

How to read MQ base queue name using wsadmin script?

I want to read bas queue names inside the queues, have written code but which only able to read the last queue name instead of all. Below is a code queueList = AdminConfig.list('MQQueue', AdminConfig.getid('/Cell:' + AdminControl.getCell() +…
Rancho
  • 15
  • 5
0
votes
1 answer

How to start all the appservers using wsadmin jython script?

I am trying to start all the appservers managed by a DMGR using Jython, I have come up with this script but it is not working. Can anyone guide me what could be wrong here. server = AdminConfig.list( 'Server' ); mbean = AdminConfig.getObjectName(…
VikasB
  • 1
0
votes
0 answers

websphere - wsadmin tool WAR deployment - META-INF/was.module (No such file or directory)

I am running the wsadmin tool remotely while trying to install WAR file getting below exception. In case of EAR deployment Install or update, It's Okay com.ibm.websphere.management.application.client.AppDeploymentException:…
Asif Bhutto
  • 3,916
  • 1
  • 24
  • 21
0
votes
1 answer

wsadmin with jython script gives error AttributeError: 'javapackage' object has no attribute 'SEC_SEGMENT'

I am running a jython script with wsadmin commands. It was running fine, until in a new unix env, it stopped working with following error: AttributeError: 'javapackage' object has no attribute 'SEC_SEGMENT' my test script looks like this: …
Soumali Chatterjee
  • 309
  • 1
  • 4
  • 13
0
votes
1 answer

Modify the default WorkManager in WebSphere 7 using a wsadmin script

I want to raise the maximum number of threads in the default work manager's thread pool using a wsadmin (Jython) script. What is the best approach? I can't seem to find documentation of a fine-grained control that would let me modify just this…
sho222
  • 722
  • 1
  • 6
  • 14
0
votes
1 answer

How do you automate setting the preferred coordinator servers in Websphere Application Server using Jython scripts?

We are trying to automate the "Preferred Coordinator of Servers" JVM list using Jython code and running it with the wsadmin utility. The manual method is to login to the Admin Console and select Servers > Core Groups > Coure group settings >…
0
votes
1 answer

How to customize customized properties for WebSphere using wsadmin with values in non-English characters

I am trying to create jython script that will load list of properties and will customize the server-> JVM -> custom properties. I managed to create a script using the AdminConfig tasks, the problem is that some of the values contains non-English…
Eyal Goren
  • 217
  • 4
  • 15
0
votes
1 answer

WebSphere wsadmin testConnection error message

I'm trying to write a script to test all DataSources of a WebSphere Cell/Node/Cluster. While this is possible from the Admin Console a script is better for certain audiences. So I found the following article from IBM…
dag
  • 1,133
  • 12
  • 25
0
votes
1 answer

Is there a way to List the all Server status of Websphere from different hosts?

I'm trying to create a script which will display all JVM status. so far, i've created a script which basically calls serverStatus.sh and is then run from different hosts to get status of each JVM from different machines. then the script puts it in a…
Roo-Gi
  • 1
  • 1
  • 2