Virtual TapeServer 8.2 Configuration Guide

Table Of Contents
Troubleshooting | 149
Other log files
The following log files are generated and saved in various directories on the VTS server.
Operating system logs:
/var/log/messages
/var/log/cron
/var/log/boot.log
Apache web server logs:
/var/log/httpd/error_log
/var/log/httpd/access_log
VTS function logs:
/usr/local/tape/log/ems.* (available from the VTS web interface)
/usr/local/tape/log/debug.* (available from the VTS web interface)
/usr/local/tape/log/mount.log
/usr/local/tape/log/export.log (available from the VTS web interface)
/usr/local/tape/log/event.log (available from the VTS web interface; see page 133 for
more information)
/usr/local/tape/log/scanat.log
/usr/local/tape/log/vtape.log
/usr/local/tape/log/upgrade.log
/usr/local/tape/log/ems.lastmount.cmd
/usr/local/tape/log/rescan.txt
/usr/local/tape/log/SecureVTS.log
Note Though you can change the log level of these files, the log level is reset to the default
every time VTS is rebooted.
To view log files, the following commands are useful:
view logfile
To search the file
tail –f –n 35 logfile
To list the file in real-time
grep –ni string logfile
To search for a specific string
less logfile
To search a file by paging through it
Compressed log files can be searched and viewed by using zgrep and zless.
Logwatch reports
Daily Logwatch reports enable you to view significant events that occurred on the system in
the last 24 hours. The reports are generated by parsing events in the Linux log directory
(/var/log) and VTS log directory (/usr/local/tape/log). A report is generated every day at
4a.m. before VTS log files are rotated. Each Logwatch reports is deleted after 120 days. These