-
Notifications
You must be signed in to change notification settings - Fork 19
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
Timeout on sample scripts #30
Comments
Can you put the command "show run" in quotations like so and see if that changes:
|
It already is ['show run']. Didn't realise I didn't put it back, i had troubles with formatting on my first try and it was screwing up there. Sorry, Edited the master post |
The user you're using to login to execute the |
Yes I'm using the manager account. I've found another solution. Looking at the arubaos_anycli.py ( https://github.com/aruba/aos-switch-ansible-collection/blob/master/plugins/modules/arubaoss_anycli.py ) It gives us another command which is
Creating a playbook like this and executing it with -v will output the show running-config in base64. Not bad.
edit after thinking: this is a solution to my problem but doesn't change the fact that arubaoss_command is timing out |
Glad to see you have a workaround but also confusing as to why you're getting a timeout - if you're able to work with your SE we could have a debug session. The timeout would make sense if you're running a command that required interaction but that's not the case here. I haven't been able to reproduce the issue using multiple different show commands on both platforms - here's my env:
|
That is weird if you don't have any problems but i do, that sucks. I'm having a couple of problems with another module too (arubaoss_config_bkup) so I'm wandering if i should maybe re-install everything and see if it was some kind of fluke.
I've never done a debug session with ansible before, but if you're down to help I'm down to learn. |
Hello I'm trying to show a PoC for our config management and I'm stuck on our aruba modules (everything else seems to be working OK)
Enviroment:
Sample playbook from https://galaxy.ansible.com/arubanetworks/aos_switch :
with the sample inventory:
And my ansible.cfg
Executing will create the VLANs (this is good) and go to the 'show run' command and will timeout. Even if my timeout is at 30, 60 or 120 seconds ( export ANSIBLE_PERSISTENT_CONNECT_TIMEOUT=60 ). I've tried multiple commands and all cli commands gives me a timeout.
The command I'd like to execute is copy running-config tftp xxx.xx.xx.xx config.txt. Crawling the internet there seems to be multiple different version of the collection, with multiple fonctions what aren't used/support anymore so I'm struggling getting the basics down with the Aruba.
Thanks for any help
The text was updated successfully, but these errors were encountered: