HP Model 755/125cL System Configuration Repository User's Reference: HP-UX/HP - Page 80

Examples, Files, Tmp/lfv_run

Page 80 highlights

SCR Reference (man Pages) scrlog_viewer (1M) - EXAMPLES -t -n file The -t option enables automatic timestamping. If specified, each log entry is tagged with the time of day at which it was written. Timestamping is disabled by default. The -n option forces non-interactive behavior. If specified, scrlog_viewer runs non-interactively, using the default or specified values for all supported options and source/destination files. Specifies the name of the file from which log data is read. The format of the data in the specified file must be the same as that used for raw SCR logfile data. If omitted, the SCR logfile is read. If file is -, stdin is read and scrlog_viewer runs non-interactively. If given, file must be the last argument specified on the command line. EXAMPLES Capture the current contents of the SCR logfile using default filtering, and put into the file scr.out: scrlog_viewer -n > scr.out The following example does the same thing: scrlog_viewer -o scr.out View only the commands executed between 8am June 5, 1999 and 10pm August 14, 1999: scrlog_viewer -s 0605080099 -e 0814220099 -lC Non-interactively read data from stdin, timestamp it, and save the result in the file stdin.out: cat datafile | scrlog_viewer -t -o stdin.out FILES /var/opt/scr/log/scrlog.log SCR logfile. /var/opt/scr/log/scrlog.old Archived version of scrlog.log, created when the logfile is automatically trimmed by SCR when its size becomes too large. Its contents are included in the log entries read by scrlog_viewer. /tmp/LFV_ Temporary files used by scrlog_viewer. /tmp/LFV_RUN 80 Reference

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84

80
Reference
SCR Reference (man Pages)
scrlog_viewer (1M) - EXAMPLES
-t
The
-t
option enables automatic timestamping. If
specified, each log entry is tagged with the time of day
at which it was written. Timestamping is disabled by
default.
-n
The
-n
option forces non-interactive behavior. If
specified,
scrlog_viewer
runs non-interactively, using
the default or specified values for all supported options
and source/destination files.
file
Specifies the name of the file from which log data is
read. The format of the data in the specified file must
be the same as that used for raw SCR logfile data. If
omitted, the SCR logfile is read. If
file
is
-
, stdin is
read and
scrlog_viewer
runs non-interactively. If
given,
file
must be the last argument specified on the
command line.
EXAMPLES
Capture the current contents of the SCR logfile using default filtering,
and put into the file
scr.out
:
scrlog_viewer -n > scr.out
The following example does the same thing:
scrlog_viewer -o scr.out
View only the commands executed between 8am June 5, 1999 and 10pm
August 14, 1999:
scrlog_viewer -s 0605080099 -e 0814220099 -lC
Non-interactively read data from stdin, timestamp it, and save the
result in the file
stdin.out
:
cat datafile | scrlog_viewer -t -o stdin.out
FILES
/var/opt/scr/log/scrlog.log
SCR logfile.
/var/opt/scr/log/scrlog.old
Archived version of
scrlog.log
,
created when the logfile is automatically trimmed by
SCR when its size becomes too large. Its contents are
included in the log entries read by
scrlog_viewer
.
/tmp/LFV_
<pid>
Temporary files used by
scrlog_viewer
.
/tmp/LFV_RUN
<pid>