affaan-m avatar

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-code

Installs 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 show command 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
1aradotso avatarenterprise-data-engineering-pipeline-ssis-pysparkaradotso/data-skillsenterprise data engineering pipeline ssis pyspark1.5Kskills.sh installs
2aradotso avatarharvard-art-museum-data-pipelinearadotso/data-skillsharvard art museum data pipeline1.5Kskills.sh installs
3aradotso avatarrealtime-cinema-data-engineering-pipelinearadotso/data-skillsrealtime cinema data engineering pipeline1.5Kskills.sh installs
4aradotso avatarchrome-cdp-live-browseraradotso/trending-skillschrome cdp live browser1.5Kskills.sh installs
5yonatangross avataragent-orchestrationyonatangross/orchestkitAgent orchestration patterns for agentic loops, multi-agent coordination, alternative frameworks, and multi-scenario workflows. Use when building autonomous age1.4Kskills.sh installs
6aradotso avataredict-multi-agent-orchestrationaradotso/trending-skillsedict multi agent orchestration1.4Kskills.sh installs