Soru

Zorluk: ZorSyslog Operations, Severity Levels, and Log Destination Configuration

A network administrator is modifying syslog settings on a Cisco IOS router. The router currently has `logging trap errors` configured. The administrator needs to change the configuration so that all events up to severity level 4 (warnings) are forwarded to the remote syslog host, and log messages up to severity level 4 are displayed live during the active SSH session. Which set of commands accomplishes these requirements?

  1. Configure `logging trap warnings` in global configuration mode and execute `terminal monitor` in privileged EXEC mode.Cevap
  2. B
    Configure `logging trap 3` in global configuration mode and execute `terminal monitor` in privileged EXEC mode.
  3. C
    Configure `logging trap 4` in global configuration mode and execute `logging monitor` in privileged EXEC mode.
  4. D
    Configure `logging trap notifications` in global configuration mode and execute `terminal monitor` in global configuration mode.

Cevap

Configure `logging trap warnings` in global configuration mode and execute `terminal monitor` in privileged EXEC mode.
The option specifying `logging trap warnings` in global configuration mode and `terminal monitor` in privileged EXEC mode correctly sets the syslog trap threshold to severity level 4 (which includes levels 0 through 4) and enables real-time logging output on the user's active SSH terminal session.

Adım Adım Çözüm

1
Identify the numeric severity level and keyword for syslog warnings.
Syslog severity level 4 corresponds to the keyword 'warnings'. The levels range from 0 (Emergency) to 7 (Debugging).
The 'logging trap' command defines which messages are sent to remote syslog servers based on severity.
2
Determine the global configuration command to send messages up to severity level 4 to the syslog server.
Executing `logging trap warnings` (or `logging trap 4`) configures the router to forward severity levels 0 (Emergency), 1 (Alert), 2 (Critical), 3 (Error), and 4 (Warning) to the remote syslog host.
Syslog severity thresholds include all levels numerically equal to or lower than the specified severity.
3
Identify the operational command required to enable log message output on a remote SSH line.
Executing `terminal monitor` in privileged EXEC mode enables logging output for the current VTY line.
By default, console logging is enabled, but VTY (SSH/Telnet) sessions require `terminal monitor` to receive logging output in real time.

Anahtar Kavram

Syslog Operations, Severity Levels, and Log Destination Configuration
Tahmini Süre:1m 30s
Bu soruyu puanla