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
2
votes
1 answer

Unable to pass context root to .war application in websphere using wsadmin

I need a little help in updating the context root for my war in my Websphere 8.5 appserver. I have a war file called DefaultApplication.war and during manual deployment through websphere console, iam able to set the context-root. Now i ahve…
2
votes
1 answer

Retrieve Websphere JVM logs using wsadmin

I am trying to retrieve Websphere server logs through wsadmin. When connected to a ND, I might have to retrieve logs from remote nodes where I dont have SSH access. Since I can view the logs using the Management Console, I was wondering if I could…
Perro
  • 61
  • 2
  • 8
2
votes
2 answers

IBM wsadmin - How to get the status of an application per application server

I'm having issues getting the status of an Application on a specific Application Server inside of IBM's WebSphere product. I can get into the wsadmin scripting console, and issue: print…
FilBot3
  • 3,460
  • 6
  • 33
  • 55
2
votes
3 answers

Attaching shared-libs to WebSphere application's module

Based on IBM documentation, I wrote a jython script that adds shared libs to an existing application. # Application name app = sys.argv[0] dep = AdminConfig.getid('/Deployment:' + app + '/') depObject = AdminConfig.showAttribute(dep,…
poussma
  • 7,033
  • 3
  • 43
  • 68
2
votes
2 answers

Monitoring JDBC Connection Pools on WebSpere 7

Recently we started in production with a new application hosted in several WebSphere Aplication Server and would be nice to have them monitored/graphed with more or less the same parameters we monitor/graph our Jboss servers. Right now I managed to…
alphamikevictor
  • 595
  • 7
  • 17
2
votes
0 answers

Orphan IBM JVM process

I have this issue about orphan IBM JVM process being created in the process tree: For example: C:\Program Files\IBM\WebSphere\AppServer\bin>wsadmin -lang jython -f "C:\Hello.py" Hello.py has the simple implementation: import time i = 0 while…
Nicholas Key
  • 1,429
  • 4
  • 21
  • 24
2
votes
1 answer

Global keyword on module scope

I have a Python file that have the following lines: import sys global AdminConfig global AdminApp This script runs on Jython. I understand the use of global keyword inside functions, but what does the use of the "global" keyword on module level…
tt0686
  • 1,771
  • 6
  • 31
  • 60
2
votes
1 answer

How to deploy EAR in WebSphere Application Server using Jython script?

How to deploy application in WebSphere Application Server using Jython script? What is happening during ear file deployment?. Could you please explain it step by step?
user3442562
  • 337
  • 1
  • 6
  • 16
2
votes
1 answer

Get context root of an installed application on WAS 7 via wsadmin

I need to create a script in Jython to migrate some applications from WAS 7 to WAS 8.5. I can't seem to find the context root for a certain application (i found the context root for all other applications in the application.xml file). This…
adimoise91
  • 558
  • 1
  • 7
  • 26
2
votes
3 answers

wsadmin is taking 10 minutes to connect to Application Server

wsadmin is taking about 10 minutes to connect to the WebSphere Application Server 7.0 i tried this: C:\WAS_HOME\profiles\PROFILE_NAME\bin>wsadmin -lang jython -user -password -javaoption -Djava.net.preferIPv4Stack=true but very disappointed to…
Nicholas Key
  • 1,429
  • 4
  • 21
  • 24
2
votes
2 answers

wsadmin obtain server name of an application stopped

This is my first question and I think this is not the last. for start a application with wsadmin I need the name of the server. appManager = AdinControl.completeObjectName('type=ApplicationManager,process='+serverName+',*') …
2
votes
1 answer

Get module versions through wsadmin (WAS 8.5)

How can I get the version of a specific module in a deployed application on a WebSphere 8.5 server? I tried the following commands. Get all installed applications: wsadmin> $AdminApp list MyApplicationEAR Get version of this application…
bobbel
  • 3,327
  • 2
  • 26
  • 43
2
votes
1 answer

Websphere JYTHON Scripting - Get Active Spec ID

Problem: Attempting to use the JYTHON command below and I cannot retrieve the id of my active specification defined at a node-server level in Websphere. I believe its a syntax issue but I'm not sure what. Code:…
haju
  • 1,278
  • 4
  • 20
  • 38
2
votes
2 answers

Using Runtime.exec() to launch Websphere's wsadmin.bat - Hangs while reading from InputStream of the process

Pasting the code sample directly: Runtime rt = Runtime.getRuntime(); path = "c:\IBM\WebSphere\AppServer\profiles\STSCDmgrProfile\bin\"; cmd = path + "wsadmin"; String cmdString = cmd + " -host " …
Abhijit
  • 21
  • 1
2
votes
1 answer

How to list all apps on WAS and their linked node cell and server name?

The context is that I have a script that automates the update or deployment of applications on WAS 6.1 servers from a DMGR. This script use a setting file that contains the application name, the server cell, node and name. I don't want to make…
Franko
  • 131
  • 1
  • 10
1 2
3
16 17