question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to find prompt error on HP ProCurve 2510, 2610, and 2810 switches

See original GitHub issue

I’ve verified login information by manually SSHing to the switch and running this exact code on other model of switches without error. Here’s the exact traceback I get:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\netmiko\ssh_dispatcher.py", line 96, in ConnectHandler
    return ConnectionClass(*args, **kwargs)
  File "C:\Python27\lib\site-packages\netmiko\base_connection.py", line 90, in __init__
    self.session_preparation()
  File "C:\Python27\lib\site-packages\netmiko\hp\hp_procurve_ssh.py", line 23, in session_preparation
    self.set_base_prompt()
  File "C:\Python27\lib\site-packages\netmiko\base_connection.py", line 504, in set_base_prompt
    prompt = self.find_prompt(delay_factor=delay_factor)
  File "C:\Python27\lib\site-packages\netmiko\base_connection.py", line 549, in find_prompt
    raise ValueError("Unable to find prompt: {}".format(prompt))
ValueError: Unable to find prompt:

And here’s my code:

from netmiko import ConnectHandler
net_connect = ConnectHandler(device_type='hp_procurve', ip='172.16.1.220', username='manager', password='password')
net_connect.send_command("copy run tftp 172.16.1.1 SwitchBackups\\Hershey\\HPS-LIB-HP2810A.txt")
net_connect.disconnect()

Login prompt looks identical to other models of switches so not sure what could be tripping up netmiko here.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:20 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
rwwelfordcommented, Dec 14, 2016

Thanks Kirk. This library is very useful for us and I appreciate the work you put into it.

1reaction
devinmcintyrecommented, Nov 15, 2016

That did the trick! One interesting thing to note is that a global_delay_factor of 2 worked in a Python script, but I had to bump it up to 6 after compiling it to an exe with PyInstaller for it to work. Also, 2626 models were affected by this issue as well I found.

Thanks for all the help! Everything appears to be working for me now. Even have these configs setup to push to a git repo weekly so we can do version controlling. Very helpful solution this module made possible.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HP ProCurve 2810 Switch Series - Diagnosing with the LED
Problem: The switch is not plugged into an active AC power source, or the switch's power supply may have failed and the RPS...
Read more >
ProCurve Series 2510 Switches Managment and ...
Figure 2-2. Command Prompt Examples. □. Provides access to the complete set of the switch configuration, perfor- mance, and diagnostic features.
Read more >
Learning how to connect to ProCurve Switch using Putty
Solution: A blank screen over a serial connection is commonly just caused by your port speed being incorrect. Try changing it to 19200 ......
Read more >
ProCurve Series 2510 Switch
Figure 1-2. ProCurve Switch 2510-48. * 10/100Base-T ports support HP Auto MDI-X features. **10/100/1000 ports are IEEE MDI/MDIX. Power, Fault and Locator.
Read more >
Release Notes N.11.69 - device.report
Release Notes: Version N.11.69 Software for the HP Series 2810 Switches ... PS PS1810 Switches (PS1810-8G, PS1810-24G) Q Switch 2510-24 R Switch 2610...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found