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

Image Not Getting Copied for Arista 7010T switches! #32

Open
sindhujit1 opened this issue Mar 18, 2021 · 4 comments
Open

Image Not Getting Copied for Arista 7010T switches! #32

sindhujit1 opened this issue Mar 18, 2021 · 4 comments

Comments

@sindhujit1
Copy link

Hi Kirk,

When i use the netmiko_file_transfer module, I am getting the following error:

OSError: Search pattern never detected in send_command_expect: [\$#]

Nornir Code:

nr_arista = nr.filter(F(hostname__in=device_urlArray))
nornir_set_creds(nr_arista ,fabricList,device_urlArray)
source_file = project_path + "/media/" + BinFile
result = nr_arista.run(
task=netmiko_file_transfer,
source_file=source_file,
dest_file=BinFile,
direction='put',
num_workers=len(NodeSwitch_tmp),
)
@ktbyers
Copy link
Owner

ktbyers commented Mar 19, 2021

I need the full stack trace.

Also really should re-submit this issue against the nornir_netmiko repository and not here.

Regards, Kirk

@4EverLuna
Copy link

4EverLuna commented Mar 19, 2021 via email

@ktbyers
Copy link
Owner

ktbyers commented Mar 19, 2021

@Ziggy23810 I have no idea how you are subscribed to these messages. You will need to look into your GitHub notification settings.

Regards, Kirk

@sindhujit1
Copy link
Author

Here you go :

2021-03-18 15:49:43,938: WARNING/ForkPoolWorker-7] Traceback (most recent call last):
  File "/home/sgang31/.venvs3/netadc3/lib64/python3.6/site-packages/nornir/core/task.py", line 67, in start
    r = self.task(self, **self.params)
  File "/home/sgang31/.venvs3/netadc3/lib64/python3.6/site-packages/nornir/plugins/tasks/networking/netmiko_file_transfer.py", line 28, in netmiko_file_transfer
    net_connect, source_file=source_file, dest_file=dest_file, **kwargs
  File "/home/sgang31/.venvs3/netadc3/lib64/python3.6/site-packages/netmiko/scp_functions.py", line 78, in file_transfer
    if scp_transfer.check_file_exists():
  File "/home/sgang31/.venvs3/netadc3/lib64/python3.6/site-packages/netmiko/arista/arista.py", line 82, in check_file_exists
    return self._check_file_exists_unix(remote_cmd=remote_cmd)
  File "/home/sgang31/.venvs3/netadc3/lib64/python3.6/site-packages/netmiko/scp_handler.py", line 188, in _check_file_exists_unix
    self.ssh_ctl_chan._enter_shell()
  File "/home/sgang31/.venvs3/netadc3/lib64/python3.6/site-packages/netmiko/arista/arista.py", line 39, in _enter_shell
    return self.send_command("bash", expect_string=r"[\$#]")
  File "/home/sgang31/.venvs3/netadc3/lib64/python3.6/site-packages/netmiko/base_connection.py", line 1337, in send_command
    search_pattern
OSError: Search pattern never detected in send_command_expect: [\$#]

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

3 participants