
Netmiko Ssh Automation
A clear, safety-first guide for writing Python network automation with Netmiko. It pushes you toward read-only collection by default, shows proper timeout handling across connection and command layers, and wraps config changes behind explicit flags so you don't accidentally push to production. The batch collection pattern keeps concurrency low, credentials come from environment variables or getpass, and the guarded config example separates dry runs from actual pushes and config saves. If you're writing SSH scripts that touch routers or switches, the review checklist and anti-pattern list will catch the mistakes that turn a helpful audit into an outage.
- skills.sh installs
- 1.7K
- GitHub stars
- 229.1K
- last updated
- Jul 14, 2026
Install
$ npx -y skills add affaan-m/everything-claude-code --skill netmiko-ssh-automation --agent claude-codeInstalls into .claude/skills of the current project.
Files
Netmiko SSH Automation
Use this skill when writing or reviewing Python automation that connects to network devices with Netmiko. Keep the default path read-only; config changes need a separate change window, peer review, and rollback plan.
When to Use
- Collecting
showcommand output across routers, switches, or firewalls. - Building a small audit script for interface, routing, or config evidence.
- Adding timeouts and exception handling to network SSH scripts.
- Parsing command output with TextFSM when a template exists.
- Reviewing automation before it touches production devices.
Safety Defaults
- Start with read-only
send_command()collection. - Keep inventory small and explicit; do not sweep whole address ranges.
- Use environment variables, a vault, or
getpass; never hardcode credentials. - Set connection and read timeouts.
- Limit concurrency so older devices are not overloaded.
- Require an explicit operator flag before
send_config_set(). - Do not call
save_config()until the change has been verified and approved.
Read-Only Connection Pattern
Sponsors
Details
- Repository
- github.com/affaan-m/everything-claude-code
- Category
- Automation & Workflows
- First seen
- Jun 3, 2026
More from affaan-m/everything-claude-code
All 256- Network Bgp Diagnostics1.7K
- Network Config Validation1.7K
- Network Interface Health1.7K
- Plan Orchestrate1.7K
- Production Audit1.7K
- Project Guidelines Example1.7K
- Redis Patterns1.7K
- Scholar Evaluation1.7K
- Skill Stocktake1.7K
- Tinystruct Patterns1.7K
- Ui To Vue1.7K
- Vite Patterns1.7K
- Cost Tracking1.6K
- Fsharp Testing1.6K
- Gget1.6K
- Homelab Pihole Dns1.6K
- Homelab Vlan Segmentation1.6K
- Homelab Wireguard Vpn1.6K
- Mle Workflow1.6K
- Motion Foundations1.6K
- Motion Patterns1.6K
- Quarkus Patterns1.6K
- Quarkus Security1.6K
- Quarkus Tdd1.6K