The pgcpd process produces syslog messages for many of its functions.
You can configure selection criteria for saving pgcpd messages in
a log trace file.
All log trace files are placed in the /var/log directory.
When a trace file reaches its maximum size, a .0 is appended
to the file name, then a new file is created with a .1 appended,
and so on. When the maximum number of trace files is reached, the
oldest trace file is overwritten.
Step-by-Step Procedure
To configure logging of pgcpd syslog messages:
Access the system syslog configuration.
[edit]
user@host# edit system syslog
[edit system syslog]
Configure the file parameters. In the
example, the file is named myfile and all messages with a severity
equal to or greater than error.
user@host# set file myfile error
Configure the match parameter to select
pgcpd syslog messages.
user@host# set match pgcpd
(Optional) To direct output to one or
more user consoles, configure the user parameter.
user@host# set user testuser
Related Topics
For more information on the options available when configuring
system log messages, refer to:
Chapter 1, Configuring System Log Messages in the JUNOS System Log Messages Reference.