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

If it possible to access AdminConfig in the Liberty Profile (non ND)

Is it possible to access AdminConfig.getid inside the WebSphere Liberty Profile (non ND), just pure Liberty profile, or even Base version? Any particular jars needed?
meso_2600
  • 1,940
  • 5
  • 25
  • 50
0
votes
1 answer

Exception while thread dump generating using wsadmin on linux

I am trying to generate thread dumps using websphere7 on linux, by trying to execute: $AdminControl invoke Server1 dumpThreads But I am getting this Exception: WASX7015E: Exception running command: "$AdminControl invoke Server1 dumpThreads";…
0
votes
1 answer

Jython receiving Invalid attributes specified for type "ApplicationDeployment" -- "sessionManagement" scripting exception

The below jython script attempts to modify cookies settings at enterprise application level in Websphere 7. However, I get the following exception when running it: exception information: com.ibm.ws.scripting.ScriptingException: WASX7080E: Invalid…
0
votes
0 answers

AdminConfig.showAttribute from Java Code

I want to run the following wsadmin command from my java code. AdminConfig.showAttribute('lp1(cells/iap/nodes/iapnode/servers/server1/server.xml#ListenerPort_1447149354628)', 'stateManagement') I saw that there is a CommandMgr with AdminCommands,…
user2244536
  • 67
  • 2
  • 10
0
votes
1 answer

WSAdmin - Admin App Install: Random string is appended to the Application name

I am working on automation script to install a WAR in the Websphere using WSADMIN console. It leaves random string at the end of the application name. If the application name is 'test.war', name appears as 'test.war1525e76b1cb'. Has anyone come…
Vignesh
  • 53
  • 1
  • 7
0
votes
1 answer

updating multiple modules of an application with a single wsadmin script

Environment AIX, websphere6.1 I am trying to update an existing java application using wsadmin script. I am able to update the application if i am updating single module(abc.war) of an application(xyz.ear) by using the following command …
chanukhya bachina
  • 171
  • 1
  • 3
  • 16
0
votes
1 answer

Wsadmin script for MailSession at server level

I'm not able to figure out how to create a Mail Session at server level. This is my calling script: WasLib.createMailSession("MY_MAIL_SESSION","mail/Emailer","smtp-myserver.com", "", "", "") This script existing script creates the mail session at…
Pat B
  • 1,915
  • 23
  • 40
0
votes
0 answers

Websphere, how deploy an ear keeping the administrator privilege for the application

I can successfully deploy MyApp to WebSphere 8.5 using certain jython script, but I can't start such application neither by admin console nor by jython commands due to WASX7017E: exception information: ADMN0022E: Access is denied for the…
Jim C
  • 3,957
  • 25
  • 85
  • 162
0
votes
1 answer

using variables in jacl and wsadmin

I am trying to use variables in install script in wsadmin on jacl. First I am specifying set nodeName [$AdminControl getNode] set cellName [$AdminControl getCell] Then in my script I want to use these 2 variables but for some reason it done want to…
rholdberh
  • 475
  • 1
  • 5
  • 19
0
votes
1 answer

How to load script when wsadmin shell is used

A system administrator has created a Python script called globalScript. py. What should the administrator do to ensure globalScript. py is loaded when the wsadmin shell is used? A. Compile globalScript.py to a Java class in the bin…
user3228633
0
votes
1 answer

Retrieve password for a given user in wsadmin

I am using jython script - wsadmin - admintask command for changing the password. However before that I need to check for current password of the user in WAS. Is there any way / command I can retreive the password of a given user from WAS using…
Harshal
  • 57
  • 2
0
votes
1 answer

How to list all component log detail level via jython script in Websphere (8.x)?

is it possible to list all currently (at runtime) available components for which you can change the log level? So you don't have to know the exact name beforehand for some deployed application. E.g a command listing all available loggers for…
0
votes
2 answers

Changing java heapsizes for a websphere server using websphere and wsadminlib.py

Im trying to call a command from wsadminlib.py to change the initialHeapSize and the maximumHeapSize in a script. But unfortunately my jython (and general scripting knowledge) is still total newbie. Im using the call #Change Java Heap…
Sim
  • 11
0
votes
2 answers

AdminTask.listTCPEndPoints('abc(abc)') throws exception: ADMF0007E: target object is required

I'm working on deploying application to WebSphere 7 using python script and the script is throwing exception at this line:- AdminTask.listTCPEndPoints('abc(abc)') If I run the above command before I run the python script, it works fine. It gives me…
Saurabh Tyagi
  • 103
  • 1
  • 6
0
votes
1 answer

Accessing wsadmin objects via Jython

I'm trying to access the Admin objects via a Jython script in order to update a Maven app deployed to a WebSphere Application Server without having to march through the Integrated Solutions Console every time I make a change. My question is simple:…
rainydaymatt
  • 594
  • 3
  • 10
  • 21