Skip to content
LinuxOak
  • Home
  • Network
  • Linux
  • Python
  • AI Ops
  • Security
  • About
  • CCNP Study Guides
  • Toggle website search
Menu Close
  • Home
  • Network
  • Linux
  • Python
  • AI Ops
  • Security
  • About
  • CCNP Study Guides
  • Toggle website search

Python

  1. Home>
  2. Python>
  3. Page 2
Network / Python

Socket Programming Basics: A Tiny TCP Port Reachability Checker in Python

Build a TCP port reachability checker with Python's socket module — connect_ex, timeouts, DNS resolution, and a management-plane service audit across a device list.

Comments Off on Socket Programming Basics: A Tiny TCP Port Reachability Checker in Python
June 1, 2026
Network / Python

subprocess: Wrapping ping, traceroute, and nslookup in Python

Run ping, traceroute, and nslookup from Python with subprocess.run — capture output, check return codes, set timeouts, and avoid shell-injection bugs.

Comments Off on subprocess: Wrapping ping, traceroute, and nslookup in Python
May 31, 2026
Network / Python

Regex with re: Extracting Counters and Parsing show Output in Python

Use Python's re module to pull IPs, MACs, interface counters, and BGP states out of show command output — with named groups and the metacharacters that cover most network parsing.

Comments Off on Regex with re: Extracting Counters and Parsing show Output in Python
May 30, 2026
Network / Python

The ipaddress Module: Subnets, Supernets, and Host Iteration in Python

Python's built-in ipaddress module handles subnets, host iteration, overlap detection, and subnetting for network engineers — no pip install required.

Comments Off on The ipaddress Module: Subnets, Supernets, and Host Iteration in Python
May 29, 2026
Network / Python

Files, Exceptions, and Logging — Robust Scripts That Don’t Lie to You

Day 7 closes Week 1 of the Python for Network Engineers series. Read and write files cleanly with `with`, catch only the exceptions you mean, and use the standard logging module so your scripts leave a real paper trail.

Comments Off on Files, Exceptions, and Logging — Robust Scripts That Don’t Lie to You
May 10, 2026
Network / Python

Functions and Modules — Building Reusable Network Helpers

Day 6 of the Python for Network Engineers series. Define functions, use *args/**kwargs the way Netmiko expects, write your first reusable module, and learn the __name__ == '__main__' guard.

Comments Off on Functions and Modules — Building Reusable Network Helpers
May 9, 2026
Network / Python

Control Flow: Looping Through Interfaces and Devices

Day 5 of the Python for Network Engineers series. if/elif/else, for, while, break, continue, plus enumerate/zip/range — wired against a real device inventory.

Comments Off on Control Flow: Looping Through Interfaces and Devices
May 8, 2026
Network / Python

Lists, Tuples, Dicts, Sets — Modeling Devices and Inventories

Day 4 of the Python for Network Engineers series. The four built-in containers — list, tuple, dict, set — and which one to reach for when modeling devices, inventories, VLAN lists, and config drift.

Comments Off on Lists, Tuples, Dicts, Sets — Modeling Devices and Inventories
May 7, 2026
Network / Python

Strings, f-strings & Slicing: Parsing IPs, MACs, and Banner Output

Day 3 of the Python for Network Engineers series. Indexing, slicing, split/strip/replace/join, and f-string formatting — the small set of built-in string operations that handles most CLI-output parsing.

Comments Off on Strings, f-strings & Slicing: Parsing IPs, MACs, and Banner Output
May 6, 2026
Network / Python

Python Syntax Crash Course for People Who Already Know IOS

Day 2 of the Python for Network Engineers series. Variables, types, indentation, the colon, truthiness, and the handful of syntactic rules that account for 90 percent of beginner mistakes.

Comments Off on Python Syntax Crash Course for People Who Already Know IOS
May 5, 2026
  • Go to the previous page
  • 1
  • 2
  • 3
  • Go to the next page
  • BGP for CCNP ENCOR, Part 4: The Best Path Selection Algorithm
    In Network, Routing
    September 21, 2026
  • BGP for CCNP ENCOR, Part 3: Advertising Routes and Path Attributes
    In Network, Routing
    September 20, 2026
  • BGP for CCNP ENCOR, Part 2: Neighbor Relationships and the Finite State Machine
    In Network, Routing
    September 19, 2026
  • BGP for CCNP ENCOR, Part 1: Fundamentals, Autonomous Systems, and eBGP vs iBGP
    In Network, Routing
    September 18, 2026
  • Catalyst 9200 Password Recovery: Step-by-Step Without Losing the Configuration
    In Switching
    August 10, 2026
LinuxOak © 2024