websphere admin FAQ

Creation: 13 septembre 2006
Mise à jour: october, the 13th 2006
Version: 1.1
Author: Jean-Louis Bicquelet-Salaün
Location: http://jlbicquelet.free.fr
Copyright: (c) 2004-2006 Jean-Louis BICQUELET-SALAÜN

Pour plus d'information au sujet de cette faq, contactez Jean-Louis BICQUELET


FAQ Revised: Friday 13 October 2006 16:23:21


Table of Contents

1. status
2. arret
3. administration
4. config
5. script
6. culture

1. status

1.1. comment connaitre le status de websphere ?
#/apps/products/was5/AppServer/bin/serverStatus.sh -all
ADMU0116I: Tool information is being logged in file
           /apps/products/was5/AppServer/logs/serverStatus.log
ADMU0500I: Retrieving server status for all servers
ADMU0505I: Servers found in configuration:
ADMU0506I: Server name: server1
ADMU0508I: The Application Server "server1" is STARTED

On peut aussi utiliser le nom du serveur ici server1:

serverStatus.sh server1.



2. arret

2.1. comment relancer websphere ?
startServer.sh server1


2.2. comment arreter websphere ?
stopServer.sh.sh server1



3. administration

3.1. comment passer en mode administration avec websphere ?
wsadmin.sh
WASX7209I: Connected to process "server1" on node god using SOAP connector;  The type of process is: UnManagedProcess
WASX7029I: For help, enter: "$Help help"

$Help AdminApp

Attention, le H est en majuscule.

Les aides possibles sont:

  • Help
  • AdminApp
  • AdminConfig
  • AdminControl


3.2. comment passer une commande websphere à partir de la ligne de commande ?
Ecrire dans un fichier et lancez ce script
#!/bin/sh
/apps/products/was5/AppServer/bin/wsadmin.sh" <


4. config

4.1. comment connaître la version du serveur ?
#versionInfo.sh
WVER0010I: Copyright (c) IBM Corporation 2002; All rights reserved.
WVER0011I: WebSphere Application Server Release 5.1
WVER0012I: VersionInfo reporter version 1.15.2.1, dated 4/28/04

--------------------------------------------------------------------------------
IBM WebSphere Application Server Product Installation Status Report
--------------------------------------------------------------------------------

Report at date and time 2006-10-13T15:38:04+02:00

Installation
--------------------------------------------------------------------------------
Product Directory   /was5/AppServer
Version Directory   ${product.dir}/properties/version
DTD Directory       ${version.dir}/dtd
Log Directory       /apps/products/was5/AppServer/logs/update
Backup Directory    ${version.dir}/backup
TMP Directory       /tmp

Installation Platform
--------------------------------------------------------------------------------
Name           IBM WebSphere Application Server
Version        5.1

Technology List
--------------------------------------------------------------------------------
BASE           installed
PME            installed
JDK            installed

Installed Product
--------------------------------------------------------------------------------
Name           IBM WebSphere Business Integration Server Foundation
Version        5.1.1.3
ID             PME
Build Level    cf30540.03
Build Date     10/07/2005

Installed Product
--------------------------------------------------------------------------------
Name           IBM WebSphere SDK
Version        1.4.2.3.1
ID             JDK
Build Level    ca142ifx-20051115
Build Date     11/15/2005

Installed Product
--------------------------------------------------------------------------------
Name           IBM WebSphere Application Server
Version        5.1.1.7
ID             BASE
Build Level    cf70540.03
Build Date     10/03/2005

--------------------------------------------------------------------------------
End Installation Status Report
-----------------------------------


4.2. comment savoir si un fixpack est installé ?
instfix -ik PQ95794


4.3. comment connaitre les fixpacks websphere installés ?
instfix -a |grep PQ
IY37120 Abstract: fscntl(FSCNTL_SNAPQUERY) of snapshot not setting if current
IY45937 Abstract: NOT ABLE TO CHANGE THE VALUE OF IPQMAXLEN USING NO COMMAND
 |20020117  |39891   |PQ56430|Problem with java.net.URLEncoder/|
 |20020117  |39891   |PQ56430|Problem with java.net.URLEncoder/|



4.4. comment afficher les applications du serveur ?
wsadmin>$AdminApp list
ANNUAIRE
DefaultApplication
PARC


4.5. comment lister les modules Web et EJB pour une application donnée ?
$AdminApp listModules PARC
PARC#PARC.war+WEB-INF/web.xml


4.6. comment connaitre le nom de domaine de l'application serveur ?

wsadmin>$AdminControl getDomainName
WebSphere


4.7. comment connaitre le nom du host de l'application serveur ?
wsadmin>$AdminControl getHost
localhost


4.8. comment connaitre les nodes utilisés par Websphere ?
wsadmin>$AdminControl getNode
god


4.9. comment connaitre les ports utilisés par Websphere?
wsadmin>$AdminControl getPort
8880


4.10. comment connaitre les types de configuration ?
wsadmin>$AdminConfig types
AllAuthenticatedUsersExt
Application
ApplicationConfig
ApplicationContainer
ApplicationDeployment
ApplicationManagementService
ApplicationServer
AuthMechanism
AuthenticationMechanism
AuthenticationTarget
AuthorizationConfig
AuthorizationProvider
AuthorizationTableExt
AuthorizationTableImpl
BackupCluster
CMPConnectorFactory
CORBAObjectNameSpaceBinding
Cell
CellManager
...
WASQueue
WASQueueConnectionFactory
WASTopic
WASTopicConnectionFactory
WebContainer
WebModuleConfig
WebModuleDeployment
WorkloadManagementServer



4.11. comment afficher la configuration d'un objet ?

$AdminConfig list Cell
heracles(cells/heracles:cell.xml#Cell_1)



5. script

5.1. C'est quoi Jacl ?
Jacl est une implementation de TCL, écrite entièrement en Java.

5.2. comment lancer un script jacl?
preparez un fichier comme ceci:
set apps [$AdminApp list]
puts "Applications actuellement installM-ies :\n$apps"
lancez l'execution
wsadmin.sh -f /tmp/t.jacl
WASX7209I: Connected to process "server1" on node god using SOAP connector;  T
he type of process is: UnManagedProcess
Applications actuellement installées :
ANNUAIRE



5.3. Comment connaitre la version de websphere?
versionInfo.sh
WVER0010I: Copyright (c) IBM Corporation 2002; All rights reserved.
WVER0011I: WebSphere Application Server Release 5.0
WVER0012I: VersionInfo reporter version 1.14, dated 5/9/03

--------------------------------------------------------------------------------
IBM WebSphere Application Server Product Installation Status Report
--------------------------------------------------------------------------------

Report at date and time 2006-09-21T07:33:53+02:00

Installation
--------------------------------------------------------------------------------
Product Directory   /apps/products/was5/AppServer
Version Directory   ${product.dir}/properties/version
DTD Directory       ${version.dir}/dtd
Log Directory       /apps/products/was5/AppServer/logs/update
Backup Directory    ${version.dir}/backup
TMP Directory       /tmp

Installation Platform
--------------------------------------------------------------------------------
Name           IBM WebSphere Application Server
Version        5.0

Technology List
--------------------------------------------------------------------------------
BASE           installed
JDK            installed

Installed Product
--------------------------------------------------------------------------------
Name           IBM WebSphere SDK
Version        1.3.1
ID             JDK
Build Level    b0344.02
Build Date     01/29/2004

Installed Product
--------------------------------------------------------------------------------
Name           IBM WebSphere Application Server
Version        5.0.2.10
ID             BASE
Build Level    cf100509.03
Build Date     03/04/2005

--------------------------------------------------------------------------------
End Installation Status Report
--------------------------------------------------------------------------------



6. culture

6.1. Qu'est ce que c'est qun fichier WAR?
 Web Application aRchive (WAR file)