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

Jython script to create oracle datasource in Websphere

The below code creates the datasource sucessfully but there is an exception when test connection is called. But when i restart the server and use the Test connection in console it works. How to avoid server restart and make the test connection work…
Vishnu
  • 1,011
  • 14
  • 31
1
vote
1 answer

Create DataSource for DB2 Provider using wsadmin (Websphere Application Server 8.5)

I have a script which create a Data Source using a DB2 JDBC Provider in Websphere Application Server 8.5. So I am fighting with an error while running the script and I need some help pls. My script: def createDB2(list): print 'Creating DB2 Data…
adimoise91
  • 558
  • 1
  • 7
  • 26
1
vote
1 answer

websphere Jython scripting : querying custom properties of activation specifications

how can I iterate on custom properties of Activation specification ? In fact I want to get the value of "WAS_EndpointInitialState". asList = AdminConfig.list('J2CActivationSpec').splitlines() for as in asList: asName =…
imLsne
  • 13
  • 3
1
vote
1 answer

How to get properties of Authentification Alias on WAS 7 using wsadmin

I created a script in Jython which extracts some properties of a Data Source from WAS 7. One of theese properties is the Authentification Alias. I know that the password is crypted, but project has a semididactical purpose so the focus is on…
adimoise91
  • 558
  • 1
  • 7
  • 26
1
vote
1 answer

WSAdmin Error Creating SOAP Connection

When I run the following command it fails with the error at the end. wsadmin.bat -wsadmin_classpath D:\MediaRepository\Install_Driver\Lib;D:\MediaRepository\Install_Driver\Lib\PasswordEncryption.jar \ -javaoption -Xms1024m -javaoption -Xmx1024m…
DES
  • 31
  • 1
  • 1
  • 7
1
vote
1 answer

Webpshere Application Server wsadmin script to disable cookies settings in a deployed application

I have several modules(say Mod1) under my deployed application's(say App) manage modules and for the modules Mod1 I have to do these things: Under General properties, 1. Check the box Override session management and click Apply. 2. Click the…
Tabber
  • 151
  • 3
  • 16
1
vote
1 answer

Will the IBM Websphere Application Server run the Python/Jython script without Python Interpreter installed

I am new to Python and IBM Websphere Application Server. I run a status.bat file which calls status.py file through wsadmin(provided username, password and status.py path passed as parameters to wsadmin). IBM Websphere Application Server is…
SanthoshP2888
  • 23
  • 1
  • 5
1
vote
1 answer

Emulating functionality of python's inspect module in wsadmin

I expected the inspect module would be integrated into wsadmin by default since it is part of jython 2.1, which is the jython version wsadmin seems to be using (2, 1, 0, 'final', 0) according to sys.version_info. I get this error "ImportError: no…
Threadicide
  • 126
  • 7
1
vote
1 answer

WAS 7.0 Create users and map role to users wtih wsadmin

I have a requirement to create userids and assign Admin role for some users and I am trying to do this through a Jython script as it will speed up the process and saves time. So,I have created the below Jython script to achieve it. Script import…
user3764852
  • 21
  • 1
  • 4
1
vote
1 answer

WebSphere Scripting : AdminTask.createAuthDataEntry(...) : java.sql.SqlException: Login failed for user ''

I'm having a problem with WebSphere 8.0 I create an ID by typing this into the Jython wsadmin console: AdminTask.createAuthDataEntry(['-alias', 'uni', '-user', 'uni', '-password', 'uni', '-description', 'uni/uni']) AdminConfig.save() I type…
Roberto Olivares
  • 1,053
  • 1
  • 11
  • 19
1
vote
1 answer

Enabling wsadmin Console assistance

I enabled the "Log command assistance commands" option in Websphere > console preferences. The documentation says the following : Specifies whether to log all the command assistance wsadmin data to a file. This file is saved to…
ssdimmanuel
  • 448
  • 10
  • 29
1
vote
2 answers

Server Not Found Exception in wsadmin

I have a jython script to create a server, deploy and application and then start the server. But I am geeting the following exception while running it. WASX7017E: Exception received while running file "myfile.py"; exception information:…
Debajyoti Das
  • 2,038
  • 4
  • 34
  • 66
1
vote
1 answer

WSADMIN jacl Scripting - how get property value

in a WSADMIN jacl Script how i can get wsadmin.properties values ? for example the "com.ibm.ws.scripting.traceFile" ? i already try with puts $com.ibm.ws.scripting.traceFile buts return can't read "com.ibm.ws.scripting.traceFile": no such…
1
vote
1 answer

Create JDBC provider at cell scope

I'm trying to create JDBC provider at cell scope with scripting. I've found in the IBM documentation the way to create the JDBCProvider, but it creates provider at the Node scope: providerName = 'DB2 Universal JDBC Driver Provider' providerAttribs =…
Danubian Sailor
  • 1
  • 38
  • 145
  • 223
1
vote
2 answers

Binding container managed authentication alias with DataSource using jython script

I'm using WebSphere 8.5 I've found out how to create JAASAuthData with username and password using jython script: objServerAttrs = AdminControl.completeObjectName('WebSphere:type=Server,*') cellName = AdminControl.getAttribute(objServerAttrs,…
Danubian Sailor
  • 1
  • 38
  • 145
  • 223