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 tracing to log information about
problems encountered while using EVWEB. This information is referred
to as trace records in this manual. The trace records are stored
in the /var/opt/sfm/log/sfm.log file. You can send the sfm.log file 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-4 “Entries in sfm.log” describes the various
fields included in the sfm.log file.
Table 4-4 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, modify, and disable tracing for an EVWEB session.
A session is the duration between a login and a logout. At the end
of a session, tracing is automatically disabled. In an active session,
the trace level remains valid until you modify it.
EVWEB provides the following trace levels in the descending
order of severity:
Table 4-5 “Trace Levels in EVWEB” describes the trace
levels in EVWEB.
Table 4-5 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. |
Irrespective of whether tracing is enabled or not, the administrative commands
for creating, modifying, and deleting subscriptions, and deleting
events are stored in the /var/sam/log/samlog.log file. From the GUI, you can access the samlog.log file from HP SMH home page -> Logs -> Samlog.
 |
 |  |
 |
 | NOTE: Tracing is available for administrators only. |
 |
 |  |
 |
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.
 |
 |  |
 |
 | NOTE: The Enable Tracing option is not displayed if tracing
is already enabled. Instead, Disable Tracing and Modify Tracing
options are displayed. |
 |
 |  |
 |
Select Enable Tracing available
at the top right corner of the page.
The Enable tracing page is 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.
 |
 |  |
 |
 | NOTE: The Modify Tracing option is not displayed if tracing
is not enabled. |
 |
 |  |
 |
Select Modify Tracing available
at the top right corner of the page.
The Modify Tracing page is displayed.
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.
 |
 |  |
 |
 | NOTE: The Disable Tracing option and the Modify Tracing options
not displayed if tracing is not enabled. |
 |
 |  |
 |
Select Disable Tracing available at the top right corner
of the page.
The tracing is disabled and a confirmation message is displayed.
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.