Administrator's and User's Guide for SFM HP-UX 11i v3 March 2012

The Log Viewer enables you to view low level log information from the log database on a local
HP-UX system. The low level log information include Log Id, Log Index, Device Id, Device Type,
and Time of occurrence.
You can find the low level log information in both Current Log Database and Archive Log Database.
By default, the most recent low level log information is stored in the current log database.
The low level log information is automatically transferred from the Current Log Database to the
Archive Log Database based on either of the following criterion, or whichever occurs first:
The age of the log is greater than 10 days. Logs older than 10 days are automatically stored
in the Archive Log Database.
The page size of the database exceeds 140.
Records in the archive log database are saved for one year. The number of pages in the Archive
Log Database size is 340. These values are defined as XML elements surrounded by <DBConfig>
tag in /var/opt/sfm/conf/DBConfig.xml. If they are changed, enter the following command
at the HP-UX prompt:
# /opt/sfm/bin/sfmconfig -c /var/opt/sfm/conf/DBConfig.xml
sfmDBUtil
The sfmDB utility is used to create a backup of the Postgres database. It can also be used to restore
the same.
/opt/sfm/bin/sfmDBUtil
Two operations can be performed using the utility:
Backup: Back up is the process of taking backup of all the databases including current and
archived database. It is initiated by the administrator. The administrator must execute this
utility with the argument bkup with the destination file name. The data directory is considered
to be the destination.
/opt/sfm/bin/sfmDBUtil bkup dbbackup
Restore: Restore is the process of restoring backed up data and it is initiated by the
administrator. The administrator must execute this utility with the argument restore with the
source file name. The data directory is considered to be the source.
/opt/sfm/bin/sfmDBUtil restore dbbackup
Searching Low Level Logs using Simple Search
To search the log database for low level logs using Log Viewer, complete the following steps:
1. 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.
2. Enter your user name and password in the appropriate text boxes.
3. Click Sign In on the login screen.
The HP SMH home page is displayed.
4. Select Logs on the main menu.
The Logs page is displayed.
5. Select Log Viewer in the Evweb box.
The Log Viewer page is displayed.
6. Provide appropriate information in the fields present in the Log Viewer page.
7. Click Search on the Log Viewer page.
Based on the search criteria, the log records are displayed in a tabular format.
64 Administering indications and instances using HP SMH