Netmiko simplifies Paramiko SSH sessions to many network platforms. It focuses on reliable show commands and configuration changes without low-level scraping.
Overview
Netmiko is a multi-vendor Python library for CLI connections to network devices. It wraps SSH setup behind a ConnectHandler interface so scripts pass a device dictionary with host, credentials, and device type, then run commands in a consistent way across vendors.
The library targets automation tasks that collect show output and push configuration, abstracting prompt handling and mode changes where possible. Supported platforms are enumerated in the SSH dispatcher mapping, and utilities include SSH autodetect, redispatch, and optional bulk-encryption tooling installed separately.
You install Netmiko with pip on supported Python versions, use context managers to ensure sessions close, and can extend support by contributing new device drivers with accompanying test data. API reference material documents base connection behavior and dispatch helpers for integration into larger tooling.
Key features
- ConnectHandler SSH sessions
- Multi-vendor device type map
- Show and configuration helpers
- SSH autodetect support
- Context-manager connection cleanup
- Extensible platform drivers
Use cases
- Automating network show commands
- Pushing configuration to switches
- Building multi-vendor netops scripts