Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pattern not Detected #43

Open
natioifhoop opened this issue Aug 29, 2023 · 2 comments
Open

Pattern not Detected #43

natioifhoop opened this issue Aug 29, 2023 · 2 comments

Comments

@natioifhoop
Copy link

natioifhoop commented Aug 29, 2023

Hello Together,
Im trying to use Netbox to fetch data from Dell Switches.
Napalm-dellos10 is installed.

I get the following error:

Method get_facts failed:
Pattern not detected: 'SWITCH\-HOME\-TEST\-2\-HOSTING1\-1\#' in output.

Things you might try to fix this:

  1. Explicitly set your pattern using the expect_string argument.
  2. Increase the read_timeout to a larger value.

About a year ago it was working. Dont know what i am doing wrong now :(

Would be awesome if someone can provide me help oder a hint :)

Kind Regrads
Chris

@natioifhoop
Copy link
Author

When execute "show running config"
The config is showen without hostname in the beginning of the line.

This Could be the Problem.

But how can i change the pattern so he dont expect "SWITCH-HOME-TEST-2-HOSTING1-1#" in the beginning?

Kind Regards
Chris

@teodoro98
Copy link

teodoro98 commented Mar 12, 2024

This error is related to the different path for configure and no configure mode.

For example:

  • No configure mode: clnet4-leaf2#
  • into configure mode: clnet4-leaf2(config)#

and this is not expected by the send_command function of netmiko

Workaround for me is replace the call output=self.device.send_command(command) into the https://github.com/napalm-automation-community/napalm-dellos10/blob/master/napalm_dellos10/dellos10.py#L143 with the output=self.device.send_command_timing(command) instead.

The send_command_timing is delay-based and doesn't look for the device prompt (will work in configuration mode [conf t])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants