change default_enter behavior for Aruba driver
See original GitHub issueIn reference to “how to hit enter after a send_command #330” you offered a solution to respond to a router prompt. I am having an issue in changing a password, when manually performing this it prompts for a Password: and for you to re-enter the password as seen below. The solution that you offered did not work for me and after looking at the logs it looks to be sending the first password successfully but it it not reading the prompt for the second password.
Any code examples or solutions that you can provide would be amazing.
Manual Example:
(exampledevice1) (config) #mgmt-user admin root
Password:********
Re-Type password:********
My Python Code:
net_connect.config_mode()
command = 'mgmt-user admin root'
aruba_pass = 'examplepassword'
configure4 = net_connect.send_command_timing(command)
if 'Password:' in configure4:
configure4 += net_connect.send_command_timing(aruba_pass)
if 'password:' in configure4:
configure4 += net_connect.send_command_timing(aruba_pass)
net_connect.exit_config_mode()
output2 = net_connect.save_config()
I have tried several different ways and it still wont work, any help would be greatly appreciated.
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (8 by maintainers)
Top Results From Across the Web
Aruba 2930 M/F Management and Configuration Guide for ...
Change in server behavior ... Among the keys that have been configured, one key or a set of keys must be ... Too...
Read more >HP StorageWorks EVA 5000 - Procedures for Getting Started
Obtain a license key. Contact a Compaq Authorized Service Provider for hardware configuration. Enter the storage system World Wide Name (WWN) into the...
Read more >Getting Started with Aruba CX 6100 Series Switches using CLI
In this video, we'll show you step-by-step how to get started with the Aruba CX 6100 switch series using the Command Line Interface...
Read more >Changing Fleet Driver Behavior | CEI Network
Driver Awareness. The first step to engage drivers is to make them aware of their unsafe fleet driving behaviors. This is especially important...
Read more >Driving in Aruba: What You Need To Know - TripSavvy
Additionally, there is a predominance of roundabouts instead of traffic lights at major intersections, which is a change that has been ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I literally just tried that and it worked. That was the solution, it took the command. Thank you so much for all of the help. For the sake of people like me here is the complete working code below:
@ktbyers Thanks again for all of the help!!! You are a great person!
You could try this:
And see if that makes any difference.