[Contents] [Prev] [Next] [Index] [Report an Error]

file

See the following sections:

file (Commit Scripts)

Syntax

file filename.xsl {
optional;
refresh;
refresh-from url;
source url;
}

Hierarchy Level

[edit system scripts commit]

Release Information

Statement introduced in JUNOS Release 7.4.

Description

For JUNOS commit scripts, enable a commit script that is located in the /var/db/scripts/commit directory.

Options

filename—The name of an XSLT file containing a commit script.

The statements are explained separately.

Usage Guidelines

See the JUNOS Configuration and Diagnostic Automation Guide.

Required Privilege Level

maintenance—To view this statement in the configuration.

maintenance-control—To add this statement to the configuration.

file (System Logging)

Syntax

file filename {
facility severity;
explicit-priority;
match "regular-expression";
structured-data {
brief;
}
archive {
files number;
size size;
(world-readable | no-world-readable);
}
}

Hierarchy Level

[edit system syslog]

Release Information

Statement introduced before JUNOS Release 7.4.

Description

Configure the logging of system messages to a file.

Options

facility—Class of messages to log. To specify multiple classes, include multiple facility severity statements. For a list of the facilities, see Table 19.

filename—File in the /var/log directory in which to log messages from the specified facility. To log messages to more than one file, include more than one file statement.

severity—Severity of the messages that belong to the facility specified by the paired facility name. Messages with severities the specified level and higher are logged. For a list of the severities, see Table 20.

The remaining statements are explained separately.

Usage Guidelines

See Directing Messages to a Log File.

Required Privilege Level

system—To view this statement in the configuration.

system-control—To add this statement to the configuration.

Related Topics

JUNOS System Log Messages Reference


[Contents] [Prev] [Next] [Index] [Report an Error]