Next: Sample Config File, Up: Config Commands [Contents][Index]
Set hostname of the router.
Set password for vty interface. If there is no password, a vty won’t accept connections.
Set enable password.
These commands are deprecated and are present only for historical compatibility.
The log trap command sets the current logging level for all enabled
logging destinations, and it sets the default for all future logging commands
that do not specify a level. The normal default
logging level is debugging. The no
form of the command resets
the default level for future logging commands to debugging, but it does
not change the logging level of existing logging destinations.
Enable logging output to stdout.
If the optional second argument specifying the
logging level is not present, the default logging level (typically debugging,
but can be changed using the deprecated log trap
command) will be used.
The no
form of the command disables logging to stdout.
The level
argument must have one of these values:
emergencies, alerts, critical, errors, warnings, notifications, informational, or debugging. Note that the existing code logs its most important messages
with severity errors
.
If you want to log into a file, please specify filename
as
in this example:
log file /var/log/quagga/bgpd.log informational
If the optional second argument specifying the
logging level is not present, the default logging level (typically debugging,
but can be changed using the deprecated log trap
command) will be used.
The no
form of the command disables logging to a file.
Note: if you do not configure any file logging, and a daemon crashes due to a signal or an assertion failure, it will attempt to save the crash information in a file named /var/tmp/quagga.<daemon name>.crashlog. For security reasons, this will not happen if the file exists already, so it is important to delete the file after reporting the crash information.
Enable logging output to syslog.
If the optional second argument specifying the
logging level is not present, the default logging level (typically debugging,
but can be changed using the deprecated log trap
command) will be used.
The no
form of the command disables logging to syslog.
Enable logging output to vty terminals that have enabled logging
using the terminal monitor
command.
By default, monitor logging is enabled at the debugging level, but this
command (or the deprecated log trap
command) can be used to change
the monitor logging level.
If the optional second argument specifying the
logging level is not present, the default logging level (typically debugging,
but can be changed using the deprecated log trap
command) will be used.
The no
form of the command disables logging to terminal monitors.
This command changes the facility used in syslog messages. The default
facility is daemon
. The no
form of the command resets
the facility to the default daemon
facility.
To include the severity in all messages logged to a file, to stdout, or to
a terminal monitor (i.e. anything except syslog),
use the log record-priority
global configuration command.
To disable this option, use the no
form of the command. By default,
the severity level is not included in logged messages. Note: some
versions of syslogd (including Solaris) can be configured to include
the facility and level in the messages emitted.
This command sets the precision of log message timestamps to the
given number of digits after the decimal point. Currently,
the value must be in the range 0 to 6 (i.e. the maximum precision
is microseconds).
To restore the default behavior (1-second accuracy), use the
no
form of the command, or set the precision explicitly to 0.
log timestamp precision 3
In this example, the precision is set to provide timestamps with millisecond accuracy.
This command enables the logging of all commands typed by a user to all enabled log destinations. The note that logging includes full command lines, including passwords. Once set, command logging can only be turned off by restarting the daemon.
Encrypt password.
Enable advanced mode VTY.
Set system wide line configuration. This configuration command applies to all VTY interfaces.
Enter vty configuration mode.
Set default motd string.
No motd banner string will be printed.
Set VTY connection timeout value. When only one argument is specified it is used for timeout value in minutes. Optional second argument is used for timeout value in seconds. Default timeout value is 10 minutes. When timeout value is zero, it means no timeout.
Do not perform timeout at all. This command is as same as
exec-timeout 0 0
.
Restrict vty connections with an access list.
Next: Sample Config File, Up: Config Commands [Contents][Index]