This section provides an overview of tracing and information
about the various trace levels in EVWEB. This section also describes administrative
tasks, such as enabling, modifying, and disabling tracing.
This section discusses the following topics:
Overview |
 |
Tracing is an error logging
and reporting facility. You can use this facility to log information
about problems encountered while using EVWEB. All information about
errors is logged in sfm.log. The default location of the sfm.log file is /opt/sfm/log/sfm.log. You can send these log files to the HP support center
whenever you encounter a problem.
Following is a sample of the information logged in sfm.log.
01/04/06 06:50:08 EVMAN_COMMANDS ERROR 1069627450 1 Subscription with this name already exist, Please choose different name and try again.
Table 4-1 “Entries in sfm.log” describes the various
fields included in the sfm.log file.
Table 4-1 Entries in sfm.log
| Field | Description |
|---|
Date | Displays the date when the message was
logged in the sfm.log file. |
Time | Displays the time when the message was
logged in the sfm.log file. |
Module Name | Displays the name of the module or the
providers that logged the message in the sfm.log file, for example, EVWEB_CLI, FMDProviders. |
Severity | Displays the severity of the message
logged in the sfm.log file. |
Process ID | Displays the 10-digit process ID. |
Thread ID | Displays the thread ID. |
Message | Displays the text message. |
To change the default location of the sfm.log file, you must configure the /opt/sfm/conf/fmloggerconfig.xml file.
You can enable tracing for an EVWEB session. A session is
the duration between a login and a logout. When you enable tracing,
make sure that you set a trace level. EVWEB logs traces for a session
for the set trace level. At the end of a session, tracing is automatically
disabled. In an active session, the trace level remains valid until
you modify it.
The traces for a session are also logged in the samlog.log. The path to the samlog.log file is /var/sam/log/samlog.log. From the GUI, you can access the samlog.log file from HP SMH home page -> Logs -> Samlog.
The samlog.log file contains all the administrative commands executed
on a system. The errors generated during the execution of these administrative
commands are also stored in the samlog.log file.
 |
 |  |
 |
 | NOTE: Tracing is available for administrators only. However, non-administrators
can view the trace files. |
 |
 |  |
 |
Table 4-2 “Trace Levels in EVWEB” describes the trace
levels in EVWEB.
Table 4-2 Trace Levels in EVWEB
| Trace Level | Description |
|---|
| 1-Critical | The system logs only those situations
in EVWEB that cause major failures. Example: The database server
is not functioning properly or is down. |
| 2-Error | The system logs those situations that
cause an error. Example: There is more than one name.
EVWEB accepts only one name. Critical situations are
also logged at the Error trace level. |
| 3-Warning | The system logs situations that result
in warning messages. Example: A warning is generated
when the default setting is modified. Both critical
and error situations are logged at the Warning trace level. |
| 4-Information | The system logs situations that result
in information messages. Example: An information is generated
when a non-administrator attempts to perform a task that can be performed
only by an administrator. Critical, error, and warning situations
are logged at the Information trace level. |
Enabling
Tracing Using EVWEB GUI |
 |
To enable tracing, complete the following steps:
Log in to the System
Management Homepage.
To log in to HP SMH, enter http://<hostname>: 2301 in the address bar of a Web browser. The HP SMH login
screen is displayed.
Enter your user name and password
in the appropriate text boxes.
Click Sign In on the login screen.
The HP SMH home page is displayed.
Do one of the following:
Select
Tools -> Subscription Administration.
or
Select Logs ->
Event Viewer.
Select Enable Tracing available
at the top right corner of the page.
The Enable tracing page is displayed.
 |
 |  |
 |
 | NOTE: The Enable Tracing option is not displayed if tracing
is already enabled. Instead, Disable Tracing and Modify Tracing
options are displayed. |
 |
 |  |
 |
Set the trace level by selecting the level in the Trace
Level list.
Select Enable Tracing.
The tracing level is set and a confirmation message is displayed.
Click OK on
the confirmation message window.
For more information on enabling tracing using the HP SMH
GUI, select Help on the action
pane of either the Event Viewer or the Event Subscription Administration
page.
Enabling
Tracing Using EVWEB CLI |
 |
To enable tracing using EVWEB CLI, you must export the environment variable,
EVWEB_TRACE_LEVEL. At the HP-UX prompt, enter the following command:
# EXPORT EVWEB_TRACE_LEVEL=<trace value>
Tracing is now enabled. The trace value refers to the trace level that you want to set.
Modifying
Tracing Using EVWEB GUI |
 |
To modify tracing, complete the following steps:
Log in to the System
Management Homepage.
To log in to HP SMH, enter http://<hostname>: 2301 in the address bar of a Web browser. The HP SMH login
screen is displayed.
Enter your user name and password
in the appropriate text boxes.
Click Sign In on the login screen.
The HP SMH home page is displayed.
Do one of the following:
Select
Tools -> Subscription Administration.
or
Select Logs ->
Event Viewer.
Select Modify Tracing available
at the top right corner of the page.
The Modify Tracing page is displayed.
 |
 |  |
 |
 | NOTE: The Modify Tracing option is not displayed if tracing
is not enabled. |
 |
 |  |
 |
Change the trace level by selecting the level in the
Trace Level list.
Select Modify Tracing.
The tracing level is modified and a confirmation message is
displayed.
Click OK on
the confirmation message window.
For more information on modifying tracing using the HP SMH
GUI, select Help on the action
pane of either the Event Viewer or the Event Subscription Administration
page.
Modifying
Tracing Using EVWEB CLI |
 |
To modify tracing using EVWEB CLI, enter the following command
at the HP-UX prompt:
# EXPORT EVWEB_TRACE_LEVEL=<new trace value>
Tracing is now modified. The new trace value refers to the
trace level that you want to set.
Disabling
Tracing Using EVWEB GUI |
 |
To disable tracing, complete the following steps:
Log in to the System
Management Homepage.
To log in to HP SMH, enter http://<hostname>: 2301 in the address bar of a Web browser. The HP SMH login
screen is displayed.
Enter your user name and password
in the appropriate text boxes.
Click Sign In on the login screen.
The HP SMH home page is displayed.
Do one of the following:
Select
Tools -> Subscription Administration.
or
Select Logs ->
Event Viewer.
Select Disable Tracing available
at the top right corner of the page.
The tracing is disabled and a confirmation message is displayed.
 |
 |  |
 |
 | NOTE: The Disable Tracing option and the Modify Tracing optionis
not displayed if tracing is not enabled. |
 |
 |  |
 |
Click OK on
the confirmation message window.
For more information on disabling tracing using the HP SMH
GUI, select Help on the action
pane of either the Event Viewer or the Event Subscription Administration
page.