HP Visualize c160L System Configuration Repository User's Reference: HP-UX/HP - Page 80
Examples, Files, Tmp/lfv_run
View all HP Visualize c160L manuals
Add to My Manuals
Save this manual to your list of manuals |
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