HP StorageWorks Storage Mirroring for Linux User's Guide (T2558-96078, February 2008)

13 - 35
Viewing the log files
Use the LogViewer command from the directory where Storage Mirroring is installed to view a Storage Mirroring log file.
Command LOGVIEWER
Description The Storage Mirroring logging utility that records alerts (processing notifications, warnings, and
errors) that occur during
Storage Mirroring processing.
Syntax
LOGVIEWER [-PATH <path>] [-TYPE <number>] [-INCLUDE <list>] [-EXCLUDE <list>]
[-NODATE] [-NOTIME] [-NOPID] [-NOTID] [-NOSEQ] [-NOTYPE] [-NOID] [-HELP]
Options PATH—Allows you to specify a path to the log file
pathSpecify the full path to the log file
TYPE—Allows you to filter the messages that are displayed
number—Specify 1 to display warning and error messages or specify 2 to display warnings, errors,
and notifications
INCLUDEOnly includes specified IDs. All other IDs will not be displayed in the output
EXCLUDEExcludes specified IDs. Ignore the specified IDs and display all others
list—A comma-separated list of IDs or ID ranges that follows the INCLUDE and EXCLUDE
switches. A space should separate the switch from the list but within the list, there should be no
spaces. Ranges are specified with a begin and end number and separated with a dash (-).
NODATEDoes not display the date in the output
NOTIMEDoes not display the time in the output
NOPIDDoes not display the process ID in the output
NOTIDDoes not display the thread ID in the output
NOSEQDoes not display the sequence number in the output
NOTYPEDoes not display the message type number in the output
NOID—Does not display the LogViewer ID in the output
HELP—Displays the command options
Examples
LogViewer -type 2
LogViewer -include 200
Notes The default setting is -type 2 which displays both type 1 and 2 messages.
Paths that contain non-alphanumeric characters must be enclosed in quotation marks.