Bookmark this page

Chapter 6. Automating Complex Network Operations

Abstract

Goal Automate complex operations on network devices
Objectives
  • Apply changes to a network that involve many tasks using playbooks.

  • Resolve network issues using playbooks.

Sections
  • Aggregating Logged Events to Syslog (and Guided Exercise)

  • Managing Access Control Lists on IOS (and Guided Exercise)

  • Enabling SNMP (and Guided Exercise)

  • Overcoming Real World Challenges (and Guided Exercise)

  • Implementing Dynamic Routing with OSPF (and Guided Exercises)

  • Implementing OSPF with Multiple Autonomous Systems (and Guided Exercise)

  • Implementing Dynamic Routing with EBGP (and Guided Exercise)

  • Upgrading the Network (and Guided Exercise)

Lab

Automating Complex Operations

Aggregating Logged Events to Syslog

Objectives

After completing this section, you should be able to forward logging events to a syslog server for log aggregation.

Aggregating Logged Events

Ansible can automate the process of configuring devices to send logged event information to a syslog server.

The following task configures log aggregation for a VyOS device:

- name: set the logging target
  vyos_config:
    lines:
      - set system syslog host {{ syslog_ipv4addr }} facility local7 level debug

The following task configures log aggregation for an IOS device:

- name: set the logging target
  ios_config:
    lines:
      - service timestamps log datetime
      - service timestamps debug datetime
      - logging {{ syslog_ipv4addr }}
      - logging trap 7
Revision: do457-2.5-4693601