Sun Management Center 3.6.1 User's Guide

Using ctail to Read Sun Management Center Log Files

The ctail command reads the circular log file and by default writes the last 15 lines of the file to standard output.

The ctail command takes four arguments:

filename

The filename argument is the full path name to the circular log file. The filename argument is mandatory.

-f

The -f option is used to monitor the growth of the log file. As the log file grows, the messages appended to the file are also written to the standard output. The ctail -f option is similar to the -f option for the UNIX tail command.

-l

The -l option is used to print the absolute line number at the beginning of each message.

-n

The -n NumOfLines option is used to change the number of lines that are displayed. By default, only the last 15 lines are printed.

To use the es-run interface with the ctail command, you type:


# /opt/SUNWsymon/sbin/es-run ctail [-f, -l, -n NumOfLines] path_to_file_filename