
Welcome to the course. In a few minutes you see what you will build: a custom SNMP poller in Python that checks many devices at once, turns counters into traffic rates, flags problems, and keeps a CSV record and a graph. You also see how the course works and what you need to start. The lab runs on your own computer with a simulator, tested on a Mac.
Meet your instructor, Mo Kammoun, Zamo Academy. Mo has more than 25 years in telecom, pharma and healthcare IT. This lecture covers his hands-on background: network polling, architecture development and testing for hundreds of devices at AT&T Labs; enterprise single sign-on and a document management system at Merck; and why that experience shaped this course.
How to get the most from the course: where to find the resources zip, how the lessons are ordered, how to follow along in the lab, and how to repeat each demonstration yourself. The lab is tested on a Mac. Windows and real devices are untested and may need small adjustments.
Before any code, you meet the client. Harbor Health is a fictional clinic group with three sites and a Friday-night network outage that nobody noticed until Monday. This module turns that story into tickets and a definition of done. Three short lessons follow.
Meet Harbor Health, a fictional clinic group, and the outage that started it all: a link went down on Friday night and a weekend of readings never reached the care team. You learn what went wrong and why nobody saw it. By the end you can state the problem in one clear sentence.
See how a request from the operations manager becomes a board of tickets. You learn the difference between an epic and a story, and you meet the Harbor Health epics (HH-2, HH-3 and HH-4) and the stories under them. The same tickets guide every module of the course.
Agree what done looks like before you build. You write the acceptance criteria and the demo checklist for the poller: two healthy sites polled, one offline site flagged DOWN after three failed checks, and a clean log and graph for the operations manager.
A short recap of Module 0: the problem statement, the board of tickets, and the definition of done. In Module 1 you set up the lab and start the simulator.
Why monitor at all, and where to test your monitor safely. This module explains the idea behind a network monitor, shows how polling works, and builds the lab: a simulator that answers like real routers, running on your own computer.
What does a network monitor actually do? You learn its four jobs: ask, record, compare and flag. You see why a history of readings matters as much as a flag, and why only a program can do this across a hundred sites.
How the asking works. You learn the basics of SNMP: numbered addresses for each fact, the community string, read-only access, polling on an interval, timeouts and failed checks, and why three failed checks in a row mean DOWN. You also meet counters, and why a rate needs two readings.
Set up the lab. You create two virtual environments, sim-env for the simulator and poll-env for the polling tools, install the packages, unzip the course resources, and start the simulator. The lab is tested on a Mac. Windows and real devices are untested and may need small changes.
Make the lab yours. The simulator reads plain text files, so you can change how the fake routers behave. You learn the file format (OID, type, value), see why the legacy community gives only 32-bit counters, and change values to test the poller in the situations you care about.
Recap of Module 1: the idea (ask, record, compare, flag), the language (SNMP, community strings, polling, timeouts), and the lab (sim-env, poll-env, ports 1161 and 1162, with port 1163 offline on purpose).
Epic HH-2: find the data. Before the poller can watch a clinic router, you need to know what to ask and where to ask. This module covers SNMP version 2c, OIDs and MIBs, the four facts we monitor, and a Python tool you write yourself to list every interface.
The three SNMP versions and why this course uses version 2c: simple, widely supported, and able to read 64-bit counters. You also learn its security limits. The community string travels as clear text, so use version 3 where security matters.
How every fact on a device gets its own address. You learn the OID tree, how to read an address from left to right, what a MIB is (a dictionary for people, not needed by the device), and where the basic interface facts live.
The four facts the poller needs: name, uptime, traffic in and traffic out. You learn their OIDs, why uptime is counted in hundredths of a second, why we use 64-bit counters, and the trap that fools most beginners: interface 1 is often the loopback. Find the right ifIndex by name.
Write your first tool. You build walk.py, a short Python script that walks a device and lists every interface with its ifIndex, so you never have to guess. You also learn the async pattern the poller uses later.
Recap of Epic HH-2: SNMPv2c and the community string, OIDs and MIBs, the four facts we monitor, the interface you should not trust, and the walk tool. In Module 3 you build the poller.
Epic HH-3: build the monitor that does the asking. In this module you build the poller step by step: command line, core request, concurrent polling, readable uptime, traffic rates, 64-bit counters, status flags and a CSV record. A bonus lesson at the end teaches you to troubleshoot it.
Give the poller a command line with argparse, so you tell it what to do instead of editing code: nodes, community, interval, count, interface and limits. You read the options in poller.py and try them in the lab.
The heart of the poller: one SNMP GET to one router, and what comes back. You read the snmp_get helper and the function that asks for the name, uptime and counters, with 64-bit counters first.
Story HH-5. Why checking a hundred sites one by one is too slow, and how asking them all at the same time fixes it. A small simulation compares the two on a Mac: it illustrates the idea, it is not a measurement of a real network.
Apply the idea to the poller with asyncio.gather. You walk through the main run loop in small pieces: one shared engine, memory of the previous reading, and one round that checks every site together.
Story HH-6. Routers report uptime in TimeTicks, hundredths of a second. You write format_uptime to turn a huge number into days, hours and minutes that people can read.
Story HH-7, part one. A counter is a running total, not a rate. You calculate bytes per second from two readings and the time between them, and learn what happens when a 32-bit counter wraps, and the limit of the rate function.
Story HH-7, part two. Use 64-bit counters, where the wrap problem goes away for our purposes, and fall back to 32-bit counters for older routers. You see both in the lab, using the public and legacy communities.
Story HH-8. Give every result a clear flag: OK, FAILING, DOWN or TRAFFIC_WARNING. You learn how failed checks are counted, when a node becomes DOWN, and how a traffic threshold raises a warning.
Story HH-9. Keep a record for the next outage review. You write results to a CSV file, one row per node per round, learn the exact columns, and see why each run adds to the same file.
When something fails, use a method instead of rewriting code. You learn five groups of failure (no answer, wrong community, wrong interface, wrong environment, unexpected data), a fixed order of checks, and how to confirm a fix by reading the CSV. You also see why one failing node does not stop the others.
Recap of Epic HH-3: the command line, concurrent requests, readable uptime, traffic rates with 64-bit counters and a 32-bit fallback, status flags and the CSV record. In Module 4 you run it and graph it.
Epic HH-4: prove it works and prepare the demo for the Harbor Health operations manager. You run the finished poller, turn the CSV into a graph, finish with a final project with one site offline, and then a bonus end-to-end run.
Run the finished poller against the simulated clinic nodes with --ifindex 2. You start the simulator, run the poller in its own environment, and read its output: the flag, system name, uptime and traffic rates.
Finish Story HH-9 with a chart. You start from a clean file, run several polls, and use graph_csv.py to turn the CSV into traffic.png. You learn why the graph skips failed polls and first polls.
The final project hand-over. Three simulated nodes, one of them offline. You run the poller, watch the offline node go FAILING and then DOWN, see 64-bit counters and the 32-bit fallback, and tick every item on the demo checklist.
One clean run of the whole engine: poll, calculate, record, graph. You tie each result to its ticket (HH-5 to HH-9), judge honestly whether the 100-node problem is solved (the design is proven in simulation, real devices are the next test), and learn the engine as a blueprint for your own network.
Recap of Epic HH-4: the poller runs, the graph works, and the final project is complete. The hand-over items are the CSV and the graph.
Look back at what you built: the lab, the SNMP fundamentals, the poller and its graph. An honest note on testing: the code was tested on a Mac, Windows and real network devices remain untested, and Harbor Health is fictional. Thank you for building this project.
This course contains the use of artificial intelligence.
Course description
Your monitoring works fine on 9 devices. Then the network grows to 100, and everything starts to break: polls time out, counters wrap around, and nobody trusts the graphs. This is the 100-node problem.
This course teaches you to build the fix: a custom SNMP poller engine in Python that scales from a handful of devices to a hundred. You play the engineer at Harbor Health, a fictional healthcare clinic group with three clinics, and you solve one realistic problem at a time.
Everything runs on your own computer. A simulator stands in for the network, so you need no routers, no switches and no lab hardware. The lab is tested on a Mac. Windows and real devices are untested.
What you will work with
SNMPv2c polling and OIDs, step by step
Interface traffic counters: 64-bit counters first, with 32-bit counters as the fallback
Turning raw counter readings into traffic rates, including counter wrap
Timeouts and failed checks: when a silent device counts as DOWN
A Python poller that checks many devices at once, saves results to CSV and graphs them
Why a design that works for 9 nodes fails at 100
Extra lessons: troubleshooting the poller, and one end-to-end run of the complete engine
How the course works
Short lessons, each with slides and a demonstration you can repeat yourself
A single running scenario, so every lesson builds on the last
Hands-on work in a safe simulator, so you can break things and try again
Who this is for
Network and systems engineers who need to monitor more than a few devices
IT staff who inherited a monitoring setup and want to understand how it works
Analysts and architects who want to understand what monitoring at scale involves
What you need
A Mac computer and basic comfort with the command line. Some Python reading ability helps, because you build the poller step by step. No previous SNMP experience is required.
Harbor Health is a fictional company, created for teaching. Inspired by the instructor’s many years of hands-on experience building network usage and performance reporting with SNMP at a large enterprise. All examples, code and data are simulated and written for this course, and no employer materials are used.