napalm-automation-community / napalm-dellos10

NAPALM Driver for Dell EMC OS10 Enterprise
http://dellos10-napalm.readthedocs.io/en/latest/
Apache License 2.0
10 stars 11 forks source link

Pattern not Detected #43

Open natioifhoop opened 1 year ago

natioifhoop commented 1 year ago

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 commented 1 year ago

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 commented 5 months ago

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

For example:

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])