3.01 System Management

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 109

IBM Software Group, Business Partner Technical Support (BPTS)

WebSphere Software

IBM WebSphere Application Server


System Management

2009 IBM Corporation


WebSphere Software

WAS

Source: If applicable, describe source origin

2 2009 IBM Corporation


WebSphere Software

3 2009 IBM Corporation


WebSphere Software


WebSphere WebSphere
Administrative
Clients


Commands to
XML manage server


J2EE EAR
J2EE
Apps
Application (EARs)

Server
Config
Files

Standalone Node

4 2009 IBM Corporation


WebSphere Software

:
WebSphere
Administrative Clients
Application Server

Internet or
WEB Container
9060
Intranet Embedded HTTP Server
Web Browser

Admin Config J2EE


Files Apps
Console (EARs)
Soap/HTTP Application Update
Scripting Client or
(wsadmin) RMI-IIOP
Configuration
Repository

Admin Services/JMX
Custom Java
Admin Clients
Standalone Node

WebSphere

WebSphere(wsadmin)
Java

/

5 2009 IBM Corporation


WebSphere Software

:
WebSphere
Administrative Clients Configuration Files
Application Server
CELL
Internet or
WEB Container
Intranet 9060 Applications
Web Browser Embedded HTTP Server

Node
Admin
Console
Applicatio Config J2EE Server A
Scripting Client n
(wsadmin) Files Apps
(EARs) Resources.xml
Soap/HTTP Server.xml
or
RMI-IIOP
Variables.xml
Admin Services/JMX Configuration
Custom Java
Admin Clients Repository

Standalone Node

XMLWebSphereconfig
<%WAS_PROFILE%>/config

J2EE

6 2009 IBM Corporation


WebSphere Software

Web

WebSphereWeb
Web
Web
Web/

7 2009 IBM Corporation


WebSphere Software

Web New
v6

Standalone Node
Web
Server Plug-in
Plug-in
Module
Config
XML file Application Server
OS
S1

HTTP(S) J2EE
J2EE App. J2EE
J2EE App.
(EAR)
J2EE
Applications (EAR)
J2EE
Applications
Applications
(EAR) Applications
(EAR)
(EAR) (EAR)

Web
Server Plug-in
Plug-in
Config
Module
XML file

OS
S2 HTTP(S)

S1S2Web
Web(plugin-cfg.xml)

8 2009 IBM Corporation


WebSphere Software

(ND)

9 2009 IBM Corporation


WebSphere Software

ND :

WebSphere
Administrative
Clients
WebSphere Manage the entire Cell

Commands

Config J2EE
Files Apps
(EARs)



V6 V6 V6 V6
Application Application Application Application
Server Server Server Server

V6 Node V6 Node

Config J2EE Config J2EE


Files Apps Files Apps
(EARs) (EARs)

10 2009 IBM Corporation


WebSphere Software

ND :
WebSphere
Deployment Manager Master
Administrative Clients Configuration for
the Entire Cell
WEB Container Config J2EE
Internet Apps
9060 Files
or Embedded HTTP Server (EARs)
Intranet
Web Browser
Admin
Console
Application

Scripting Client
(wsadmin)
Soap/HTTP Admin Services
or Config J2EE
RMI-IIOP Files Apps
(EARs)

Custom Java
Admin Clients

NDWebSphere


V6 V6 V6 V6

Application
Server
Application
Server
Application
Server
Application
Server

DMgr V6 Node V6 Node

Config J2EE Config J2EE

Files Apps Files Apps


(EARs) (EARs)

11 2009 IBM Corporation


WebSphere Software

ND-

WebSphere

For Configuration Changes


(DMgr Only) Deployment
Manager
For Operational Changes
(Any WebSphere Process)
Node Node
Agent Agent


WebSphereDMgrNode Agent

Application
Server Application
Server
Application
Server Application
Server

WebSphere Node Node



Cell
WebSpherewsadmin
DMgr

12 2009 IBM Corporation


WebSphere Software

ND :

Node Agent

Node Agent
Node Agent



V6 Node

13 2009 IBM Corporation


WebSphere Software

Web

WebWebSphere
Web
Web
Web
WebSphereWeb
WebNode Agent

14 2009 IBM Corporation


WebSphere Software

New
: Web v6

Web
Server Plug-in
Plug-in
Config
Module
XML file

OS
S1
V6 V6
Node Agent Node Agent
HTTP(S)

V6
Application V6
Application
V6
Application V6
Application
Web Server Server Server Server
A B C D
Server Plug-in V6 Node V6 Node
Plug-in
Config
Module
XML file

OS
S2
HTTP(S)

S1WebAD
S2WebBC
Webplugin-cfg.xml

15 2009 IBM Corporation


WebSphere Software

ND :

Config J2EE
Files Apps
(EARs)

DMgrNode Agent
Master
Configuration
DMgrNode Agent
Http(s)
Node Agent
Config J2EE
DMgr Files Apps
(EARs)

HTTPs Node
Configuration

V6 Node

16 2009 IBM Corporation


WebSphere Software

ND

Deployment
3
Manager Node
Agent Config J2EE

Cell Sync
4 Files Apps
(EARs)

(filetransfer.EAR) 1 Node Sync

Node
Configuration
2 Handles file transfer Application Application
for Deployment Server Server
Manager
Node
Config J2EE
Master
Files Apps
(EARs) Configuration

1.
2.
3.
5.

17 2009 IBM Corporation


WebSphere Software

System Administration -> Node Agents -> File Synchronization Service

Node Agent




1
:

wsadmin

syncNode

18 2009 IBM Corporation


WebSphere Software

Node AgentDMgrDMgr




19 2009 IBM Corporation


WebSphere Software

20 2009 IBM Corporation


WebSphere Software

WebSphereXMLJ2EE

DMgr

21 2009 IBM Corporation


WebSphere Software

ND :
V6
Deployment Config J2EE
Manager Files Apps
(EARs)

Cell Files
cell.xml
Config J2EE
security.xml Config J2EE Node Agent
Node Agent
Files Apps variables.xml Files Apps
(EARs) (EARs)
virtualhosts.xml
resources.xml
Server
Server Server
A B
/buses C
Node A /coregroups Node B
Node A
node.xml /nodegroups node.xml
serverindex.xml Node B
/applications serverindex.xml
variables.xml variables.xml
resources.xml resources.xml
app.policy app.policy

/servers /servers

Server A Server B
server.xml server.xml Server C
variables.xml variables.xml server.xml
resources.xml resources.xml variables.xml
resources.xml Node B specific files
Node A specific files

22 2009 IBM Corporation


WebSphere Software

ND : Master Configuration Files 1


CELL
V6
Deployment System and User J2EE Applications for the entire cell
Manager Config J2EE
Files Apps
(EARs) DMgr Node Node A Node B

DMgr Server Node Agent A Node Agent B


File
3
Synchronization Server A Server C

Server B Server D

Node Agent Node Agent


Config J2EE Node B Configuration Files
Files Apps Config J2EE
(EARs) Files Apps
(EARs)
2
CELL

Node B Applications
Server Server Server Server
A B C D
Node A Node B
serverindex.xml
Node A Node B
Node Agent B
4
1. Server C

2. Server D

3. DMgr

4. serverindex.xml()

23 2009 IBM Corporation


WebSphere Software

Example:
DMgr Master Repository





Cell








,

Nodes

Servers

24
2009 IBM Corporation
WebSphere Software

applications -DMgr

EAR
deployment.xml
buses SIBus
coreGroups

nodeGroups

nodes

25
2009 IBM Corporation
WebSphere Software

:
admin-autz.xml
cell.xml
coregroupbridge.xml
filter.xml Java2
multibroker.xml DRS
namestore.xml
naming-autz.xml
pmirm.xml
resources.xml JDBCJMS
security.xml
variables.xml
virtualhosts.xml

ws-security.xml Web
resources-pme.xml, resources-pme502.xml PME

26
2009 IBM Corporation
WebSphere Software

:
app.policy, library.policy, spi.policy Java2 DMgr ()
J2C
installed-channels.xml WebSphere
TCP, SSL, HTTP, HTTP
namestore.xml JNDI
node.xml
node-metadata.properties

perftuners.xml
resources.xml (JDBCJMS)
resources-pme.xml and resources-pme502.xml
PME
serverindex.xml

variables.xml

27
2009 IBM Corporation
WebSphere Software

: DMgr
DMgr ()

app.policy, library.policy, spi.policy Java2
J2C
installed-channels.xml WebSphere
TCP, SSL, HTTP, HTTP
namestore.xml JNDI
node.xml
node-metadata.properties

resources.xml (JDBCJMS)
serverindex.xml

variables.xml

28
2009 IBM Corporation
WebSphere Software

:
hamanagerservice.xml
HAManager
isAliveperiod
pmi-config.xml
resources.xml JDBCJMS
resources-pme.xml resources-pme502.xmlPME

server.xml JVM

server-pme51.xml server-pme.xml PME
sib-authorisations.xml SIBus
sib-engines.xml SIBus
sib-service.xml SIBus
variables.xml
ws-security.xml Web

29
2009 IBM Corporation
WebSphere Software

: DMgr

hamanagerservice.xml

HAManager
isAliveperiod
DMgr ()
server.xml
JVM
server-pme51.xml server-pme.xml
PME

30
2009 IBM Corporation
WebSphere Software

: Node Agent

hamanagerservice.xml

HAManagerisAliveperiod
server.xml
JVM

31 2009 IBM Corporation


WebSphere Software

: (Dmgr)


:
:

:
: serverindex.xml
serverindex.xml

32 2009 IBM Corporation


WebSphere Software

: ND




DMgr

Node Agent

33 2009 IBM Corporation


WebSphere Software

34 2009 IBM Corporation


WebSphere Software

WAS
WAS


WASWAS
WAS

35 2009 IBM Corporation


WebSphere Software


Configuration Configuration
Configuration
Archive (.car) Configuration
(.car) Archive (.car)
Archive
(.car) Archive (.car)


36 2009 IBM Corporation


WebSphere Software










$AdminTask exportServer { -archive c:\myServer.car nodeName
node1 serverName server1}
$AdminTask exportWasprofile {-archive c:\myCell.car }

37 2009 IBM Corporation


WebSphere Software







WASWPSWebSphere Process Server

$AdminTask importServer {- archive c:\myServer.car [-
nodeInArchive node1] [-serverInArchive server1] [nodeName node1]
[serverName server1] }
$AdminTask importWasprofile {-archive c:\myCell.car}

38 2009 IBM Corporation


WebSphere Software

39 2009 IBM Corporation


WebSphere Software

backupConfig

backupConfigconfig




40 2009 IBM Corporation


WebSphere Software

backupConfig Configuration Archive

41 2009 IBM Corporation


WebSphere Software

WAS

42 2009 IBM Corporation


WebSphere Software

WebSphere

windowUnix window
Unix
Node Agent

Node Agent

(Server > Java and
()
Process Management >
Monitor Policy setting

43 2009 IBM Corporation


WebSphere Software

Window :

Windows

DMgr
addNodeNode Agent

WASService.exe
Administrator





44 2009 IBM Corporation


WebSphere Software

WASService.exe (Windows)

WASServiceWASWindow
WASService.exe
WASService.exe -add <service_name> -serverName <Server> profilePath <servers
profile path> <options>
WASService.exe
WASService.exe -remove
WASService.exe start
WASService.exe stop
WASService.exe status
WASService

45 2009 IBM Corporation


WebSphere Software

UNIX:

<WAS_ROOT>/binrc.was shell

script startServer
: startServer server1 script start_server1.sh

(numRetries=3)
inittab
was:235:once:/usr/WebSphere/AppServer/bin/rc.was >/dev/console 2>&1
inittab
235
once inittabboot respawn

startServer

46 2009 IBM Corporation


WebSphere Software

UNIX: : rc.was

rc.was

launchScript=start_server1.sh
numRetries=3 ; RETRY=0
while [ $RETRY -lt $numRetries ]
do
$binDir/$launchScript # launching server using $launchScript
rc=$?
echo exit code: $rc
# Increment retry count on anything other than a normal exit code
if [ $rc -gt 0 ]
then
RETRY=`expr $RETRY + 1`
fi
case $rc in
0) break ;;

Node Agent
inittab

47 2009 IBM Corporation


WebSphere Software

48 2009 IBM Corporation


WebSphere Software

WASWAS

bin <PROFILE_HOME>/bin
<WAS_HOME>/bin
<PROFILE_HOME>/bin

bin-profileName
<WAS_HOME>/bin -profileName

49 2009 IBM Corporation


WebSphere Software

backupConfig <>
Zip
backupConfig
NDDMgrbackConfig
restoreConfig <>


50 2009 IBM Corporation


WebSphere Software

syncNode

Node Agent
wsadmin
cleanupNode <cellhost> <cellport>

DMgr

51 2009 IBM Corporation


WebSphere Software

collector
jar
OS
waslogbr
Log Analyzer
dumpNameSpace
JNDI(Java Naming and Directory)

52 2009 IBM Corporation


WebSphere Software

ws_ant
WASANT
ikeyman
SSL
ejbdeploy
EJB

GenPluginCfg
HTTP
wsadmin

53 2009 IBM Corporation


WebSphere Software

serverStatus

: serverStatus <>
versionInfo
IBM WAS
genHistoryReport, genVersionReport
HTML/

54 2009 IBM Corporation


WebSphere Software

ivt ()
: ivt server_name profile_name -p port_number [-host host_name]
, ivt server1 AppSvr01 p 9080
PropFilePasswordEncoder


:
PropFilePasswordEncoder Filename passwordPropertieslist
JspBatchCompiler
web JSP

55 2009 IBM Corporation


WebSphere Software


<PROFILE_HOME>/bin
: startServer server1
<INSTALL_HOME>/bin
: startServer profileName AppSrv01 server1
<PROFILE_HOME>/logs/<server_name>
Windows
Start > Programs > IBM WebSphere > Application Server Vx.y > Profiles > <Profile> >
Start the Server
Windows
WASService.exe
> >

56 2009 IBM Corporation


WebSphere Software

startServer.bat(sh) profileName <profile> <serverName> <options>


JVM
server.xmlJVM

-script server1
startServer server1 script launchServer1.sh
JVM

JVM

57 2009 IBM Corporation


WebSphere Software

stopServer.bat (sh) profileName <profileName> <serverName> <options>


: stopServer.sh profileName AppServ01 server1
<PROFILE_HOME>/logs/<serverName>
JVM
stopServer
ID

58 2009 IBM Corporation


WebSphere Software

ND:

startServer:
: startServer profile <profileName> <serverName> options
Node Agent
DMgrwsadmin

59 2009 IBM Corporation


WebSphere Software

ND:

stopServer
stopServer.bat (sh) profile <profileName> <serverName> options
wsadmin

60 2009 IBM Corporation


WebSphere Software

DMgrNode Agent

DMgr
startManager -profileName <DMgr Profile Name>
startServer - profileName <DMgr Profile Name> dmgr
stopManager -profileName <DMgr Profile Name >
stopServer - profileName <DMgr Profile Name > dmgr
Node Agent
startNode -profileName <Managed Node Profile Name>
startServer - profileName < Managed Node Profile Name > nodeagent
stopNode -profileName < Managed Node Profile Name >
stopServer - profileName < Managed Node Profile Name > nodeagent
Node Agent
Node Agent
Windows
Windows

61 2009 IBM Corporation


WebSphere Software

manageprofiles

62 2009 IBM Corporation


WebSphere Software

WebSphere

manageprofiles.bat[.sh]

: <install_root>/bin/manageprofiles.bat[sh]
(pmt.bat[sh])manageprofiles

63 2009 IBM Corporation


WebSphere Software

WebSphere(cont.)

Manageprofiles
(-create)
(-delete)
(-augment)
(-unaugment)
(-deleteAll)
(-listProfiles)
(-getName)
(-getPath)
(-validateRegistry)
(-validateAndUpdateRegistry)
(-getDefaultName)
(-setDefaultName)
(-backupProfile)
(-restoreProfile)
-help

64 2009 IBM Corporation


WebSphere Software

WebSphere(cont.):


/logs/manageprofiles
manageprofiles_create_profile_name.log

/logs/manageprofiles
manageprofiles_delete_profile_name.log.

65 2009 IBM Corporation


WebSphere Software

WebSphere(cont.):


: manageprofiles -create templatePath
<fully_qualified_template_path>
profileTemplates


profileName:
profilePath:
hostName:
nodeName:
cellName:

66 2009 IBM Corporation


WebSphere Software

WebSphere


key/value
: manageprofiles response <response_file>

create
profileName=testResponseFileCreate
profilePath=<PROFILE_HOME>
templatePath=<install_root>/profileTemplates/default
nodeName=myNodeName
cellName=myCellName
hostName=myHostName
omitAction=myOptionalAction1, myOptionalAction2

<PROFILE_HOME>
Windows: C:\Program
Files\IBM\WebSphere\AppServer\profiles\AppSrv01

67 2009 IBM Corporation


WebSphere Software

manageprofiles




manageprofiles backupProfile profileName <profile_name> backupFile
<backup_file>





manageprofiles restoreProfile backupFile <backup_file>

68 2009 IBM Corporation


WebSphere Software

Manageprofiles






manageprofiles
-omitAction
manageprofiles create templatePath <install_root>/profileTemplates/default -
omitAction deployAdminConsole samplesInstallAndConfig defaultAppDeployAndConfig

69 2009 IBM Corporation


WebSphere Software


manageprofiles create templatePath <install_root>/profileTemplates/dmgr -
enableAdminSecurity true adminUserName <user_name> adminPassword
<password>

manageprofiles setDefaultName profileName <profile_name>

manageprofiles getDefaultName

70 2009 IBM Corporation


WebSphere Software

71 2009 IBM Corporation


WebSphere Software

Tivoli (Integrated Solutions Console ,ISC) , IBM


V6ISCISC-lite

WAS , ,

Tivoli(Tivoli Performance Viewer,TPV)
9060

72 2009 IBM Corporation


WebSphere Software

73 2009 IBM Corporation


WebSphere Software


Cell
Deployment Manager
Node
Node Agent

74
2009 IBM Corporation
WebSphere Software



TCP ()
UDP



Nodes and servers
Applications
Clusters
Node Group
Core Groups
Service Integration Bus

75
2009 IBM Corporation
WebSphere Software

DMgr

Process Definition JVM .


Core Group Service DMgr
Ports- DMgr

Administration Services SOAP RMI



Custom Services
ORB Service e.g. ORB Timeout, cache,
NoLocalCopies, tunneling
Diagnostic Trace Service
Logging and Tracing

HTTP transports , SSL

76
2009 IBM Corporation
WebSphere Software






(
)




, OS,

Admin Console also contains the Node local topology view (not shown here) to view the servers on the Node

77
2009 IBM Corporation
WebSphere Software

Node Agent
Node Agent

Node Agent

Node Agent
JVMJVM
ID

Node Agent

DMgrNode Agent

JMX(SOAP/RMI
Mbean
ORB

java
WAS

78 2009 IBM Corporation


WebSphere Software

79
2009 IBM Corporation
WebSphere Software

80 2009 IBM Corporation


WebSphere Software


81
2009 IBM Corporation
WebSphere Software


Run in development mode


Parallel Start

Classloader Policy J2EE

Multiple

Single

Class loading mode
Parent first
Classloader
Classloader
Parent last Multiple
Classloader Single
Classloader
Parent First
Parent Last

82 2009 IBM Corporation


WebSphere Software

Web/EJB

Servlet


Web

EJB
JNDIEJB HTTP

EJB

EJB
bean
EJB
.

83 2009 IBM Corporation


WebSphere Software

New
Container Services v6

Profiling
v5.x

PME -

PME
PME

PME - bean

ORB

84 2009 IBM Corporation


WebSphere Software

New
Business Process v6

Activation Session -
EJB
Work area partition service

Work area service

PME -

PME
PME -

85 2009 IBM Corporation


WebSphere Software

New
Messaging Services v6

MQ
SIB

V5MDB

86 2009 IBM Corporation


WebSphere Software

Infrastructure Services

JVM
JVM
JVM

JVMUMASK

JMX
SOAPRMI
Mbean

87 2009 IBM Corporation


WebSphere Software

88 2009 IBM Corporation


WebSphere Software

New
v6

PMI
PMITPV PMI

89 2009 IBM Corporation


WebSphere Software

Security

WebWeb
Java2

Web

90 2009 IBM Corporation


WebSphere Software

Trouble Shooting

HTTPNCSA
IBMIBM
HTTP activity.log

91 2009 IBM Corporation


WebSphere Software

Core group Core group bridge



Debugging Service

92 2009 IBM Corporation


WebSphere Software

93 2009 IBM Corporation


WebSphere Software

Applications as Compositions

Composition - BLAs
Application
Application

Application

Configuration
composition units DB2
Database
Web .Net
Library Enterprise
Module Service
EJB Application
Module

Business Logic -Assets

WAR EAR
EJB
JAR Java
Library

94 2009 IBM Corporation


WebSphere Software

BLA Concepts

BLA BLA
BLA
(Composition)

BLA

Composition Unit DB2


(Application Metadata, Database Library
Deployment Information) .Net
Service Enterprise
EJB Application
Module Web
Module

Asset
(Application Binaries) WAR
Java EAR
EJB Library
JAR

95 2009 IBM Corporation


WebSphere Software

Collocation Relationship Example

a.jar deployed
BLA b1 CU
a.jar needs
a.jar b.jar b.jar

Is there a
library CU Create a
dependency
shared
for b.jar?
library
CU for
b.jar
asset a.jar
If no

96 2009 IBM Corporation


WebSphere Software

97 2009 IBM Corporation


WebSphere Software

Job Manager
Control multiple endpoints
Remote management
Loose Coupling
Admin Manager
Agent Deploy-
ment
Mgr
Admin
Agent

Admin Deploy- Server


Server Agent ment Server
Base Application Server Mgr Server
Programming Model Server
Server
Server QoS Server

Security
Server Administration Server Network Deployment Cell
WebSphere
Server Administration
Server
Application Server Server
Clustering
Server
Server

98 2009 IBM Corporation


WebSphere Software

Capitalizing on Intelligent App Server Management

To Start Job Manager


1. You issue a startManager(sh/bat) command

2. After performing 1 expect to see


ADMU0111E: Program exiting with error:
java.io.FileNotFoundException:C:\IBM\WebSphere\AppServer\profiles\JobMgr01\config\
cells\thinkJobMgrCell01\nodes\thinkJobMgr01\servers\dmgr\server.xml (The system
cannot find the path specified.)

3. You issue a startServer(sh/bat) <jobmgr> command

All are Correct!!

99 2009 IBM Corporation


WebSphere Software

Properties File Configure


100 2009 IBM Corporation


WebSphere Software

WebSphere

Property_name = foo
Scope = Server
Name = server1
MaximumHeapSize= 1024
ORB_LISTENER_ADDRESS_PORT = 9001

# ---------------------------
# comment line
# ---------------------------

extract
apply
delete

101 2009 IBM Corporation


WebSphere Software

102 2009 IBM Corporation


WebSphere Software

:
WAS-ND
WebSphere WAS, ND






DMgr




103 2009 IBM Corporation


WebSphere Software

(CIM)

jobmanagerdmgr

WebSphere Application Server
IBM HTTP Server
Application Clients
DMZ Security Proxy Server
Web Server Plug-in
IIM


IIM
Inventory info

104 2009 IBM Corporation


WebSphere Software

105 2009 IBM Corporation


WebSphere Software

WAS



WAS





106 2009 IBM Corporation


WebSphere Software

Questions?

107 2009 IBM Corporation


WebSphere Software

Thai
Traditional Chinese

Russian
Gracias Spanish

Thank You English

Merci French
Obrigado
Brazilian Portuguese
Arabic

Grazie
Italian
Danke
German
Simplified Chinese

Japanese

108 2009 IBM Corporation


WebSphere Software

Bus
Channel
Cell
Naming
Naming Space
Network Deployment:
Node
Managed Node
Repository

109 2009 IBM Corporation

You might also like