United States-English |
|
|
HP-UX Reference > Ssamlog_viewer(1)HP-UX 11i Version 3: February 2007 |
|
NAMEsamlog_viewer — a tool for viewing and saving the SAM logfile SYNOPSIS/usr/sam/bin/samlog_viewer [-s mmddhhmm[[cc]yy]] [-e mmddhhmm[[cc]yy]] [-l SDVC] [-u user] [-o ofile] [-t] [-n] [file] DESCRIPTIONThe samlog_viewer command enables the viewing of part or all of the SAM logfile (or another file containing data in the same format) at varying levels of detail. This tool is run by SAM whenever the View SAM Log option is chosen. It can also be run independently of SAM, in either interactive or noninteractive mode. The samlog_viewer command executes in either interactive or noninteractive mode, depending on the options given. In noninteractive mode, samlog_viewer filters the source file and writes the resulting data either to stdout or to a destination file. In interactive mode, samlog_viewer displays a graphical user interface enabling you to try different combinations of filtering, save one or more versions of the source file to other files, scroll back and forth among the logfile entries, etc. Under no circumstances is samlog_viewer destructive to the contents of the SAM logfile (or whatever source file is specified by file). The contents of the source file are filtered and displayed (or output) according to the settings of the available filters. Multiple instances of samlog_viewer can be run simultaneously without harmful effects. Filterssamlog_viewer supports three types of filters: level of detail, date/time, and user filters. These filters can be used in combination to provide highly selective logfile viewing. The level of detail filters control how much detail is displayed. The SAM logfile may contain entries of many different types. The entry types currently supported are: summary, detail, verbose, error, and note. The level of detail filters display some or all of these entry types, depending on which filter is chosen. The level of detail filters are:
The date/time filters are used to ask for entries written since a specific date/time, before a specific date/time, or both. The user filters are for viewing only those entries written by a particular user. If invoked with the -u option, its argument is used as the user whose entries should be shown. If user filtering is selected by the -u option, samlog_viewer displays only entries made by that user and disallows any changes to the user filtering. This is useful for allowing nonprivileged users to run samlog_viewer and see only those entries that pertain to them. Otherwise, samlog_viewer allows the user filtering to be changed, or completely disabled, from its interactive filtering screen. OptionsThe following options enable you to set up filtering and other attributes. If samlog_viewer runs interactively, these attributes may also be set and modified in the various supported menus and displays. The available options are:
EXAMPLESCapture the current contents of the SAM logfile using default filtering, and put into the file sam.out: samlog_viewer -n >sam.out The following example does the same thing: samlog_viewer -o sam.out View only the commands executed by SAM on behalf of user tom, between 8am June 5, 1994 and 10pm August 14, 1994, and view the data interactively: samlog_viewer -s 060508001994 -e 081422001994 -lC -u tom Noninteractively read data from stdin, timestamp it, and save the result in a file called stdin.out: cat datafile | samlog_viewer -t -o stdin.out - Do the same as above, but instead have the data appear on stdout: cat datafile | samlog_viewer -t -o - - or cat datafile | samlog_viewer -tn - FILES
|
Printable version | ||
|