Chapter 18: Log File Management 169
Scroll New Log Entries
Scroll New Log Entries
To display a view of the messages file that adds new entries as they occur, use the watch
operation. Use the key combination <Control> c to break out of the
watch operation. With no
filename, the command displays the current
messages file.
log watch [filename]
Archive Log Files
To archive log files, use FTP to copy the files to another machine.
1. On the restorer, use the adminaccess show ftp command to see that the FTP service is
enabled. If the service is not enabled, use the command
adminaccess enable ftp.
2. On the restorer, use the adminaccess show ftp command to see that the FTP access list
has the IP address of your remote machine or a class-C address that includes your remote
machine. If the address is not in the list, use the command
adminaccess add ftp
<ipaddr>
.
3. On the remote machine, open a web browser.
4. In the Address box at the top of the web browser, use FTP to access the restorer. For example:
ftp://restorer_name.yourcompany.com/
Note Some web browsers do not automatically ask for a login if a machine does not accept
anonymous logins. In that case, add a user name and password to the FTP line. For example:
ftp://sysadmin:your-pw@restorer_name.yourcompany.com/
5. At the login popup, log into the restorer as user sysadmin.
6. On the restorer, you are in the directory just above the log directory. Open the log directory
to list the
messages files.
7. Copy the file that you want to save. Right-click on the file icon and select Copy To Folder
from the menu. Choose a location for the file copy.
8. If you want the FTP service disabled on the restorer, use SSH to log into the restorer as
sysadmin and give the command
adminaccess disable ftp.