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

How to set application name and installation path while installing by AdminApp?

Just tried this thing for a day or two, able to do the installation using AdminApp command, but still got some problem about application name and installation path. Reference I look from IBM said AppName is defined by display name, I think that…
user6309529
  • 153
  • 1
  • 3
  • 16
1
vote
2 answers

Migrating jython wsadmin scripts from Websphere 6.1 to 7, and passing arguments to a child script

I have a few wsadmin-jython questions: If I write a bunch of jython scripts for webSphere v6.1, will they all still work on websphere v7? (backwards compatibility) If I wish to call another jython script - can I pass sys.argv arguments? Thank you…
ComputeALot
  • 101
  • 1
  • 3
1
vote
1 answer

IBM WebSphere: How to map an application to multiple clusters using wsadmin scripting?

I am trying to automate the deployments of an application which is mapped to two clusters in a cell using wsadmin scripting. But no matter how much I try, the application is getting mapped to only one cluster. As a result the application is not at…
CK5
  • 1,055
  • 3
  • 16
  • 29
1
vote
1 answer

[WebSphere]: Items are not properly appending to a list and regex is failing

We are trying to stop a particular app without manual intervention through a combination of AdminApp.list() and regex. The end target is: Ease of USE. A user must be able to stop an application without logging-in to a WAS console or modifying the…
CK5
  • 1,055
  • 3
  • 16
  • 29
1
vote
2 answers

passing argument to jython used in wsadmin.sh dynamically

I need a help in wsadmin.sh scripting along with jython. I am creating a script to provide console access to the users via wsadmin.sh I am able to make it work if I hardcode the user name details inside the consoleacces.py file but My requirement is…
1
vote
2 answers

How to uninstall an application that is already stopped

The problem is that if the application is "stopped" this will return nothing. But i still want to uninstall it anyway. I don't know the application name, i'm getting all applications installed on a Server and then uninstalling them all. apps =…
leSourCil
  • 13
  • 2
1
vote
0 answers

How to import Java class into Jython?

I am writing a Jython script and like to use java in there. I started by just importing the java class which locates in the same directory as the jython script. but I am getting ImportError: no module named Beach. I know the java class has to be in…
Nasrin
  • 11
  • 1
1
vote
1 answer

jython wsadmin script change to dmgr jvm

I have a script that sets a Custom JVM Property at each of the node agents, but I also want it to do the same at the dmgr level. I'm having a hard time getting the id for the dmgr jvm. Here's my nodeagent script. I'm really struggling with the…
Oscar H
  • 11
  • 3
1
vote
1 answer

wsadmin script/command arguments to modify auth data entries

Can someone help me how i can update an authentication data entry using wsadmin without logging into was console as i have too many data sources and doing them manually is a time taking procedure. Below is the far that i can get to. Not sure how to…
avin
  • 21
  • 1
  • 2
1
vote
1 answer

NameError: True when using boolean values in jython on wsadmin cli utility

Writing a jython script for wsadmin, it doesn't seem possible to use boolean values as this simple example shows. app-stop.py: isTrue = True print isTrue Call: wsadmin.bat -lang jython -username user -password pw -f D:\app-stop.py Result:…
Daniel
  • 968
  • 3
  • 13
  • 32
1
vote
1 answer

Pass arguments to jython script in wsadmin

I want to use wsadmin for CI to reload applications. For this purpose, I wrote a jython script. But I need to pass the application (e.g. Homepage) to the python script, so that it knows which app to restart. I tried wsadmin -lang jython -username…
Daniel
  • 968
  • 3
  • 13
  • 32
1
vote
1 answer

How to add virtual-host and how to change context root WAS DEV Maven

i tried to create Maven project for WAS Liberty server. mvn archetype:generate -DarchetypeGroupId=net.wasdev.wlp.maven -DarchetypeArtifactId=liberty-archetype-ear -DarchetypeVersion=2.2 -DgroupId=com.test -DartifactId=test…
Suresh Babu
  • 25
  • 1
  • 2
  • 8
1
vote
1 answer

List all my deployed applications in Websphere and their respective ports

I want to administrate some things in my WebSphere Application Server using only command line, but I'm having troubles to get a list of my deployed apps and ports. What I want: I need to get a list of my depĺoyed apps and their ports. I'm new in the…
James
  • 1,653
  • 2
  • 31
  • 60
1
vote
1 answer

WebSphere (wsadmin) Connect to remote Deployment Manager Profile password-less

I'm able to connect to a remote WAS 8.5.5 deployment manager profile after supplying the user/pass from my local WAS 8.5 install. Given below is a typical wsadmin command... ./wsadmin.sh \ -lang jython \ -conntype SOAP -host myRemoteWASHost -port…
MaxGrand
  • 113
  • 1
  • 9
1
vote
1 answer

Creating cluster member removes some configuration

I'm using WAS ND and want to have dmgr profile with federated managed profile app. I am creating cluster using: AdminTask.createCluster('[-clusterConfig [-clusterName %s -preferLocal true]]' % nameOfModulesCluster) Next, I'm configuring my WAS…
deem
  • 1,252
  • 1
  • 19
  • 38