好友
阅读权限10
听众
最后登录1970-1-1
|
还是报错
E:\软件\网络设备自动巡检\各友商网络设备采集v7>python\python Networkbackup.py
Traceback (most recent call last):
File "E:\软件\网络设备自动巡检\各友商网络设备采集v7\Networkbackup.py", line 176, in <module>
pool.map(ssh_session,SW_DL)
File "E:\软件\网络设备自动巡检\各友商网络设备采集v7\python\Lib\multiprocessing\pool.py", line 367, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\软件\网络设备自动巡检\各友商网络设备采集v7\python\Lib\multiprocessing\pool.py", line 774, in get
raise self._value
File "E:\软件\网络设备自动巡检\各友商网络设备采集v7\python\Lib\multiprocessing\pool.py", line 125, in worker
result = (True, func(*args, **kwds))
^^^^^^^^^^^^^^^^^^^
File "E:\软件\网络设备自动巡检\各友商网络设备采集v7\python\Lib\multiprocessing\pool.py", line 48, in mapstar
return list(map(*args))
^^^^^^^^^^^^^^^^
File "E:\软件\网络设备自动巡检\各友商网络设备采集v7\Networkbackup.py", line 49, in ssh_session
output = net_connect.send_command(dis_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\软件\网络设备自动巡检\各友商网络设备采集v7\python\Lib\site-packages\netmiko\utilities.py", line 592, in wrapper_decorator
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\软件\网络设备自动巡检\各友商网络设备采集v7\python\Lib\site-packages\netmiko\base_connection.py", line 1721, in send_command
raise ReadTimeout(msg)
netmiko.exceptions.ReadTimeout:
Pattern not detected: '<SW\\-F2\\-NEI>' 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.
You can also look at the Netmiko session_log or debug log for more information.
E:\软件\网络设备自动巡检\各友商网络设备采集v7>pause
请按任意键继续. . .
另:h3c的设备也需要enable密码?
|
|