{"id":13498144,"url":"https://github.com/ktbyers/netmiko","last_synced_at":"2025-05-13T17:04:11.627Z","repository":{"id":23903122,"uuid":"27283062","full_name":"ktbyers/netmiko","owner":"ktbyers","description":"Multi-vendor library to simplify Paramiko SSH connections to network devices","archived":false,"fork":false,"pushed_at":"2025-04-27T18:29:03.000Z","size":9917,"stargazers_count":3794,"open_issues_count":83,"forks_count":1338,"subscribers_count":196,"default_branch":"develop","last_synced_at":"2025-05-06T16:13:03.543Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ktbyers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-11-28T21:42:52.000Z","updated_at":"2025-05-06T00:58:27.000Z","dependencies_parsed_at":"2023-01-14T13:24:27.241Z","dependency_job_id":"6304577c-4526-4cf7-93c0-ddbffc0c91c5","html_url":"https://github.com/ktbyers/netmiko","commit_stats":{"total_commits":2230,"total_committers":224,"mean_commits":9.955357142857142,"dds":0.2955156950672646,"last_synced_commit":"fdabb06a01913c30762e352bc6f576859e7e78c1"},"previous_names":[],"tags_count":50,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktbyers%2Fnetmiko","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktbyers%2Fnetmiko/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktbyers%2Fnetmiko/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktbyers%2Fnetmiko/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ktbyers","download_url":"https://codeload.github.com/ktbyers/netmiko/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253528362,"owners_count":21922623,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T20:00:52.004Z","updated_at":"2025-05-13T17:04:11.599Z","avatar_url":"https://github.com/ktbyers.png","language":"Python","funding_links":[],"categories":["Python","others","Web Development","HarmonyOS","Network Automation","Library","Libraries","Infrastructure \u0026 DevOps"],"sub_categories":["C++/C Toolkit","Windows Manager","SD-WAN","NETCONF","Python"],"readme":"[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/netmiko.svg)](https://img.shields.io/pypi/pyversions/netmiko)\n[![PyPI](https://img.shields.io/pypi/v/netmiko.svg)](https://pypi.python.org/pypi/netmiko)\n[![Downloads](https://static.pepy.tech/badge/netmiko)](https://static.pepy.tech/badge/netmiko)\n[![GitHub contributors](https://img.shields.io/github/contributors/ktbyers/netmiko.svg)](https://GitHub.com/ktbyers/netmiko/graphs/contributors/)\n[![Code Style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)\n\n\u003cimg src=\"https://ktbyers.github.io/netmiko/images/netmiko_logo_gh.png\" width=\"320\"\u003e\n\nNetmiko\n=======\n\nMulti-vendor library to simplify CLI connections to network devices\n\n\u003cbr /\u003e\n\n## Contributing to Netmiko\n\n[CONTRIBUTING.md](https://github.com/ktbyers/netmiko/blob/develop/CONTRIBUTING.md)\n\n\u003cbr /\u003e\n\n## Why Netmiko?\nNetwork automation to screen-scraping devices is primarily concerned with gathering output from show commands and with making configuration changes.\n\nNetmiko aims to accomplish both of these operations and to do it across a very broad set of platforms. It seeks to do this while abstracting away low-level state control (i.e. eliminate low-level regex pattern matching to the extent practical).\n\n\u003cbr /\u003e\n\n## Getting Started\n- [Getting Started](#getting-started-1)\n\n\u003cbr /\u003e\n\n## Examples\n*You really should look here.*\n\n- [Netmiko Examples](https://github.com/ktbyers/netmiko/blob/develop/EXAMPLES.md)\n\n\u003cbr /\u003e\n\n\n## Supported Platforms\n\n[PLATFORMS](https://github.com/ktbyers/netmiko/blob/develop/PLATFORMS.md)\n\n\u003cbr /\u003e\n\n\n## Installation\n\nTo install netmiko, simply use pip:\n\n```\n$ pip install netmiko\n```\n\n\u003cbr /\u003e\n\n## API-Documentation\n\n[API-Documentation](https://ktbyers.github.io/netmiko/docs/netmiko/index.html)\n\n\u003cbr /\u003e\n\n## Common Issues/FAQ\n\nAnswers to some [common_questions](https://github.com/ktbyers/netmiko/blob/develop/COMMON_ISSUES.md)\n\n\u003cbr /\u003e\n\n### Tutorials\n\n- [Netmiko Overview](https://pynet.twb-tech.com/blog/automation/netmiko.html)\n- [Secure Copy](https://pynet.twb-tech.com/blog/automation/netmiko-scp.html)\n- [Netmiko through SSH Proxy](https://pynet.twb-tech.com/blog/automation/netmiko-proxy.html)\n- [Netmiko and TextFSM](https://pynet.twb-tech.com/blog/automation/netmiko-textfsm.html)\n- [Netmiko and what constitutes done](https://pynet.twb-tech.com/blog/automation/netmiko-what-is-done.html)\n\n\u003cbr /\u003e\n\n### Getting Started:\n\n#### Create a dictionary representing the device.\n\nSupported device_types can be found in [ssh_dispatcher.py](https://github.com/ktbyers/netmiko/blob/master/netmiko/ssh_dispatcher.py), see CLASS_MAPPER keys.\n```py\nfrom netmiko import ConnectHandler\n\ncisco_881 = {\n    'device_type': 'cisco_ios',\n    'host':   '10.10.10.10',\n    'username': 'test',\n    'password': 'password',\n    'port' : 8022,          # optional, defaults to 22\n    'secret': 'secret',     # optional, defaults to ''\n}\n\n```\n\n#### Establish an SSH connection to the device by passing in the device dictionary.\n\n```py\nnet_connect = ConnectHandler(**cisco_881)\n```\n\n#### Execute show commands.\n\n```py\noutput = net_connect.send_command('show ip int brief')\nprint(output)\n```\n```\nInterface                  IP-Address      OK? Method Status                Protocol\nFastEthernet0              unassigned      YES unset  down                  down\nFastEthernet1              unassigned      YES unset  down                  down\nFastEthernet2              unassigned      YES unset  down                  down\nFastEthernet3              unassigned      YES unset  down                  down\nFastEthernet4              10.10.10.10     YES manual up                    up\nVlan1                      unassigned      YES unset  down                  down\n```\n\n#### Execute configuration change commands (will automatically enter into config mode)\n\n```py\nconfig_commands = [ 'logging buffered 20000',\n                    'logging buffered 20010',\n                    'no logging console' ]\noutput = net_connect.send_config_set(config_commands)\nprint(output)\n```\n```\npynet-rtr1#config term\nEnter configuration commands, one per line.  End with CNTL/Z.\npynet-rtr1(config)#logging buffered 20000\npynet-rtr1(config)#logging buffered 20010\npynet-rtr1(config)#no logging console\npynet-rtr1(config)#end\npynet-rtr1#\n```\n\n\u003cbr /\u003e\n\n## API-Documentation\n\n\u003ca href=\"https://ktbyers.github.io/netmiko/docs/netmiko/index.html\" title=\"Docs\"\u003eAPI Documentation\u003c/a\u003e\n\nBelow are some of the particularly handy Classes/functions for easy reference:\n- [Base Connection Object](https://ktbyers.github.io/netmiko/docs/netmiko/base_connection.html)\n- [SSH Autodetect](https://ktbyers.github.io/netmiko/docs/netmiko/index.html#netmiko.SSHDetect)\n- [SSH Dispatcher](https://ktbyers.github.io/netmiko/docs/netmiko/index.html#netmiko.ssh_dispatcher)\n- [Redispatch](https://ktbyers.github.io/netmiko/docs/netmiko/index.html#netmiko.redispatch)\n\n\u003cbr /\u003e\n\n## Contributing\n\nContributors are welcome.\n\nYou can contribute to Netmiko in a variety of ways: answering questions on Slack (see below in Questions/Discussions), responding to issues, adding to the common issues, reporting/fixing bugs, or even adding your own device type.\n\nBefore contributing a new vendor/platform device type, remember that any code added needs to be supported in some fashion. To add a vendor/platform you can follow the outline [here](https://github.com/ktbyers/netmiko/blob/develop/VENDOR.md). Once you've worked on your first pass of your driver and have it functional, you'll need to include test data in order for it to be merged into develop, you can see the general flow of how to do that [here](https://github.com/ktbyers/netmiko/blob/develop/TESTING.md).\n\nFor all code contributions, please ensure that you have ran `black` against the code or your code will fail the Travis CI build.\n\n\u003cbr /\u003e\n\n## Questions/Discussion\n\nIf you find an issue with Netmiko, then you can open an issue on this projects issue page here: [https://github.com/ktbyers/netmiko/issues](https://github.com/ktbyers/netmiko/issues). Please make sure you've read through the common issues and examples prior to opening an issue. Please only open issues for bugs, feature requests, or other topics related to development of Netmiko. If you simply have a question, join us on Slack...\n\nIf you have questions or would like to discuss Netmiko, a #netmiko channel exists in [this Slack](https://pynet.slack.com) workspace. To join, use [this invitation](https://join.slack.com/t/pynet/shared_invite/zt-km2k3upf-AkWHY4YEx3sI1R5irMmc7Q). Once you have entered the workspace, then you can join the #netmiko channel.\n\n\u003cbr /\u003e\n\n## Sponsors 2025\n\nSpecial thanks to organizations and people that have helped support Netmiko development. In particular, these organizations have made meaningful contributions that help Netmiko keep moving forward:\n\n\u003ca href=\"https://slurpit.io/\"\u003e\u003cimg src=\"https://github.com/ktbyers/netmiko/blob/develop/images/slurpit.png\" width=\"200\" alt=\"Slurp'it Logo\"\u003e\u003c/a\u003e\n\u003ca href=\"https://netpicker.io/\"\u003e\u003cimg src=\"https://github.com/ktbyers/netmiko/blob/develop/images/netpicker.png\" width=\"200\" alt=\"Netpicker Logo\"\u003e\u003c/a\u003e\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n##  \nKirk Byers \u003cbr /\u003e\nPython for Network Engineers \u003cbr /\u003e\nhttps://pynet.twb-tech.com  \u003cbr /\u003e\n\u003cbr /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktbyers%2Fnetmiko","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fktbyers%2Fnetmiko","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktbyers%2Fnetmiko/lists"}