Professional Documents
Culture Documents
04 Mngmon Slides
04 Mngmon Slides
1. Remote Administration
– Configuring Machines
– Node Manager
– Configuring Node Manager
2. Logs and Monitoring
3. SNMP Concepts
4. WLS SNMP Agent
5. WLS SNMP Management Tools
6. Network Channels
Managing and Monitoring a WLS Environment-2 © 2006 BEA Systems, Inc. 142
Node Manager
Managing and Monitoring a WLS Environment-3 © 2006 BEA Systems, Inc. 143
What Node Manager Can Do
Managing and Monitoring a WLS Environment-4 © 2006 BEA Systems, Inc. 144
Node Manager Architecture
Machine A
WLST Node Admin
Manager Console
JMX
Client Admin
Server
Node
Node
Manager
Manager
Managed
Managed
Server 1 Secure Server 2
Machine C Connection
Machine B
Managing and Monitoring a WLS Environment-5 © 2006 BEA Systems, Inc. 145
How Node Manager Starts an
Administration Server
1. Issues command
to start 4. NM creates
Admin Server Node process for AS
Admin
WLST
Manager Server
3. NM obtains
startup properties
for AS
5. AS obtains
domain
2. NM determines configuration
domain directory,
authenticates user
Machine A
Managing and Monitoring a WLS Environment-6 © 2006 BEA Systems, Inc. 146
How Node Manager Starts a Managed
Server
1. Issues command
to start MS1 Admin
Admin
Console Server
4. MS1 obtains
configuration
Machine A
Managed 3. NM creates
Server 1 MS1 process
Machine B
Managing and Monitoring a WLS Environment-7 © 2006 BEA Systems, Inc. 147
How Node Manager Restarts an
Administration Server
3. NM creates
AS process Admin
Server
Node 1. NM determines
Manager AS needs restart
4. AS
2. NM obtains remote obtains domain
start username/ configuration
password,startup
properties for AS
Machine A
Managing and Monitoring a WLS Environment-8 © 2006 BEA Systems, Inc. 148
How Node Manager Restarts a
Managed Server
Machine A
3. NM creates
Managed
MS1 process
Server 1
Managing and Monitoring a WLS Environment-9 © 2006 BEA Systems, Inc. 149
How Node Manager Shuts Down a
Server Instance
Machine A
1. User issues shutdown
Admin Command for MS1 Admin
Console Server
Machine B
2. AS tries to 3. AS sends
Shut down shutdown
MS1 Operating command
System‘ for MS1 to
NM
5. Kill MS1 4. NM tries to
Managed shut down MS1
Server 1 Node
Manager
Managing and Monitoring a WLS Environment-10 © 2006 BEA Systems, Inc. 150
Versions of Node Manager
Managing and Monitoring a WLS Environment-11 © 2006 BEA Systems, Inc. 151
Node Manager Configuration
Managing and Monitoring a WLS Environment-12 © 2006 BEA Systems, Inc. 152
Node Manager Default Behaviors
Managing and Monitoring a WLS Environment-13 © 2006 BEA Systems, Inc. 153
Configuring Java-Based Node Manager
Managing and Monitoring a WLS Environment-14 © 2006 BEA Systems, Inc. 154
Reconfigure Startup Service for
Windows Installation
Managing and Monitoring a WLS Environment-15 © 2006 BEA Systems, Inc. 155
Daemonizing NM for UNIX Systems
Managing and Monitoring a WLS Environment-16 © 2006 BEA Systems, Inc. 156
Configuring Java-Based Node Manager
Security
Managing and Monitoring a WLS Environment-17 © 2006 BEA Systems, Inc. 157
Administration Console NM Security
Managing and Monitoring a WLS Environment-18 © 2006 BEA Systems, Inc. 158
Remote Server Start Security for Java-
Based Node Manager
Managing and Monitoring a WLS Environment-19 © 2006 BEA Systems, Inc. 159
Reviewing nodemanager.properties
Managing and Monitoring a WLS Environment-20 © 2006 BEA Systems, Inc. 160
Configuring Node Manager on Multiple
Machines
Managing and Monitoring a WLS Environment-21 © 2006 BEA Systems, Inc. 161
Configurating Script-Based Node
Manager
Managing and Monitoring a WLS Environment-22 © 2006 BEA Systems, Inc. 162
Using SSL With Script-based NM
Managing and Monitoring a WLS Environment-23 © 2006 BEA Systems, Inc. 163
Creating a Node Manager User
Managing and Monitoring a WLS Environment-24 © 2006 BEA Systems, Inc. 164
Configuring Script-Based Node
Manager Security
Managing and Monitoring a WLS Environment-25 © 2006 BEA Systems, Inc. 165
Additional Configuration Information
Managing and Monitoring a WLS Environment-26 © 2006 BEA Systems, Inc. 166
Configuring a Machine to User Node
Manager
Managing and Monitoring a WLS Environment-27 © 2006 BEA Systems, Inc. 167
Configuring nodemanager.domains
File
Managing and Monitoring a WLS Environment-28 © 2006 BEA Systems, Inc. 168
Configuring Remote Startup
Arguments
Managing and Monitoring a WLS Environment-29 © 2006 BEA Systems, Inc. 169
Ensuring Administration Server
Address is Defined
Managing and Monitoring a WLS Environment-30 © 2006 BEA Systems, Inc. 170
Setting Node Manager Environment
Variables
Environment Description
Variable
JAVA_HOME Root directory of JDK that you are using for Node Manager. For example:
set JAVA_HOME=c:\bea\jdk1.5.0_04
Node Manager has the same JDK version requirements as WebLogic Server.
PATH Must include the WebLogic Server bin directory and path to your Java executable. For example:
set PATH=%WL_HOME%\server\bin;%JAVA_HOME%\bin;%PATH%
LD_LIBRARY_ For HP UX and Solaris systems, you must include the path to the native Node Manager libraries.
PATH Solaris example:
(UNIX LD_LIBRARY_PATH:$WL_HOME/server/lib/solaris:$WL_HOME/server/lib/solaris/oci816_8
only) HP UX example:
SHLIB_PATH=$SHLIB_PATH:$WL_HOME/server/lib/hpux11:$WL_HOME/server/lib/hpux11/oci816_8
CLASSPATH You can set the Node Manager CLASSPATH either as an option on the java command line used to start Node
Manager, or as an environment variable.
Windows example:
set CLASSPATH=.;%WL_HOME%\server\lib\weblogic_sp.jar;%WL_HOME%\server\lib\weblogic.jar
Managing and Monitoring a WLS Environment-31 © 2006 BEA Systems, Inc. 171
Node Manager Configuration and Log
Files
Node
Manager
Server configuration files:
boot.properties
Node manager log files startup.properties
nodemanager.log
Server state files:
server_2.lck
server_2.pid
server_2 server_2.state
Server log files:
server_2.out
Managing and Monitoring a WLS Environment-32 © 2006 BEA Systems, Inc. 172
Node Manager Configuration and Log
Files
Managing and Monitoring a WLS Environment-33 © 2006 BEA Systems, Inc. 173
Section Review
Managing and Monitoring a WLS Environment-34 © 2006 BEA Systems, Inc. 174
Exercise
Lab Exercise
Managing and Monitoring a WLS Environment-35 © 2006 BEA Systems, Inc. 175
Exercise
Lab Exercise
Managing and Monitoring a WLS Environment-36 © 2006 BEA Systems, Inc. 176
Road Map
1. Remote Administration
2. Logs and Monitoring
– Using Log Files
– Monitoring Servers
3. SNMP Concepts
4. WLS SNMP Agent
5. WLS SNMP Management Tools
6. Network Channels
Managing and Monitoring a WLS Environment-37 © 2006 BEA Systems, Inc. 177
Using Logs
Managing and Monitoring a WLS Environment-38 © 2006 BEA Systems, Inc. 178
Main Server Logs
f A Server log:
– logs all server activity
– is stored in serverName\logs\<serverName>.log
by default
f A Domain log:
– logs all domain activity
– is stored in
<AdminServer>\logs\<domainName>.log
by default
f These logs are independently configured.
Managing and Monitoring a WLS Environment-39 © 2006 BEA Systems, Inc. 179
Configuring Server Logging
Managing and Monitoring a WLS Environment-40 © 2006 BEA Systems, Inc. 180
Messages Forwarded to Domain Log
Forwarded to
Severity Domain Log Meaning
by Default
Informational No Used for reporting normal operations.
An informational message with a higher level of
Notice Yes
importance
A suspicious operation or configuration has occurred
Warning Yes
but it may not have an impact on normal operation.
A user error has occurred. The system or application is
Error Yes able to handle the error with no interruption, and limited
degradation, of service.
A system or service error has occurred. The system is
Critical Yes able to recover but there might be a momentary loss, or
permanent degradation, of service.
A particular service is in an unusable state while other
parts of the system continue to function. Automatic
Alert Yes
recovery is not possible; the immediate attention of the
administrator is needed to resolve the problem.
The server is in an unusable state. This severity
Emergency Yes
indicates a severe system failure or panic.
Managing and Monitoring a WLS Environment-41 © 2006 BEA Systems, Inc. 181
Message Attributes
####<Jun 2, 2000 10:23:02 AM PDT> <Info> <SSL> <bigbox> <myServer>
<SSLListenThread> <harry> <> <004500> <Using exportable strength SSL>
Attribute Description
The time and date when the message originated, in a format that is
Timestamp
specific to the locale.
Indicates the degree of impact or seriousness of the event reported by the
Severity
message.
This attribute denotes the particular subsystem of WebLogic Server that
Subsystem
was the source of the message. For example, EJB, RMI, JMS.
Server Name
These four attributes identify the origins of the message. Transaction ID is
Machine Name present only for messages logged within the context of a transaction.
Thread ID Note: Server Name and Thread ID are not present in log messages
generated by a Java client and logged to a client log.
Transaction ID
User ID The user from the security context when the message was generated.
A unique six-digit identifier. Message IDs through 499999 are reserved for
Message ID
WebLogic Server system messages.
Managing and Monitoring a WLS Environment-42 © 2006 BEA Systems, Inc. 182
Log Filters
Managing and Monitoring a WLS Environment-43 © 2006 BEA Systems, Inc. 183
Creating Log Filters
3
4
Managing and Monitoring a WLS Environment-44 © 2006 BEA Systems, Inc. 184
Assigning a Log Filter
Managing and Monitoring a WLS Environment-45 © 2006 BEA Systems, Inc. 185
Message Catalog
Managing and Monitoring a WLS Environment-46 © 2006 BEA Systems, Inc. 186
Message Catalog
Managing and Monitoring a WLS Environment-47 © 2006 BEA Systems, Inc. 187
Using the Console to Monitor
Attribute Description
Many of the Console’s objects have a Monitoring
tab, that allows you to view monitoring
information for that object
Managing and Monitoring a WLS Environment-48 © 2006 BEA Systems, Inc. 188
Monitoring Running Servers
Managing and Monitoring a WLS Environment-49 © 2006 BEA Systems, Inc. 189
Customizing views
Managing and Monitoring a WLS Environment-50 © 2006 BEA Systems, Inc. 190
Monitoring Individual Servers
Managing and Monitoring a WLS Environment-51 © 2006 BEA Systems, Inc. 191
Section Review
Managing and Monitoring a WLS Environment-52 © 2006 BEA Systems, Inc. 192
Road Map
1. Remote Administration
2. Logs and Monitoring
3. SNMP Concepts
– Architecture, MIB, OID
– SNMP Agent
– Trap Notifications
– SNMP Features of WLS
4. WLS SNMP Agent
5. WLS SNMP Management Tools
6. Network Channels
Managing and Monitoring a WLS Environment-53 © 2006 BEA Systems, Inc. 193
SNMP
Managing and Monitoring a WLS Environment-54 © 2006 BEA Systems, Inc. 194
SNMP Architecture
Managed
Device
Managing and Monitoring a WLS Environment-55 © 2006 BEA Systems, Inc. 195
Management Information Base (MIB)
Managing and Monitoring a WLS Environment-56 © 2006 BEA Systems, Inc. 196
SNMP Polling
Management
Console SNMP
SNMPpolling
polling
MIBs is
isdone
doneon
on
UDP
UDPport
port161.
161.
1 Manager "polls" for a
specific managed
object (asks for value)
4
Agent returns
data to requestor 2 Agent interacts Managed
with device to get Device
Agent requested data
Data is
3 returned to agent
Managing and Monitoring a WLS Environment-57 © 2006 BEA Systems, Inc. 197
SNMP Traps
Management SNMP
Console
SNMPtraps
traps
MIBs are
aresent
sentonon
UDP
UDPport
port162.
162.
Managed
Agent
Device
3 Agent
4 monitors the
Alert generated
events
Managing and Monitoring a WLS Environment-58 © 2006 BEA Systems, Inc. 198
OIDs
.1
f Each managed object is represented by an
identifier, called the Object IDentifier (OID). .2 .3
f The OIDs:
– are represented as dot-separated integers .6
(e.g.: .1.3.6.1.4.1.140 …) .0 .9
– are hierarchical .1
– refer to single objects (leaf) or groups (branches)
.4
.1 .8
.140
Managing and Monitoring a WLS Environment-59 © 2006 BEA Systems, Inc. 199
The Root for WLS OIDs
Managing and Monitoring a WLS Environment-60 © 2006 BEA Systems, Inc. 200
WebLogic Server 9.1 MIB Reference
Managing and Monitoring a WLS Environment-61 © 2006 BEA Systems, Inc. 201
WebLogic Server 9.1 MIB Reference
Managing and Monitoring a WLS Environment-62 © 2006 BEA Systems, Inc. 202
WLS SNMP Support
Managing and Monitoring a WLS Environment-63 © 2006 BEA Systems, Inc. 203
WLS SNMP Architecture
Request
SNMP
f The WLS SNMP Managemet
Response SNMP Service
(SNMP Agent)
Agent: Station Traps
GET GET
Managed Managed
Server Server
Managing and Monitoring a WLS Environment-64 © 2006 BEA Systems, Inc. 204
WLS Managed Objects
Managing and Monitoring a WLS Environment-65 © 2006 BEA Systems, Inc. 205
WLS Traps
Managing and Monitoring a WLS Environment-66 © 2006 BEA Systems, Inc. 206
SNMP and WLS MBeans
MBeans MIB
Managing and Monitoring a WLS Environment-67 © 2006 BEA Systems, Inc. 207
WLS SNMP Management Tools
Managing and Monitoring a WLS Environment-68 © 2006 BEA Systems, Inc. 208
SNMP Vendors
Managing and Monitoring a WLS Environment-69 © 2006 BEA Systems, Inc. 209
Section Review
Managing and Monitoring a WLS Environment-70 © 2006 BEA Systems, Inc. 210
Road Map
1. Remote Administration
2. Logs and Monitoring
3. SNMP Concepts
4. WLS SNMP Agent
– Activating the SNMP Agent
– Registering Managers to Receive Traps
– Setting Up Traps
5. WLS SNMP Management Tools
6. Network Channels
Managing and Monitoring a WLS Environment-71 © 2006 BEA Systems, Inc. 211
Turning On the WLS SNMP Agent
Managing and Monitoring a WLS Environment-72 © 2006 BEA Systems, Inc. 212
Registering Managers for Traps
Managing and Monitoring a WLS Environment-73 © 2006 BEA Systems, Inc. 213
Creating User-Defined Traps
Managing and Monitoring a WLS Environment-74 © 2006 BEA Systems, Inc. 214
Section Review
Managing and Monitoring a WLS Environment-75 © 2006 BEA Systems, Inc. 215
Road Map
1. Remote Administration
2. Logs and Monitoring
3. SNMP Concepts
4. WLS SNMP Agent
5. WLS SNMP Management Tools
– Overview
– Using snmpwalk and snmptrapd
6. Network Channels
Managing and Monitoring a WLS Environment-76 © 2006 BEA Systems, Inc. 216
SNMP Tools
Managing and Monitoring a WLS Environment-77 © 2006 BEA Systems, Inc. 217
Getting All Objects In a Branch
Syntax:
Arguments:
port The port for the trap notifications; see agent’s configuration. The default is 161.
community The password-like identifier which this manager tool will use. The default is ‘public’.
host The address of the agent to poll.
OID The full numeric object identifier of the branch to traverse.
10
0101
1110
Managing and Monitoring a WLS Environment-78 © 2006 BEA Systems, Inc. 218
Listening to Trap Notifications
Syntax:
Arguments:
port The port for the trap notifications; see agent’s configuration. The default
is 162.
community The password-like identifier which this manager tool will use. The
default is ‘public’.
10
0101
1110
Managing and Monitoring a WLS Environment-79 © 2006 BEA Systems, Inc. 219
Example: Polling an Object
OID root for jvmRuntimeOSName
“Complete” OID
Managing and Monitoring a WLS Environment-80 © 2006 BEA Systems, Inc. 220
Example: Catching a Trap
Managing and Monitoring a WLS Environment-81 © 2006 BEA Systems, Inc. 221
Section Review
Managing and Monitoring a WLS Environment-82 © 2006 BEA Systems, Inc. 222
Exercise
Lab Exercise
Managing and Monitoring a WLS Environment-83 © 2006 BEA Systems, Inc. 223
Road Map
1. Remote Administration
2. Logs and Monitoring
3. SNMP Concepts
4. WLS SNMP Agent
5. WLS SNMP Management Tools
6. Network Channels
– Addressing Features
– Administration Port
Managing and Monitoring a WLS Environment-84 © 2006 BEA Systems, Inc. 224
Network Addressing Features…
Managing and Monitoring a WLS Environment-85 © 2006 BEA Systems, Inc. 225
…Network Addressing Features
Machine Machine
Default Channel
NIC1 Server A NIC1
Channel 1
Server C
Default Channel
NIC2 Server B NIC2
Channel 2
Managing and Monitoring a WLS Environment-86 © 2006 BEA Systems, Inc. 226
Network Channels
f Network channels:
– define a set of basic attributes of a network connection to
WLS.
– can assign multiple channels to a single server (segment
network traffic).
– can prioritize internal (non-URL) connections.
– can separate incoming client traffic from internal server to
server traffic in a domain.
– “default” channel gets automatically generated when a server
is created.
Managing and Monitoring a WLS Environment-87 © 2006 BEA Systems, Inc. 227
Configuring Network Channels
Managing and Monitoring a WLS Environment-88 © 2006 BEA Systems, Inc. 228
Using Channels Example 1
Server A
f Multiple NICs per server NIC_A1
StandardChannel 192.168.1.500 8001
– each server has 2 NICs
NIC_A2
– Each NIC has one channel, SecureChannel 192.168.1.501 8002
Managing and Monitoring a WLS Environment-89 © 2006 BEA Systems, Inc. 229
Using Channels Example 2
Servlet EJB
NIC
ClientChannel 192.168.1.500
NIC NIC
192.168.1.505 AppChannel AppChannel 192.168.1.600
Managing and Monitoring a WLS Environment-90 © 2006 BEA Systems, Inc. 230
Administration Port…
Managing and Monitoring a WLS Environment-91 © 2006 BEA Systems, Inc. 231
…Administration Port
Managing and Monitoring a WLS Environment-92 © 2006 BEA Systems, Inc. 232
Override Administration Port
Managing and Monitoring a WLS Environment-93 © 2006 BEA Systems, Inc. 233
Section Review
Managing and Monitoring a WLS Environment-94 © 2006 BEA Systems, Inc. 234
Exercise
Lab Exercise
Managing and Monitoring a WLS Environment-95 © 2006 BEA Systems, Inc. 235
Module Review
Managing and Monitoring a WLS Environment-96 © 2006 BEA Systems, Inc. 236