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
3
votes
0 answers

WebSphere wsadmin ClassNotFound Exceptions

I'm trying to use wsadmin with Jython to deploy an EAR file. Before the actual deployment, I need to run a DB update using a Java class. I'm running into a ClassNotFoundException that isn't making sense to me. Background: The EAR file is exploded.…
3
votes
1 answer

Modify name space bindings using wsadmin Jython

The task is to modify namespace binding using wsadmin (Jython). I have several string bindings for scope server. I plan to list existing bindings; add / modify target binding. I can list them: for ns in AdminConfig.list( 'NameSpaceBinding'…
idobr
  • 1,537
  • 4
  • 15
  • 31
3
votes
2 answers

Pass a variable from Jython (wsadmin) to shell script

I am trying to pass a value retrieved from WebSphere using a Jython script called by wsadmin.sh to a variable in my caller shell script. The caller shell script (getValue.sh) would have: #!/bin/sh /opt/ibm/WebSphere/AppServerV70/bin/wsadmin.sh…
Joey Cote
  • 342
  • 5
  • 13
3
votes
2 answers

WebSphere 7 - Jython Version

Does anyone know of a way (using the java command or wsadmin, or......) to find out the current version of jython running behind wsadmin on a WebSphere Application Server 7.0.0.31 ND environment?
user3330451
  • 31
  • 2
  • 4
3
votes
2 answers

NameSpaceBinding and wsadmin

I am trying to create a StringNameSpaceBinding using the wsadmin tool of Websphere 6.1 Here are the steps i take set cell [$AdminConfig getid /Cell:cell/] $AdminConfig create StringNameSpaceBinding $cell { {name bindname} {nameInNameSpace…
Damien
  • 4,081
  • 12
  • 75
  • 126
3
votes
1 answer

How can 'Global security' 'Custom properties' be modified using jython scripting for 'WebSphere 7'?

I am using 'WebSphere 7 Application Server' in a clustered environment. I am attempting to use jython to script the configuration and setup. All well thus far. However, I have hit a road block. I cannot find a way to modify the 'Custom properties'…
3
votes
2 answers

WebSphere wsadmin jython - prompting for password

I am looking for a way to prompt for password (that is, no input echo). I am using jython in WebSphere's 7.0.0.19 wsadmin. I've looked for it - it appears to be possible with import getpass or import termios (but I get "no module named ..."…
user967710
  • 1,815
  • 3
  • 32
  • 58
2
votes
1 answer

Jython - module in sys.path, but "no module found"

I have some compiled Java classes on my sys.path (['.', 'D:\\PROGRA~1\\websphere_61\\base\\optionalLibraries\\jython\\Lib', 'D:\\program files\\websphere_61\\gmm\\scripts\\jython']) On my dev environment these can be used from Jython: from…
Synesso
  • 37,610
  • 35
  • 136
  • 207
2
votes
1 answer

How to refresh the Websphere configuration when changed from WSAdmin script?

I have a python script which creates bus destinations. I run the script from WSAdmin and it works fine, but the changes don't show up in the Websphere (WAS) console. If I logout from the console and then login again, I can see the changes. The…
DagR
  • 2,900
  • 3
  • 24
  • 36
2
votes
3 answers

Parsing command line options in Jython 2.1

I'm using Jython 2.1 for wsadmin scripting and want to find a better way of parsing command line options. I'm currently doing this: -> deploy.py foo bar baz and then in the script: foo = sys.arg[0] bar = sys.arg[1] baz = sys.arg[2] but would like…
blank
  • 17,852
  • 20
  • 105
  • 159
2
votes
3 answers

Websphere 7 SIB Queue: how to access queue depth wsadmin command?

I'd like to use the WSADMIN command that is part of WebSphere 7 to query the state of the queues on the system. Can anyone help me out? Thanks
jeff porter
  • 6,560
  • 13
  • 65
  • 123
2
votes
2 answers

Stop webserver on particular node using wsadmin (jython)

Is there any way to stop webserver on particular node using wsadmin? Using print AdminConfig.list('WebServer') I got the list of all webservers with coresponding…
mila002
  • 327
  • 3
  • 14
2
votes
1 answer

DeploymentDescriptorLoadException: dd_in_ear_load_EXC

I have a WebSphere enterprise app. Manual deployment in the IBM admin console works with no issue, but with the wsadmin scripts and jython, AdminApp.update('%APP_NAME%', 'app', '[ -operation update -contents %EAR_FILE% -usedefaultbindings…
Heinz
  • 913
  • 4
  • 12
  • 22
2
votes
2 answers

wsadmin getStatsObject not returning all of the metrics for JVMRuntime

I am writing a jython script that returns performance metrics for the JVMRuntimeModule. It is returning the following: HeapSize,FreeMemory,UsedMemory,UpTime,ProcessCpuUsage But not the following:…
fshimaya
  • 23
  • 3
2
votes
1 answer

How to set a string value containing spaces into MapWebModToVH when using wsadmin

Currently I am trying to deploy an EAR file with wsadmin.sh. Using the following command: wsadmin.sh -lang jython -conntype NONE -c "AdminApp.install('/tmp/Sample1.ear', '[ -appname Sample1 -contextroot /Sample1 -MapWebModToVH [[ Sample1…
Swifting
  • 449
  • 1
  • 5
  • 19
1
2
3
16 17