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.

brocade_fastiron not going into enable mode due to incorrect credentials.

See original GitHub issue

I’m trying to create a python script for brocade_fastiron, but I have the following output. some commands like clock time work correctly but others like show config have the following error:

from netmiko import ConnectHandler

R1 = {
	'device_type': 'brocade_fastiron',
	'host': '10.61.0.254',
	'username': 'admin',
	'password': '******',
	}

connect = ConnectHandler(**R1)
output = connect.send_command_expect('sh run')

print ('Finish!')
Exception has occurred: OSError
Search pattern never detected in send_command_expect: SSH@SW_BSB>
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/keilon/.vscode/extensions/ms-python.python-2021.5.926500501/pythonFiles/lib/python/debugpy/__main__.py", line 45, in <module>
    cli.main()
  File "/home/keilon/.vscode/extensions/ms-python.python-2021.5.926500501/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 444, in main
    run()
  File "/home/keilon/.vscode/extensions/ms-python.python-2021.5.926500501/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 285, in run_file
    runpy.run_path(target_as_str, run_name=compat.force_str("__main__"))
  File "/usr/lib/python3.8/runpy.py", line 265, in run_path
    return _run_module_code(code, init_globals, run_name,
  File "/usr/lib/python3.8/runpy.py", line 97, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/keilon/Documentos/projetos/ancine/new-send.py", line 11, in <module>
    en = connect.send_command_expect('sh run')
  File "/usr/lib/python3/dist-packages/netmiko/base_connection.py", line 1371, in send_command_expect
    return self.send_command(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/netmiko/base_connection.py", line 1335, in send_command
    raise IOError(
OSError: Search pattern never detected in send_command_expect: SSH@SW_BSB>

Can someone help me?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
keilon-araujocommented, Jul 6, 2021

I’ll try and report the output.

0reactions
ktbyerscommented, Sep 8, 2022

Looks like probably just a missing secret argument.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ruckus FastIron Security Configuration Guide, 08.0.60
Entering privileged EXEC mode after a Telnet or SSH login. ... Configuring enable authentication to prompt for password only.
Read more >
FastIron Ethernet Switch Security Configuration Guide, 08.0.30
To find out which open source software is included in Brocade ... connection with wrong credentials, the session is not be established.
Read more >
Ruckus FastIron Management Configuration Guide, 08.0.92
5. In management interface configuration mode, enter the vrf forwarding command and specify the management VLAN, to enable VRF forwarding on ...
Read more >
Configuring Brocade ICX-Series Ethernet Switches - AN!Wiki
Switch to privileged mode (enter the switch's password, if necessary). ICX6610-24 Switch> enable. ICX6610-24 Switch#. Resetting To Factory Defaults ...
Read more >
BROCADE TELNET AND ENABLE PASSWORDS - YouTube
BROCADE CAMPUS FEATURE EXPLAINER SERIESThis series includes short videos on how to configure new and common features on the Brocade campus ...
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