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

Trying to call wsadmin objects from a method that is defined in another file gives a NameError

I have a script named test.py which is the main script that imports all definitions from def.py. def.py def test(): print AdminApp.list() #Prints the applications installed #EndDef and the test.py import sys from def import * test() This throws…
Husain Khambaty
  • 740
  • 1
  • 9
  • 22
0
votes
1 answer

Jython script to collect configuration details of IBA WAS 8

I am a newbie to both Jython scripting language and IBM WAS. I am trying to write a small piece of script which will give me the configuration details like list of installed applications and list of used ports of IBM WAS 8. I have been trying to…
Shiji
  • 23
  • 1
  • 6
0
votes
2 answers

Running .jacl scripts on WebSphere Liberty Profile

How do I run a .jacl script against a WebService Liberty Profile server? I am told to run: wsadmin.sh -conntype none -f setupWAS.jacl But I don't think wsadmin is available in Liberty Profile.
Paul Robinson
  • 423
  • 1
  • 5
  • 11
0
votes
1 answer

Adding custom properties to resource environment entries using wsadmin

I'm able to add a resource environment entry using the following wsadmin command: AdminResources.createResourceEnvEntries("myNode","myServer","ConfigurationProvider", "test", "test/zmtest") However, I'm not sure how to then add custom properties to…
Zack Macomber
  • 6,682
  • 14
  • 57
  • 104
0
votes
2 answers

not able to create datasource via jython

jdbc = AdminConfig.getid('/JDBCProvider:Oracle JDBC Driver/') AdminConfig.createDatasource(jdbc, '[-name %jdbcDS% -jndiName jdbc/%jdbcDS% -dataStoreHelperClassName com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper…
0
votes
1 answer

IBM Websphere - exception in wsadmin script for AutoDeployment

I'm trying to write a simple Jython script to AutoDeploy a web application on the IBM Websphere Application Server. However, I'm a novice in Python, so I can't uderstand, why do I become the following Error: WASX7209I: Connected to process "dmgr" on…
Andrey Sapegin
  • 454
  • 8
  • 33
0
votes
1 answer

wsadmin upload file to war

is it possible to upload file using wsadmin (jacl/jython) to webapp module? (fe app.war/custom/uploadedfile.txt)? I'm using wsadmin as standalone and want to do some postinstall step before start of application. websphere 7 thank you
bilak
  • 4,526
  • 3
  • 35
  • 75
0
votes
1 answer

Is there a method to determine if wsadmin has been invoked using conntype=NONE within the jython shell/script?

I am calling a custom script using wsadmin.sh to fetch some server information. I am connecting to a standalone server (not clustered). When fetching the server information, I also need the server status. If the server is started, I have no issues,…
Husain Khambaty
  • 740
  • 1
  • 9
  • 22
0
votes
2 answers

How to install applications to a WebSphere 7.0 cluster using wsadmin?

I want to deploy to all four processes on a Websphere cluster with two nodes. Is there a way of doing this with one Jython command or do I have to call 'AdminControl.invoke' on each one?
blank
  • 17,852
  • 20
  • 105
  • 159
0
votes
1 answer

WebSphere 7 using one node of cluster by wsadmin

I want to do postdeploy script to add only one properties file to application war. I know that I can add it by AdminApp.update and it works on one node server. Is it possible to do this on cluster? I mean, that I want run AdminApp.update script for…
bilak
  • 4,526
  • 3
  • 35
  • 75
-1
votes
1 answer

How to restart remote Websphere Application Server 7?

How to restart remote Websphere Application Server 7? e.g. with helps of wsadmin.
coms
  • 469
  • 15
  • 38
-1
votes
1 answer

Jython script to terminate all JVMs on Websphere Application server

I have a Websphere cell with 6 nodes(1 dmgr+5 nodeagents) and 30 jvms(5 jvms on each node). I want to kill all the 30 jvms by login into dmgr node server using wsadmin.sh from /opt/WebSphere/AppServer855/profiles/dmgrprofile/bin/. Could I have a…
Kumar
  • 23
  • 8
-1
votes
1 answer

Configuring settings for last paricipant support wsadmin/websphere

Recently i've came to an issue to configure Last Participant Support on deployed application. I've found some old post about that: https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014090728 On server…
lamiuks
  • 17
  • 4
-1
votes
2 answers

How to get input from user in IBM jacl scripting?

`I need to get the input from the user and display the value using IBM wsadmin scripting as jacl scripting language. Thanks in advance
Suganthan Raj
  • 2,330
  • 6
  • 31
  • 42
-1
votes
1 answer

IBM Websphere - wsadmin script for AutoDeployment

Can you please look into the below issue? import time node = AdminConfig.getid('/Node:node111/') print node print "sss" +AdminControl.queryNames('WebSphere:type=Server,*') cell = AdminControl.getCell() print " Cell name is --> "+…
user1251973
  • 341
  • 3
  • 7
  • 16
1 2 3
16
17