-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add A10 SSHDetect : Pattern not detected: 'A10DEVICE\\-Active\\-affinity\\-def\\-vMaster\\[1/1\\]' in output. #3431
Comments
@romio28 Can you turn on Netmiko logging and see what it shows? |
Bellow the debug log: `DEBUG:paramiko.transport:starting thread (client mode): 0xf0a55ee0 System is ready now. [type ? for help] A10_DEVICE_NAME-Active-affinity-def-vMaster[1/1]>
A10_DEVICE_NAME-Active-affinity-def-vMaster[1/1]> DEBUG:netmiko:read_channel: DEBUG:netmiko:read_channel: A10_DEVICE_NAME-Active-affinity-def-vMaster[1/1]> System is ready now. [type ? for help] A10_DEVICE_NAME-Active-affinity-def-vMaster[1/1]> pattern: (#|>) This can be problemtic when used in read_until_pattern(). You should ensure that you use either non-capture groups i.e. '(?:' or that the DEBUG:netmiko:read_channel: Enter Old Password: A10_DEVICE_NAME-Active-affinity-def-vMaster[1/1]> |
@romio28 Can you show your entire code and your entire exception stack trace (i.e. all the lines of the exception stack trace). |
debug file: test.log Code: `from netmiko import SSHDetect, ConnectHandler device = { guesser = SSHDetect(**device) with ConnectHandler(**device) as connection: |
The problem is in the find_prmpt() function, it trying to go in enable mode, it work if I add the secret password: "C:\Users\PycharmProjects\backup\venv\Scripts\python.exe" "C:/Users//PycharmProjects/backup/test.py" Pattern not detected: 'A10_DEVICE_NAME\-Active\-affinity\-def\-vMaster\[1/1\]' in output. Things you might try to fix this:
You can also look at the Netmiko session_log or debug log for more information. Process finished with exit code 1 |
The A10 driver requires enable password (as A10 requires enable mode to disable output paging and Netmiko requires this). https://github.com/ktbyers/netmiko/blob/develop/netmiko/a10/a10_ssh.py#L9-L12 |
Hello,
I'm trying to add the ssh auto detect for A10 device:
Command output:
A10DEVICE-Active-affinity-def-vMaster[1/1]>show version
Thunder Series Unified Application Service Gateway TH3030S
Copyright 2007-2017 by A10 Networks, Inc. All A10 Networks products are
protected by one or more of the following US patents:
....
64-bit Advanced Core OS (ACOS) version 4.1.1-P5, build 20 (Sep-12-2017,18:18)
Booted from Hard Disk primary image
Serial Number: .........................
aFleX version: 2.0.0
aXAPI version: 3.0
Hard Disk primary image (default) version 4.1.1-P5, build 20
Hard Disk secondary image version 4.1.1-P5, build 20
Last configuration saved at May-2-2024, 17:05
Hardware: 8 CPUs(Stepping 9), Single 74G Hard disk
Memory 16373 Mbyte, Free Memory 7376 Mbyte
Hardware Manufacturing Code: .................
Current time is May-6-2024, 14:26
The system has been up 39 days, 14 hours, 35 minutes
A10DEVICE-Active-affinity-def-vMaster[1/1]>
But i recive this error:
192.168.25.15 An exception occurred:
Pattern not detected: 'A10DEVICE\-Active\-affinity\-def\-vMaster\[1/1\]' in output.
Things you might try to fix this:
many situations the pattern is automatically based on the network device's prompt.
You can also look at the Netmiko session_log or debug log for more information.
Any help please?
The text was updated successfully, but these errors were encountered: