DHCP local server supports the world-readable option and the no-world-readable option
for the traceoptions statement and the interface-traceoptions statement. To specify that
all users can read the log file:
•
Configure the log file to be world-readable for global tracing operations.
[edit system processes dhcp-service traceoptions]
user@host# set file filename world-readable
•
Configure the log file to be world-readable for per-interface tracing operations.
[edit system processes dhcp-service interface-traceoptions]
user@host# set file filename world-readable
To explicitly set the default behavior, in which the log file can only be read by the user
who configured tracing:
•
Configure the log file to be no-world-readable for global tracing operations.
[edit system processes dhcp-service traceoptions]
user@host# set file filename no-world-readable
•
Configure the log file to be no-world-readable for per-interface tracing operations.
[edit system processes dhcp-service interface-traceoptions]
user@host# set file filename no-world-readable
Configuring a Regular Expression for Extended DHCP Messages to Be Logged
By default, the trace operation output includes all messages relevant to the logged
events. You can refine the output by including regular expressions to be matched.
DHCP local server supports the match option for the traceoptions statement and the
interface-traceoptions statement. To configure regular expressions to be matched:
•
Specify the regular expression for global tracing operations.
[edit system processes dhcp-service traceoptions]
user@host# set file filename match regular-expression
•
Specify the regular expression for per-interface tracing operations.
[edit system processes dhcp-service interface-traceoptions]
user@host# set file filename match regular-expression
Configuring the Extended DHCP Tracing Flags
By default, only important events are logged. You can specify which events and operations
are logged by specifying one or more tracing flags.
DHCP local server supports the flag option for the traceoptions statement and the
interface-traceoptions statement. A smaller set of flags is supported for interface-level
tracing than for global tracing. To configure the flags for the events to be logged:
•
Specify the flags for global tracing operations.
[edit system processes dhcp-service traceoptions]
user@host# set flag flag
Copyright © 2017, Juniper Networks, Inc.356
ACX Series Universal Access Router Configuration Guide