{"action":"created","issue":{"url":"https://api.github.com/repos/ktbyers/netmiko/issues/253","repository_url":"https://api.github.com/repos/ktbyers/netmiko","labels_url":"https://api.github.com/repos/ktbyers/netmiko/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/ktbyers/netmiko/issues/253/comments","events_url":"https://api.github.com/repos/ktbyers/netmiko/issues/253/events","html_url":"https://github.com/ktbyers/netmiko/issues/253","id":170605673,"number":253,"title":"Unable to connect to Nexus 5020 device","user":{"login":"pmakovec","id":18327779,"avatar_url":"https://avatars.githubusercontent.com/u/18327779?v=3","gravatar_id":"","url":"https://api.github.com/users/pmakovec","html_url":"https://github.com/pmakovec","followers_url":"https://api.github.com/users/pmakovec/followers","following_url":"https://api.github.com/users/pmakovec/following{/other_user}","gists_url":"https://api.github.com/users/pmakovec/gists{/gist_id}","starred_url":"https://api.github.com/users/pmakovec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmakovec/subscriptions","organizations_url":"https://api.github.com/users/pmakovec/orgs","repos_url":"https://api.github.com/users/pmakovec/repos","events_url":"https://api.github.com/users/pmakovec/events{/privacy}","received_events_url":"https://api.github.com/users/pmakovec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-11T09:37:02Z","updated_at":"2016-08-11T10:18:29Z","closed_at":null,"body":"I'm experiencing problem with netmiko connection to the Nexus 5020 switch while Nexus 5596 is working well.\r\nTested with Netmiko\r\nVersion: 0.4.3\r\nVersion: 0.5.6\r\nSame result.\r\n\r\nCode:\r\nimport netmiko\r\nfrom netmiko import ConnectHandler\r\n\r\nusername = \"user\"\r\npassword = \"pass\"\r\n\r\nprint(\"Nexus 5596\")\r\nprint(ConnectHandler(\r\n        device_type='cisco_nxos',\r\n        ip=\"prgdca-b1-sa-sw61\",\r\n        username=username,\r\n        password=password,\r\n    ))\r\n\r\nprint(\"Nexus 5020\")\r\nprint(ConnectHandler(\r\n        device_type='cisco_nxos',\r\n        ip=\"prgdca-b1-sa-sw51\",\r\n        username=username,\r\n        password=password,\r\n    ))\r\n\r\n\r\nResult:\r\n$ python3 test.py\r\nNexus 5596\r\n<netmiko.cisco.cisco_nxos_ssh.CiscoNxosSSH object at 0xb72eb5cc>\r\nNexus 5020\r\nTraceback (most recent call last):\r\n  File \"test.py\", line 21, in <module>\r\n    password=password,\r\n  File \"/usr/local/lib/python3.4/dist-packages/netmiko/ssh_dispatcher.py\", line 88, in ConnectHandler\r\n    return ConnectionClass(*args, **kwargs)\r\n  File \"/usr/local/lib/python3.4/dist-packages/netmiko/base_connection.py\", line 69, in __init__\r\n    self.session_preparation()\r\n  File \"/usr/local/lib/python3.4/dist-packages/netmiko/base_connection.py\", line 82, in session_preparation\r\n    self.set_base_prompt()\r\n  File \"/usr/local/lib/python3.4/dist-packages/netmiko/base_connection.py\", line 253, in set_base_prompt\r\n    raise ValueError(\"Router prompt not found: {0}\".format(prompt))\r\nValueError: Router prompt not found: http://www.opensource.org/licenses/lgpl-2.1.php\r\n\r\n\r\nSSH to the Nexus 5020\r\n$ ssh prgdca-b1-sa-sw51\r\nNexus 5000 Switch\r\nPassword:\r\nCisco Nexus Operating System (NX-OS) Software\r\nTAC support: http://www.cisco.com/tac\r\nCopyright (c) 2002-2013, Cisco Systems, Inc. All rights reserved.\r\nThe copyrights to certain works contained in this software are\r\nowned by other third parties and used and distributed under\r\nlicense. Certain components of this software are licensed under\r\nthe GNU General Public License (GPL) version 2.0 or the GNU\r\nLesser General Public License (LGPL) Version 2.1. A copy of each\r\nsuch license is available at\r\nhttp://www.opensource.org/licenses/gpl-2.0.php and\r\nhttp://www.opensource.org/licenses/lgpl-2.1.php\r\nprgdca-b1-sa-sw51#\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ktbyers/netmiko/issues/comments/239123137","html_url":"https://github.com/ktbyers/netmiko/issues/253#issuecomment-239123137","issue_url":"https://api.github.com/repos/ktbyers/netmiko/issues/253","id":239123137,"user":{"login":"pmakovec","id":18327779,"avatar_url":"https://avatars.githubusercontent.com/u/18327779?v=3","gravatar_id":"","url":"https://api.github.com/users/pmakovec","html_url":"https://github.com/pmakovec","followers_url":"https://api.github.com/users/pmakovec/followers","following_url":"https://api.github.com/users/pmakovec/following{/other_user}","gists_url":"https://api.github.com/users/pmakovec/gists{/gist_id}","starred_url":"https://api.github.com/users/pmakovec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmakovec/subscriptions","organizations_url":"https://api.github.com/users/pmakovec/orgs","repos_url":"https://api.github.com/users/pmakovec/repos","events_url":"https://api.github.com/users/pmakovec/events{/privacy}","received_events_url":"https://api.github.com/users/pmakovec/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T10:18:29Z","updated_at":"2016-08-11T10:18:29Z","body":"Tested with netmiko 0.3.4 from Windows - working.\r\nLooks only newer versions are affected."}}
{"actor":{"display_login":"pmakovec"}}