{"action":"opened","number":329,"pull_request":{"url":"https://api.github.com/repos/ktbyers/netmiko/pulls/329","id":96140414,"html_url":"https://github.com/ktbyers/netmiko/pull/329","diff_url":"https://github.com/ktbyers/netmiko/pull/329.diff","patch_url":"https://github.com/ktbyers/netmiko/pull/329.patch","issue_url":"https://api.github.com/repos/ktbyers/netmiko/issues/329","number":329,"state":"open","locked":false,"title":"Add guesser module","user":{"login":"maximumG","id":4469833,"avatar_url":"https://avatars.githubusercontent.com/u/4469833?v=3","gravatar_id":"","url":"https://api.github.com/users/maximumG","html_url":"https://github.com/maximumG","followers_url":"https://api.github.com/users/maximumG/followers","following_url":"https://api.github.com/users/maximumG/following{/other_user}","gists_url":"https://api.github.com/users/maximumG/gists{/gist_id}","starred_url":"https://api.github.com/users/maximumG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximumG/subscriptions","organizations_url":"https://api.github.com/users/maximumG/orgs","repos_url":"https://api.github.com/users/maximumG/repos","events_url":"https://api.github.com/users/maximumG/events{/privacy}","received_events_url":"https://api.github.com/users/maximumG/received_events","type":"User","site_admin":false},"body":"The guesser module contains a *Guesser* class, which is used to auto guess the Netmiko *device_type* before creating a new *ConnectionClass* using the *ConnectHandler* function.\r\n\r\nThe Guesser is using SNMP (v1/v2/v3) to reach a specific OID per device_type - most of the time it will be SysDescr. The value retrieved from the OID must be a string that will be matched by a regular expression.\r\n\r\nPlease read the code documentation for further option on SNMPv2 and SNMPv3 usage.\r\n\r\nUsage\r\n------\r\n```\r\n# SNMPv2\r\nfrom netmiko.guesser import Guesser\r\ng = Guesser(\"192.168.1.1\", snmp_version=\"v2\", community=\"read\")\r\ntype = g.guess()\r\nprint type\r\n\r\n#SNMPv3\r\nfrom netmiko.guesser import Guesser\r\ng = Guesser(\"192.168.1.1\", snmp_version=\"v3\", auth_key=\"auth\", encrypt_key=\"cypher\", auth_proto=\"sha\", encrypt_proto=\"aes256\")\r\ntype = g.guess()\r\nprint type\r\n\r\ncisco = {\r\n'device_type': type,\r\n'ip': '192.168.1.1',\r\n'username': 'pyclass',\r\n'password': 'password'}\r\nnet_connect = ConnectHandler(**cisco)","created_at":"2016-12-01T18:07:33Z","updated_at":"2016-12-01T18:07:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c4db20019d33d834129096f643799ce22ce1974","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ktbyers/netmiko/pulls/329/commits","review_comments_url":"https://api.github.com/repos/ktbyers/netmiko/pulls/329/comments","review_comment_url":"https://api.github.com/repos/ktbyers/netmiko/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ktbyers/netmiko/issues/329/comments","statuses_url":"https://api.github.com/repos/ktbyers/netmiko/statuses/4921075dcc01e6452e4c5999d9e58f403a6cd2f8","head":{"label":"maximumG:master","ref":"master","sha":"4921075dcc01e6452e4c5999d9e58f403a6cd2f8","user":{"login":"maximumG","id":4469833,"avatar_url":"https://avatars.githubusercontent.com/u/4469833?v=3","gravatar_id":"","url":"https://api.github.com/users/maximumG","html_url":"https://github.com/maximumG","followers_url":"https://api.github.com/users/maximumG/followers","following_url":"https://api.github.com/users/maximumG/following{/other_user}","gists_url":"https://api.github.com/users/maximumG/gists{/gist_id}","starred_url":"https://api.github.com/users/maximumG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximumG/subscriptions","organizations_url":"https://api.github.com/users/maximumG/orgs","repos_url":"https://api.github.com/users/maximumG/repos","events_url":"https://api.github.com/users/maximumG/events{/privacy}","received_events_url":"https://api.github.com/users/maximumG/received_events","type":"User","site_admin":false},"repo":{"id":75303026,"name":"netmiko","full_name":"maximumG/netmiko","owner":{"login":"maximumG","id":4469833,"avatar_url":"https://avatars.githubusercontent.com/u/4469833?v=3","gravatar_id":"","url":"https://api.github.com/users/maximumG","html_url":"https://github.com/maximumG","followers_url":"https://api.github.com/users/maximumG/followers","following_url":"https://api.github.com/users/maximumG/following{/other_user}","gists_url":"https://api.github.com/users/maximumG/gists{/gist_id}","starred_url":"https://api.github.com/users/maximumG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximumG/subscriptions","organizations_url":"https://api.github.com/users/maximumG/orgs","repos_url":"https://api.github.com/users/maximumG/repos","events_url":"https://api.github.com/users/maximumG/events{/privacy}","received_events_url":"https://api.github.com/users/maximumG/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maximumG/netmiko","description":"Multi-vendor library to simplify Paramiko SSH connections to network devices","fork":true,"url":"https://api.github.com/repos/maximumG/netmiko","forks_url":"https://api.github.com/repos/maximumG/netmiko/forks","keys_url":"https://api.github.com/repos/maximumG/netmiko/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maximumG/netmiko/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maximumG/netmiko/teams","hooks_url":"https://api.github.com/repos/maximumG/netmiko/hooks","issue_events_url":"https://api.github.com/repos/maximumG/netmiko/issues/events{/number}","events_url":"https://api.github.com/repos/maximumG/netmiko/events","assignees_url":"https://api.github.com/repos/maximumG/netmiko/assignees{/user}","branches_url":"https://api.github.com/repos/maximumG/netmiko/branches{/branch}","tags_url":"https://api.github.com/repos/maximumG/netmiko/tags","blobs_url":"https://api.github.com/repos/maximumG/netmiko/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maximumG/netmiko/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maximumG/netmiko/git/refs{/sha}","trees_url":"https://api.github.com/repos/maximumG/netmiko/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maximumG/netmiko/statuses/{sha}","languages_url":"https://api.github.com/repos/maximumG/netmiko/languages","stargazers_url":"https://api.github.com/repos/maximumG/netmiko/stargazers","contributors_url":"https://api.github.com/repos/maximumG/netmiko/contributors","subscribers_url":"https://api.github.com/repos/maximumG/netmiko/subscribers","subscription_url":"https://api.github.com/repos/maximumG/netmiko/subscription","commits_url":"https://api.github.com/repos/maximumG/netmiko/commits{/sha}","git_commits_url":"https://api.github.com/repos/maximumG/netmiko/git/commits{/sha}","comments_url":"https://api.github.com/repos/maximumG/netmiko/comments{/number}","issue_comment_url":"https://api.github.com/repos/maximumG/netmiko/issues/comments{/number}","contents_url":"https://api.github.com/repos/maximumG/netmiko/contents/{+path}","compare_url":"https://api.github.com/repos/maximumG/netmiko/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maximumG/netmiko/merges","archive_url":"https://api.github.com/repos/maximumG/netmiko/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maximumG/netmiko/downloads","issues_url":"https://api.github.com/repos/maximumG/netmiko/issues{/number}","pulls_url":"https://api.github.com/repos/maximumG/netmiko/pulls{/number}","milestones_url":"https://api.github.com/repos/maximumG/netmiko/milestones{/number}","notifications_url":"https://api.github.com/repos/maximumG/netmiko/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maximumG/netmiko/labels{/name}","releases_url":"https://api.github.com/repos/maximumG/netmiko/releases{/id}","deployments_url":"https://api.github.com/repos/maximumG/netmiko/deployments","created_at":"2016-12-01T15:00:47Z","updated_at":"2016-12-01T15:00:48Z","pushed_at":"2016-12-01T17:52:36Z","git_url":"git://github.com/maximumG/netmiko.git","ssh_url":"git@github.com:maximumG/netmiko.git","clone_url":"https://github.com/maximumG/netmiko.git","svn_url":"https://github.com/maximumG/netmiko","homepage":null,"size":2062,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ktbyers:master","ref":"master","sha":"47c597a674ac8d7e8a2c18388bfb3dbcb205b273","user":{"login":"ktbyers","id":899716,"avatar_url":"https://avatars.githubusercontent.com/u/899716?v=3","gravatar_id":"","url":"https://api.github.com/users/ktbyers","html_url":"https://github.com/ktbyers","followers_url":"https://api.github.com/users/ktbyers/followers","following_url":"https://api.github.com/users/ktbyers/following{/other_user}","gists_url":"https://api.github.com/users/ktbyers/gists{/gist_id}","starred_url":"https://api.github.com/users/ktbyers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktbyers/subscriptions","organizations_url":"https://api.github.com/users/ktbyers/orgs","repos_url":"https://api.github.com/users/ktbyers/repos","events_url":"https://api.github.com/users/ktbyers/events{/privacy}","received_events_url":"https://api.github.com/users/ktbyers/received_events","type":"User","site_admin":false},"repo":{"id":27283062,"name":"netmiko","full_name":"ktbyers/netmiko","owner":{"login":"ktbyers","id":899716,"avatar_url":"https://avatars.githubusercontent.com/u/899716?v=3","gravatar_id":"","url":"https://api.github.com/users/ktbyers","html_url":"https://github.com/ktbyers","followers_url":"https://api.github.com/users/ktbyers/followers","following_url":"https://api.github.com/users/ktbyers/following{/other_user}","gists_url":"https://api.github.com/users/ktbyers/gists{/gist_id}","starred_url":"https://api.github.com/users/ktbyers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktbyers/subscriptions","organizations_url":"https://api.github.com/users/ktbyers/orgs","repos_url":"https://api.github.com/users/ktbyers/repos","events_url":"https://api.github.com/users/ktbyers/events{/privacy}","received_events_url":"https://api.github.com/users/ktbyers/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ktbyers/netmiko","description":"Multi-vendor library to simplify Paramiko SSH connections to network devices","fork":false,"url":"https://api.github.com/repos/ktbyers/netmiko","forks_url":"https://api.github.com/repos/ktbyers/netmiko/forks","keys_url":"https://api.github.com/repos/ktbyers/netmiko/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ktbyers/netmiko/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ktbyers/netmiko/teams","hooks_url":"https://api.github.com/repos/ktbyers/netmiko/hooks","issue_events_url":"https://api.github.com/repos/ktbyers/netmiko/issues/events{/number}","events_url":"https://api.github.com/repos/ktbyers/netmiko/events","assignees_url":"https://api.github.com/repos/ktbyers/netmiko/assignees{/user}","branches_url":"https://api.github.com/repos/ktbyers/netmiko/branches{/branch}","tags_url":"https://api.github.com/repos/ktbyers/netmiko/tags","blobs_url":"https://api.github.com/repos/ktbyers/netmiko/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ktbyers/netmiko/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ktbyers/netmiko/git/refs{/sha}","trees_url":"https://api.github.com/repos/ktbyers/netmiko/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ktbyers/netmiko/statuses/{sha}","languages_url":"https://api.github.com/repos/ktbyers/netmiko/languages","stargazers_url":"https://api.github.com/repos/ktbyers/netmiko/stargazers","contributors_url":"https://api.github.com/repos/ktbyers/netmiko/contributors","subscribers_url":"https://api.github.com/repos/ktbyers/netmiko/subscribers","subscription_url":"https://api.github.com/repos/ktbyers/netmiko/subscription","commits_url":"https://api.github.com/repos/ktbyers/netmiko/commits{/sha}","git_commits_url":"https://api.github.com/repos/ktbyers/netmiko/git/commits{/sha}","comments_url":"https://api.github.com/repos/ktbyers/netmiko/comments{/number}","issue_comment_url":"https://api.github.com/repos/ktbyers/netmiko/issues/comments{/number}","contents_url":"https://api.github.com/repos/ktbyers/netmiko/contents/{+path}","compare_url":"https://api.github.com/repos/ktbyers/netmiko/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ktbyers/netmiko/merges","archive_url":"https://api.github.com/repos/ktbyers/netmiko/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ktbyers/netmiko/downloads","issues_url":"https://api.github.com/repos/ktbyers/netmiko/issues{/number}","pulls_url":"https://api.github.com/repos/ktbyers/netmiko/pulls{/number}","milestones_url":"https://api.github.com/repos/ktbyers/netmiko/milestones{/number}","notifications_url":"https://api.github.com/repos/ktbyers/netmiko/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ktbyers/netmiko/labels{/name}","releases_url":"https://api.github.com/repos/ktbyers/netmiko/releases{/id}","deployments_url":"https://api.github.com/repos/ktbyers/netmiko/deployments","created_at":"2014-11-28T21:42:52Z","updated_at":"2016-12-01T10:47:55Z","pushed_at":"2016-12-01T18:07:33Z","git_url":"git://github.com/ktbyers/netmiko.git","ssh_url":"git@github.com:ktbyers/netmiko.git","clone_url":"https://github.com/ktbyers/netmiko.git","svn_url":"https://github.com/ktbyers/netmiko","homepage":null,"size":2062,"stargazers_count":413,"watchers_count":413,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":177,"mirror_url":null,"open_issues_count":52,"forks":177,"open_issues":52,"watchers":413,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ktbyers/netmiko/pulls/329"},"html":{"href":"https://github.com/ktbyers/netmiko/pull/329"},"issue":{"href":"https://api.github.com/repos/ktbyers/netmiko/issues/329"},"comments":{"href":"https://api.github.com/repos/ktbyers/netmiko/issues/329/comments"},"review_comments":{"href":"https://api.github.com/repos/ktbyers/netmiko/pulls/329/comments"},"review_comment":{"href":"https://api.github.com/repos/ktbyers/netmiko/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ktbyers/netmiko/pulls/329/commits"},"statuses":{"href":"https://api.github.com/repos/ktbyers/netmiko/statuses/4921075dcc01e6452e4c5999d9e58f403a6cd2f8"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":270,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"maximumG"}}