-
Notifications
You must be signed in to change notification settings - Fork 931
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
AsyncOS prompt not always matching #3327
Comments
- The prompt specified in issue #3327 works - Creating a cmdset in order to get a YAML simulation file
The prompt you specified (" The needed script command line is `./device2yaml.rb user@devicename -c cmdsets/asyncos -o yaml/asyncos.yaml You will have to press space and 3 + return when asked to, the script does not know how to interact to the device. |
The file generated is rather big with 55809 lines due to the big configuration. The prompt is exactly in this format : "(Machine xx-xx-x1xx1-xxxx-xxxx.xxxx.xxxxx.example.xxx)> ". It does not match with default prompt due to this character '-'. That is how I generated the file but it contains sensitive configuration. However I can share the ssh logs so that you can see (it hangs at the end of showconfig command, when the prompt appears) :
|
In our company, we have ESA devices running AsyncOS 14.X.
We have made two changes to adapt asyncos.rb to our devices :
Apart from these changes, the script is identical. However, there is something wrong with the behavior that I could not understand : The prompt is correctly detected and handled until the end of the showconfig command, the prompt reappears and is identical as expected, but Oxidized does not run the pre_logout command "exit" to end the session. Instead, it hangs until the timeout is raised, failing the backup.
I could not identify the cause of this, any idea on how to fix this?
The text was updated successfully, but these errors were encountered: