IBM Certified WebSphere Application Server 8.5 Administrator - Administrative Tools Overview

 
I
B
M
 
C
e
r
t
i
f
i
e
d
W
e
b
S
p
h
e
r
e
 
A
p
p
l
i
c
a
t
i
o
n
S
e
r
v
e
r
 
8
.
5
 
A
d
m
i
n
i
s
t
r
a
t
o
r
 
A course to get certified in 7 days
Karun Subramanian, ESIS Consulting LLC
 
Part 2
 
S
e
c
t
i
o
n
 
4
A
d
m
i
n
i
s
t
r
a
t
i
v
e
 
T
o
o
l
s
 
 
W
a
y
s
 
t
o
 
A
d
m
i
n
i
s
t
e
r
 
Admin Consoles
Command line utilities
scripting using wsadmin
JMX programs
 
Admin Console is the widely used tool.
Command line and scripting can be very
powerful and can save time for repetitive
tasks
While JMX programs can be used to
administer, it is very rare in practice
 
A
d
m
i
n
 
C
o
n
s
o
l
e
s
 
Various types of consoles available
Admin consoles are web based applications
ISC (Integrated Solutions Console) is the
primary way to administer a cell. It is
installed in the DMGR
Admin Console for Administrative agents
manages Nodes that are registered to it
Job Manager Admin Console manages the
Job manager settings and submits jobs
 
A
d
m
i
n
 
C
o
n
s
o
l
e
s
 
C
o
n
t
.
.
.
 
Generally accessed through URL “https://<your
server>/WC_adminhost_secure/ibm/console
Your activity is tracked at <profile
home>/wstemp so that it can be recovered in
case of unexpected exit from the console
Using Console preferences, the commands
used by WAS during the Admin Console activity
can be logged
For most of the operations within Admin
console, you can view the command used by
WAS
 
A
d
m
i
n
 
C
o
n
s
o
l
e
s
 
C
o
n
t
.
.
.
 
Resources can be created in various scopes
o
Application
o
Application Server
o
Node
o
Cluster
o
Cell
Granular scope overrides if the same
resource is defined in multiple scopes
Admin console provides an option to view
the available scopes either in a drop down
list or using fields
 
A
d
m
i
n
 
C
o
n
s
o
l
e
s
 
C
o
n
t
.
.
.
 
Whenever you make changes in Admin
console, you are prompted for ‘saving’. It is a
good idea to click on the ‘review’ link to see
what files are being modified
 
 
 
 
You can also save the configuration using
System Administration -> Save Changes to
Master Repository
 
A
d
m
i
n
 
C
o
n
s
o
l
e
s
 
C
o
n
t
.
.
.
 
Admin Console provides few ‘Guided
Activities’ such as ‘Creating and configuring
a cluster for workload management’,
‘Configuring database connectivity’ etc
Admin console can show runtime events
generated by Application Server classes
Guided activities walks you through step by
step while you perform the actual steps
You cannot login to the same Admin console
using the same user id using two different
browser windows
 
S
e
c
u
r
i
n
g
 
A
d
m
i
n
 
C
o
n
s
o
l
e
s
 
Enable ‘Administrative Security’ to secure
Admin Console
You must determine the user repository to
use (Active directory, Local OS File based
repository etc)
Administrative security is NOT the same as
‘Application security’
In order to access the Admin console, the
user must authenticate against the chosen
repository and also belong to a
administrative role defined in the Admin
console (screenshot)
 
S
e
c
u
r
i
n
g
 
A
d
m
i
n
 
C
o
n
s
o
l
e
s
 
C
o
n
t
.
.
.
 
Fine grained security possible. Resources
can be grouped into Authorization groups
and users can be assigned to required
administrative role within the authorization
group
Cell wide authorization group is also
available
Users and Groups -> Manage Users (or)
Manage Groups
Users and Groups -> Administrative user
roles (or) Administrative group roles
 
V
a
r
i
o
u
s
 
A
d
m
i
n
i
s
t
r
a
t
i
v
e
 
r
o
l
e
s
 
Administrator: Can do everything except
map users to Administrative roles
Admin Security Manager: Map users to
Administrative roles and manage
authorization groups
Auditor: View and change Security Auditing
Configurator: Change WAS Configuration
Operator: Can start/stop services
Monitor:Can view configuration and runtime
Deployer: Can configure/deploy Applications
ISCAdmin: Manage users and groups within
the Admin console only
 
J
o
b
 
M
a
n
a
g
e
r
 
C
o
n
s
o
l
e
 
Manages jobs submitted to targets that are
registered to the Job Manager
Loosely coupled administrative functionality
You can manage jobs via ISC (Integrated
solutions console) as well (which tree ?)
You can start/stop Servers, start/stop/install
Applications and liberty profile resources,
create/delete Servers and clusters,
install/update IIM (IBM installation manager)
You can also run wsadmin scripts on target
using Job Manager console
 
C
o
m
m
a
n
d
 
l
i
n
e
 
T
o
o
l
s
 
Several commands available
Windows commands are .bat whereas Unix
commands are .sh
Commands are located in <WASHOME>/bin
and <PROFILEHOME>/bin. Where you run
the command from is significant
Most commands accept -profileName
parameter which ensures the profile against
which the command is run
When required, the command will prompt
username/password
 
S
a
m
p
l
e
 
c
o
m
m
a
n
d
s
 
startServer <server name>
 : Starts an
Application Server
stopManager
 : Stops Deployment Manager
serverStatus -all
 : Shows status of all
the Servers
versioninfo 
: Shows versions of installed
Websphere Application Server products
addNode 
: Federates a node into a cell
managesdk 
: defines the JDK version used
by WAS
manageprofile 
: Manages profiles
 
A
d
m
i
n
i
s
t
r
a
t
i
o
n
 
u
s
i
n
g
 
S
c
r
i
p
t
i
n
g
 
Very powerful way of Administering WAS
If you can do it through Admin Console, you
can do it through wsadmin
Uses Bean Scripting framework. Jython is
the preferred language. Jcal is being
deprecated
Can be run offline or online (attaches to a
running process)
Will require username/password when
needed
Can be run to remotely when connecting to a
running process
 
w
s
a
d
m
i
n
 
I
n
t
r
o
d
u
c
t
i
o
n
 
Launch wsadmin
o
<profilehome>/bin/wsadmin -lang jython
o
wsadmin.sh in Unix systems
<profilehome>/properties/wsadmin.propertie
s for setting certain parameters. You can, for
example set
‘com.ibm.ws.scripting.defaultLang’ to Jython
A script profile can be used with ‘-profile’
option to run a script before the main script
(for example, you can define your own
methods/functions in this file)
 
w
s
a
d
m
i
n
 
I
n
t
r
o
d
u
c
t
i
o
n
 
C
o
n
t
.
.
.
 
You can use the interactive mode to run commands in
wsadmin prompt
o
wsadmin -lang jython
Using ‘-c’ flag, you can invoke one command as part of
invoking wsadmin
o
wsadmin -lang jython -c
AdminControl.getCell()
Using ‘-f’ flag, you can run your own script and then exit
from wsadmin
o
wsadmin -lang jython -f
c:\createMyCluster.py
To enable tracing of wsadmin, uncomment the following
line in wsadmin.properties
com.ibm.ws.scripting.traceString=com.ibm.*=all=enabled
 
w
s
a
d
m
i
n
 
I
n
t
r
o
d
u
c
t
i
o
n
 
C
o
n
t
.
.
.
 
Five Management objects available
o
AdminControl
o
AdminConfig
o
AdminTask
o
AdminApp
o
Help
print Help.AdminControl()
 : General
help about the Administrative object
print
AdminControl.help(“queryNames”) 
:
More specific help about the particular
method/command
 
w
s
a
d
m
i
n
 
M
a
n
a
g
e
m
e
n
t
 
o
b
j
e
c
t
s
 
-
A
d
m
i
n
C
o
n
t
r
o
l
 
Controls Objects in running Websphere
process, for example stop a node agent, or
change log level of an application server
Get the Object on which to run AdminControl
and use AdminControl commands against it
o
myServer =
AdminControl.completeObjectName(‘node=myNode,
type=server,name=myAppServer’,*’)
o
print Help.attributes(myServer)
o
print Help.operations(myServer)
o
AdminControl.invoke(myServer,’stop’)
 
w
s
a
d
m
i
n
 
M
a
n
a
g
e
m
e
n
t
 
o
b
j
e
c
t
s
 
-
A
d
m
i
n
C
o
n
t
r
o
l
 
C
o
n
t
.
.
.
 
To change an attribute of the running
process
 
myServerTrace =
AdminControl.completeObjectName(‘type=Trac
eService,process=myAppServer,*)
 
AdminControl.setAttribute(myServerTrace,’t
raceSpeficiation’,’*=info:com.ibm.ws.rsada
pter.jdbc.*=all’)
The above commands enables sql tracing on
myAppServer
 
w
s
a
d
m
i
n
 
M
a
n
a
g
e
m
e
n
t
 
o
b
j
e
c
t
s
 
-
A
d
m
i
n
C
o
n
f
i
g
 
Retrieves, updates, creates and removes
Configuration objects in WAS repository
Only available when connected to dmgrs
Major steps in using AdminConfig
Determine the the configuration object type
 
print AdminConfig.types()
Get the configuration object id
 
print AdminConfig.list(‘Server’)
 
Server=AdminConfig.getid(‘/Node:myNode/
Server:myServer/’)
 
w
s
a
d
m
i
n
 
M
a
n
a
g
e
m
e
n
t
 
o
b
j
e
c
t
s
 
-
A
d
m
i
n
C
o
n
f
i
g
 
C
o
n
t
.
.
.
 
View the attributes
 
print AdminConfig.attributes(‘Server’)
perform the operation (update,remove,create etc)
jdbcpr =
AdminConfig.getid(‘/JDBCProvider:UserDefi
ned-mySQLServerJDBCProvider/’)
print AdminConfig.show(jdbcpr)
AdminConfig.modify(jdbcpr,
[[‘description’,‘Custom JDBC driver’]])
Save the configuration and sync the nodes
AdminNodeManagement.syncActiveNodes()
 
w
s
a
d
m
i
n
 
M
a
n
a
g
e
m
e
n
t
 
o
b
j
e
c
t
s
 
-
A
d
m
i
n
A
p
p
 
Installs,updates and removes Enterprise
Application
print AdminApp.list()
AdminApp.edit(‘AppName’,options)
AdminApp.editInteractive(‘AppName
’)
 
w
s
a
d
m
i
n
 
M
a
n
a
g
e
m
e
n
t
 
o
b
j
e
c
t
s
 
-
A
d
m
i
n
T
a
s
k
 
Set of Administration commands (grouped
based on the function) to simplify wsadmin
scripts
Generally more user friendly than standard
wsadmin commands
Interactive and batch mode. Interactive
mode presents text based wizards
print AdminTask.help(‘-commands’)
print AdminTask.help(‘-
commandGroups’)
 
A
d
m
i
n
T
a
s
k
 
-
 
P
r
o
p
e
r
t
y
 
f
i
l
e
 
b
a
s
e
d
c
o
n
f
i
g
u
r
a
t
i
o
n
 
Configuration of WAS can be extracted to a
single text file,modified and then applied
using wsadmin
Helps avoid complex wsadmin commands
AdminTask.extractConfigProperties(‘-
configData Node=node1 -
propertiesFileName=myProps.txt’)
Other commands:
validateConfigProperties
applyConfigProperties
deleteConfigProperties
createPropertiesFileTemplates
 
 
 
U
s
i
n
g
 
A
d
m
i
n
i
s
t
r
a
t
i
o
n
 
S
c
r
i
p
t
i
n
g
l
i
b
r
a
r
i
e
s
 
Perform complex functions using just one
command. Pre built Jython scripts for your
use, categorized into various types
Located in <WASHOME>/scriptLibraries.
When you invoke wsadmin, these
commands are loaded and available to you
Review the jython scripts or invoke their
‘help’ method to find out more
print AdminJDBC.help()
print AdminJDBC.listDataSources()
Slide Note
Embed
Share

Learn about the various administrative tools available for managing IBM Certified WebSphere Application Server 8.5. Explore ways to administer through admin consoles, command line utilities, scripting, and JMX programs. Understand the importance of admin consoles, different types available, and how to access and utilize them effectively. Discover tips on saving configurations, tracking activities, and managing resources efficiently within the admin console environment.


Uploaded on Sep 08, 2024 | 1 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

E N D

Presentation Transcript


  1. IBM Certified WebSphere Application Server 8.5 Administrator A course to get certified in 7 days Karun Subramanian, ESIS Consulting LLC Part 2

  2. Section 4 Administrative Tools

  3. Ways to Administer Admin Consoles Command line utilities scripting using wsadmin JMX programs Admin Console is the widely used tool. Command line and scripting can be very powerful and can save time for repetitive tasks While JMX programs can be used to administer, it is very rare in practice

  4. Admin Consoles Various types of consoles available Admin consoles are web based applications ISC (Integrated Solutions Console) is the primary way to administer a cell. It is installed in the DMGR Admin Console for Administrative agents manages Nodes that are registered to it Job Manager Admin Console manages the Job manager settings and submits jobs

  5. Admin Consoles Cont... Generally accessed through URL https://<your server>/WC_adminhost_secure/ibm/console Your activity is tracked at <profile home>/wstemp so that it can be recovered in case of unexpected exit from the console Using Console preferences, the commands used by WAS during the Admin Console activity can be logged For most of the operations within Admin console, you can view the command used by WAS

  6. Admin Consoles Cont... Resources can be created in various scopes o Application o Application Server o Node o Cluster o Cell Granular scope overrides if the same resource is defined in multiple scopes Admin console provides an option to view the available scopes either in a drop down list or using fields

  7. Admin Consoles Cont... Whenever you make changes in Admin console, you are prompted for saving . It is a good idea to click on the review link to see what files are being modified You can also save the configuration using System Administration -> Save Changes to Master Repository

  8. Admin Consoles Cont... Admin Console provides few Guided Activities such as Creating and configuring a cluster for workload management , Configuring database connectivity etc Admin console can show runtime events generated by Application Server classes Guided activities walks you through step by step while you perform the actual steps You cannot login to the same Admin console using the same user id using two different browser windows

  9. Securing Admin Consoles Enable Administrative Security to secure Admin Console You must determine the user repository to use (Active directory, Local OS File based repository etc) Administrative security is NOT the same as Application security In order to access the Admin console, the user must authenticate against the chosen repository and also belong to a administrative role defined in the Admin console (screenshot)

  10. Securing Admin Consoles Cont... Fine grained security possible. Resources can be grouped into Authorization groups and users can be assigned to required administrative role within the authorization group Cell wide authorization group is also available Users and Groups -> Manage Users (or) Manage Groups Users and Groups -> Administrative user roles (or) Administrative group roles

  11. Various Administrative roles Administrator: Can do everything except map users to Administrative roles Admin Security Manager: Map users to Administrative roles and manage authorization groups Auditor: View and change Security Auditing Configurator: Change WAS Configuration Operator: Can start/stop services Monitor:Can view configuration and runtime Deployer: Can configure/deploy Applications ISCAdmin: Manage users and groups within the Admin console only

  12. Job Manager Console Manages jobs submitted to targets that are registered to the Job Manager Loosely coupled administrative functionality You can manage jobs via ISC (Integrated solutions console) as well (which tree ?) You can start/stop Servers, start/stop/install Applications and liberty profile resources, create/delete Servers and clusters, install/update IIM (IBM installation manager) You can also run wsadmin scripts on target using Job Manager console

  13. Command line Tools Several commands available Windows commands are .bat whereas Unix commands are .sh Commands are located in <WASHOME>/bin and <PROFILEHOME>/bin. Where you run the command from is significant Most commands accept -profileName parameter which ensures the profile against which the command is run When required, the command will prompt username/password

  14. Sample commands startServer <server name> : Starts an Application Server stopManager : Stops Deployment Manager serverStatus -all : Shows status of all the Servers versioninfo : Shows versions of installed Websphere Application Server products addNode : Federates a node into a cell managesdk : defines the JDK version used by WAS manageprofile : Manages profiles

  15. Administration using Scripting Very powerful way of Administering WAS If you can do it through Admin Console, you can do it through wsadmin Uses Bean Scripting framework. Jython is the preferred language. Jcal is being deprecated Can be run offline or online (attaches to a running process) Will require username/password when needed Can be run to remotely when connecting to a running process

  16. wsadmin Introduction Launch wsadmin o <profilehome>/bin/wsadmin -lang jython o wsadmin.sh in Unix systems <profilehome>/properties/wsadmin.propertie s for setting certain parameters. You can, for example set com.ibm.ws.scripting.defaultLang to Jython A script profile can be used with -profile option to run a script before the main script (for example, you can define your own methods/functions in this file)

  17. wsadmin Introduction Cont... You can use the interactive mode to run commands in wsadmin prompt o wsadmin -lang jython Using -c flag, you can invoke one command as part of invoking wsadmin o wsadmin -lang jython -c AdminControl.getCell() Using -f flag, you can run your own script and then exit from wsadmin o wsadmin -lang jython -f c:\createMyCluster.py To enable tracing of wsadmin, uncomment the following line in wsadmin.properties com.ibm.ws.scripting.traceString=com.ibm.*=all=enabled

  18. wsadmin Introduction Cont... Five Management objects available o AdminControl o AdminConfig o AdminTask o AdminApp o Help print Help.AdminControl() : General help about the Administrative object print AdminControl.help( queryNames ) : More specific help about the particular method/command

  19. wsadmin Management objects - AdminControl Controls Objects in running Websphere process, for example stop a node agent, or change log level of an application server Get the Object on which to run AdminControl and use AdminControl commands against it o myServer = AdminControl.completeObjectName( node=myNode, type=server,name=myAppServer ,* ) o print Help.attributes(myServer) o print Help.operations(myServer) o AdminControl.invoke(myServer, stop )

  20. wsadmin Management objects - AdminControl Cont... To change an attribute of the running process myServerTrace = AdminControl.completeObjectName( type=Trac eService,process=myAppServer,*) AdminControl.setAttribute(myServerTrace, t raceSpeficiation , *=info:com.ibm.ws.rsada pter.jdbc.*=all ) The above commands enables sql tracing on myAppServer

  21. wsadmin Management objects - AdminConfig Retrieves, updates, creates and removes Configuration objects in WAS repository Only available when connected to dmgrs Major steps in using AdminConfig Determine the the configuration object type print AdminConfig.types() Get the configuration object id print AdminConfig.list( Server ) Server=AdminConfig.getid( /Node:myNode/ Server:myServer/ )

  22. wsadmin Management objects - AdminConfig Cont... View the attributes print AdminConfig.attributes( Server ) perform the operation (update,remove,create etc) jdbcpr = AdminConfig.getid( /JDBCProvider:UserDefi ned-mySQLServerJDBCProvider/ ) print AdminConfig.show(jdbcpr) AdminConfig.modify(jdbcpr, [[ description , Custom JDBC driver ]]) Save the configuration and sync the nodes AdminNodeManagement.syncActiveNodes()

  23. wsadmin Management objects - AdminApp Installs,updates and removes Enterprise Application print AdminApp.list() AdminApp.edit( AppName ,options) AdminApp.editInteractive( AppName )

  24. wsadmin Management objects - AdminTask Set of Administration commands (grouped based on the function) to simplify wsadmin scripts Generally more user friendly than standard wsadmin commands Interactive and batch mode. Interactive mode presents text based wizards print AdminTask.help( -commands ) print AdminTask.help( - commandGroups )

  25. AdminTask - Property file based configuration Configuration of WAS can be extracted to a single text file,modified and then applied using wsadmin Helps avoid complex wsadmin commands AdminTask.extractConfigProperties( - configData Node=node1 - propertiesFileName=myProps.txt ) Other commands: validateConfigProperties applyConfigProperties deleteConfigProperties createPropertiesFileTemplates

  26. Using Administration Scripting libraries Perform complex functions using just one command. Pre built Jython scripts for your use, categorized into various types Located in <WASHOME>/scriptLibraries. When you invoke wsadmin, these commands are loaded and available to you Review the jython scripts or invoke their help method to find out more print AdminJDBC.help() print AdminJDBC.listDataSources()

Related


More Related Content

giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#