-
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
Change Sophos module allowing the user to navigate the interactive menu prompt. #3489
Conversation
…to interact with the main interactive prompt.
capmerah does this change work for you? |
Breaking change...as it leaves your Sophos device in a different state than the previous code (but this probably okay). |
Thanks @ktbyers! This state change is probably for the best as Sophos has different consoles/shells for different use cases, Sophos admins will probably be happy with this. |
@capmerah you sure you are using the new code? Try this: ... |
Hi @dLoProdz , It finally works! I code the following:
And it finally show the exact output. But since the file system for Sophos SG 430 is Linux based. With normal SSH, it will show list of files as the picture below. With Netmiko output, it will become jumbled up like the picture below: At least it can able to connect to Sophos with Netmiko. |
@capmerah There is a good chance that is expected. Netmiko sets the terminal width to be wider (generally) as it is for automation and not intending to be a person. So with the |
The default functionality of Netmiko is passing an initial carriage return once the connection is established, this was breaking the compatibility with the Sophos interface which displays an interactive prompt where you need to make a numeric selection and press enter, this would set up the session in a bad place to pass the command to reach the Device Console as you need another carriage return before passing the numeric selection.
With the changes made now the user can decide whether to use any of these predefined functions of the interactive main menu, including stepping into the Device Console, or even Advanced Shell, by passing the appropriate menu selections to the connection.