[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F0G6EF0MJ0WNT5MNH9MHHN":3,"skill-same:01M7F0G6EF0MJ0WNT5MNH9MHHN":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7F0G6EF0MJ0WNT5MNH9MHHN","netmiko-ssh-automation",null,"Safe Python Netmiko patterns for read-only collection, bounded batch SSH, TextFSM parsing, guarded config changes, timeouts, and network automation error handling. Use when automating network device access with Python Netmiko, whether collecting state or pushing guarded config changes.","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fecc\u002Fnetmiko-ssh-automation\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: netmiko-ssh-automation\ndescription: Safe Python Netmiko patterns for read-only collection, bounded batch SSH, TextFSM parsing, guarded config changes, timeouts, and network automation error handling. Use when automating network device access with Python Netmiko, whether collecting state or pushing guarded config changes.\nmetadata:\n  origin: community\n---\n\n# Netmiko SSH Automation\n\nUse this skill when writing or reviewing Python automation that connects to\nnetwork devices with Netmiko. Keep the default path read-only; config changes\nneed a separate change window, peer review, and rollback plan.\n\n## When to Use\n\n- Collecting `show` command output across routers, switches, or firewalls.\n- Building a small audit script for interface, routing, or config evidence.\n- Adding timeouts and exception handling to network SSH scripts.\n- Parsing command output with TextFSM when a template exists.\n- Reviewing automation before it touches production devices.\n\n## Safety Defaults\n\n- Start with read-only `send_command()` collection.\n- Keep inventory small and explicit; do not sweep whole address ranges.\n- Use environment variables, a vault, or `getpass`; never hardcode credentials.\n- Set connection and read timeouts.\n- Limit concurrency so older devices are not overloaded.\n- Require an explicit operator flag before `send_config_set()`.\n- Do not call `save_config()` until the change has been verified and approved.\n\n## Read-Only Connection Pattern\n\n```python\nimport os\nfrom getpass import getpass\nfrom netmiko import ConnectHandler\nfrom netmiko.exceptions import (\n    NetmikoAuthenticationException,\n    NetmikoTimeoutException,\n    ReadTimeout,\n)\n\ndevice = {\n    \"device_type\": \"cisco_ios\",\n    \"host\": \"192.0.2.10\",\n    \"username\": os.environ.get(\"NETMIKO_USERNAME\") or input(\"Username: \"),\n    \"password\": os.environ.get(\"NETMIKO_PASSWORD\") or getpass(\"Password: \"),\n    \"secret\": os.environ.get(\"NETMIKO_ENABLE_SECRET\"),\n    \"conn_timeout\": 10,\n    \"auth_timeout\": 20,\n    \"banner_timeout\": 15,\n    \"read_timeout_override\": 30,\n}\n\ntry:\n    with ConnectHandler(**device) as conn:\n        if device.get(\"secret\") and not conn.check_enable_mode():\n            conn.enable()\n        output = conn.send_command(\"show ip interface brief\", read_timeout=30)\n        print(output)\nexcept NetmikoAuthenticationException:\n    print(\"Authentication failed\")\nexcept NetmikoTimeoutException:\n    print(\"SSH connection timed out\")\nexcept ReadTimeout:\n    print(\"Command read timed out\")\n```\n\nUse placeholder addresses from documentation ranges in examples. Keep real\ninventory in an ignored local file or a secrets-managed system.\n\n## Batch Collection\n\n```python\nfrom concurrent.futures import ThreadPoolExecutor, as_completed\nfrom typing import Any\n\ndef collect_show(device: dict[str, Any], command: str) -> dict[str, Any]:\n    host = device[\"host\"]\n    try:\n        with ConnectHandler(**device) as conn:\n            output = conn.send_command(command, read_timeout=45)\n        return {\"host\": host, \"ok\": True, \"output\": output}\n    except (NetmikoAuthenticationException, NetmikoTimeoutException, ReadTimeout) as exc:\n        return {\"host\": host, \"ok\": False, \"error\": type(exc).__name__}\n\nresults = []\nwith ThreadPoolExecutor(max_workers=8) as pool:\n    futures = [pool.submit(collect_show, device, \"show version\") for device in devices]\n    for future in as_completed(futures):\n        results.append(future.result())\n```\n\nKeep `max_workers` low unless the device estate and AAA systems are known to\nhandle higher connection volume.\n\n## Structured Parsing\n\nNetmiko can ask TextFSM, TTP, or Genie to parse supported command output. Treat\nparser output as an optimization, not the only evidence path.\n\n```python\nwith ConnectHandler(**device) as conn:\n    parsed = conn.send_command(\n        \"show ip interface brief\",\n        use_textfsm=True,\n        raise_parsing_error=False,\n        read_timeout=30,\n    )\n\nif isinstance(parsed, str):\n    print(\"No parser template matched; store raw output for review\")\nelse:\n    for row in parsed:\n        print(row)\n```\n\nIf parsing drives a blocking decision, keep the raw command output alongside\nthe parsed result so an operator can inspect mismatches.\n\n## Guarded Config Pattern\n\n```python\nimport os\n\ncommands = [\n    \"interface GigabitEthernet0\u002F1\",\n    \"description CHANGE-1234 UPLINK-TO-CORE\",\n]\n\napply_changes = os.environ.get(\"APPLY_NETWORK_CHANGES\") == \"1\"\n\nif not apply_changes:\n    print(\"Dry run only. Candidate commands:\")\n    print(\"\\n\".join(commands))\nelse:\n    with ConnectHandler(**device) as conn:\n        conn.enable()\n        before = conn.send_command(\"show running-config interface GigabitEthernet0\u002F1\")\n        output = conn.send_config_set(commands)\n        after = conn.send_command(\"show running-config interface GigabitEthernet0\u002F1\")\n        print(before)\n        print(output)\n        print(after)\n        print(\"Verify behavior before saving startup config.\")\n```\n\nSaving the config is a separate approval step. In production, include a rollback\nsnippet and capture before\u002Fafter evidence in the change record.\n\n## Review Checklist\n\n- Does the script identify an explicit inventory source?\n- Are credentials absent from source, logs, and exception messages?\n- Are `conn_timeout`, `auth_timeout`, and command `read_timeout` set?\n- Are failures reported per device without stopping the whole batch?\n- Does the script avoid broad scans and unbounded concurrency?\n- Are config changes behind a dry-run or explicit operator flag?\n- Is `save_config()` separate from the initial push and tied to verification?\n\n## Anti-Patterns\n\n- Hardcoding passwords, enable secrets, or private keys in source.\n- Sending config commands as the default code path.\n- Running automation against a CIDR range instead of a reviewed inventory.\n- Logging full running configs to shared systems without sanitization.\n- Treating parser success as proof that the device state is correct.\n\n## See Also\n\n- Skill: `cisco-ios-patterns`\n- Skill: `network-config-validation`\n- Skill: `network-interface-health`\n","# Netmiko SSH Automation\n\nUse this skill when writing or reviewing Python automation that connects to\nnetwork devices with Netmiko. Keep the default path read-only; config changes\nneed a separate change window, peer review, and rollback plan.\n\n## When to Use\n\n- Collecting `show` command output across routers, switches, or firewalls.\n- Building a small audit script for interface, routing, or config evidence.\n- Adding timeouts and exception handling to network SSH scripts.\n- Parsing command output with TextFSM when a template exists.\n- Reviewing automation before it touches production devices.\n\n## Safety Defaults\n\n- Start with read-only `send_command()` collection.\n- Keep inventory small and explicit; do not sweep whole address ranges.\n- Use environment variables, a vault, or `getpass`; never hardcode credentials.\n- Set connection and read timeouts.\n- Limit concurrency so older devices are not overloaded.\n- Require an explicit operator flag before `send_config_set()`.\n- Do not call `save_config()` until the change has been verified and approved.\n\n## Read-Only Connection Pattern\n\n```python\nimport os\nfrom getpass import getpass\nfrom netmiko import ConnectHandler\nfrom netmiko.exceptions import (\n    NetmikoAuthenticationException,\n    NetmikoTimeoutException,\n    ReadTimeout,\n)\n\ndevice = {\n    \"device_type\": \"cisco_ios\",\n    \"host\": \"192.0.2.10\",\n    \"username\": os.environ.get(\"NETMIKO_USERNAME\") or input(\"Username: \"),\n    \"password\": os.environ.get(\"NETMIKO_PASSWORD\") or getpass(\"Password: \"),\n    \"secret\": os.environ.get(\"NETMIKO_ENABLE_SECRET\"),\n    \"conn_timeout\": 10,\n    \"auth_timeout\": 20,\n    \"banner_timeout\": 15,\n    \"read_timeout_override\": 30,\n}\n\ntry:\n    with ConnectHandler(**device) as conn:\n        if device.get(\"secret\") and not conn.check_enable_mode():\n            conn.enable()\n        output = conn.send_command(\"show ip interface brief\", read_timeout=30)\n        print(output)\nexcept NetmikoAuthenticationException:\n    print(\"Authentication failed\")\nexcept NetmikoTimeoutException:\n    print(\"SSH connection timed out\")\nexcept ReadTimeout:\n    print(\"Command read timed out\")\n```\n\nUse placeholder addresses from documentation ranges in examples. Keep real\ninventory in an ignored local file or a secrets-managed system.\n\n## Batch Collection\n\n```python\nfrom concurrent.futures import ThreadPoolExecutor, as_completed\nfrom typing import Any\n\ndef collect_show(device: dict[str, Any], command: str) -> dict[str, Any]:\n    host = device[\"host\"]\n    try:\n        with ConnectHandler(**device) as conn:\n            output = conn.send_command(command, read_timeout=45)\n        return {\"host\": host, \"ok\": True, \"output\": output}\n    except (NetmikoAuthenticationException, NetmikoTimeoutException, ReadTimeout) as exc:\n        return {\"host\": host, \"ok\": False, \"error\": type(exc).__name__}\n\nresults = []\nwith ThreadPoolExecutor(max_workers=8) as pool:\n    futures = [pool.submit(collect_show, device, \"show version\") for device in devices]\n    for future in as_completed(futures):\n        results.append(future.result())\n```\n\nKeep `max_workers` low unless the device estate and AAA systems are known to\nhandle higher connection volume.\n\n## Structured Parsing\n\nNetmiko can ask TextFSM, TTP, or Genie to parse supported command output. Treat\nparser output as an optimization, not the only evidence path.\n\n```python\nwith ConnectHandler(**device) as conn:\n    parsed = conn.send_command(\n        \"show ip interface brief\",\n        use_textfsm=True,\n        raise_parsing_error=False,\n        read_timeout=30,\n    )\n\nif isinstance(parsed, str):\n    print(\"No parser template matched; store raw output for review\")\nelse:\n    for row in parsed:\n        print(row)\n```\n\nIf parsing drives a blocking decision, keep the raw command output alongside\nthe parsed result so an operator can inspect mismatches.\n\n## Guarded Config Pattern\n\n```python\nimport os\n\ncommands = [\n    \"interface GigabitEthernet0\u002F1\",\n    \"description CHANGE-1234 UPLINK-TO-CORE\",\n]\n\napply_changes = os.environ.get(\"APPLY_NETWORK_CHANGES\") == \"1\"\n\nif not apply_changes:\n    print(\"Dry run only. Candidate commands:\")\n    print(\"\\n\".join(commands))\nelse:\n    with ConnectHandler(**device) as conn:\n        conn.enable()\n        before = conn.send_command(\"show running-config interface GigabitEthernet0\u002F1\")\n        output = conn.send_config_set(commands)\n        after = conn.send_command(\"show running-config interface GigabitEthernet0\u002F1\")\n        print(before)\n        print(output)\n        print(after)\n        print(\"Verify behavior before saving startup config.\")\n```\n\nSaving the config is a separate approval step. In production, include a rollback\nsnippet and capture before\u002Fafter evidence in the change record.\n\n## Review Checklist\n\n- Does the script identify an explicit inventory source?\n- Are credentials absent from source, logs, and exception messages?\n- Are `conn_timeout`, `auth_timeout`, and command `read_timeout` set?\n- Are failures reported per device without stopping the whole batch?\n- Does the script avoid broad scans and unbounded concurrency?\n- Are config changes behind a dry-run or explicit operator flag?\n- Is `save_config()` separate from the initial push and tied to verification?\n\n## Anti-Patterns\n\n- Hardcoding passwords, enable secrets, or private keys in source.\n- Sending config commands as the default code path.\n- Running automation against a CIDR range instead of a reviewed inventory.\n- Logging full running configs to shared systems without sanitization.\n- Treating parser success as proof that the device state is correct.\n\n## See Also\n\n- Skill: `cisco-ios-patterns`\n- Skill: `network-config-validation`\n- Skill: `network-interface-health`\n",{"name":5,"metadata":24,"description":7},{"origin":25},"community","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fecc\u002Fnetmiko-ssh-automation","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill netmiko-ssh-automation",{"tool":38,"command":39},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill netmiko-ssh-automation",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill netmiko-ssh-automation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fecc\u002Fnetmiko-ssh-automation\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]