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 /var/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 5-4 describes
the various fields included in the sfm.log file.
Table 5-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 /var/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.
Table 5-5 describes the trace levels in Evweb.
Table 5-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. |
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. |
 |
 |  |
 |
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.
The valid trace levels are 1–4. For information about trace
levels, see Table 5-5.
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
options 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.