Skip to content
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

Ask For Credentials - Script Fails When Large Number Of Devices #60

Open
Alexpf20210007 opened this issue Aug 4, 2022 · 5 comments
Open
Assignees

Comments

@Alexpf20210007
Copy link
Contributor

Alexpf20210007 commented Aug 4, 2022

I am using the ask feature to get the password info at the beginning of the script so that I do not have to worry about storing it in a text, csv, or yaml file. I ran the exact same script with the username and password in the YAML file for 100 devices and it is successful. When I remove all of the username and passwords and put the below info in script, it fails at different devices. When I reduced the number of devices in the script, it was successful. I would think this is a Unicon issue because I am not even using pyATS to run the script, just python3 and unicon. I can also say I am using a Unicon Plugin aos device which I wrote the plugin for so it would be good to test if large number of Cisco devices fail with same type of script. The script I am running logs into a device, runs a show command, and moves on to the next device.
testbed:
credentials:
default:
password: "%ASK{Password:}"
username: TESTUSER
enable:
password: "%ASK{Enable_Password:}"

@stevedhn
Copy link

stevedhn commented Aug 8, 2022

Hi, thanks for your finding, we'd like to welcome the user to contribute to the fix, so feel free to contribute and if you need some helps, please let us know.

@Alexpf20210007
Copy link
Contributor Author

Wouldn't the issue be in the unicon plugin files that I do not have access to help fix?

@stevedhn
Copy link

stevedhn commented Aug 8, 2022

Hi, what files you're refering here? you still can access to unicon plugins repos right? https://github.com/CiscoTestAutomation/unicon.plugins

@Alexpf20210007
Copy link
Contributor Author

Yes, I was thinking that some of the base files that I call are not part of the open source repo. I can look into it and get back with you.

@stevedhn
Copy link

ok great Alex, you should be able to access to all the files on unicon plugins,
You probably know this, but just make sure when you contribute, please make a branch out of the original master branch of unicon plugins, not from your forked repos.
I'll close the issue for now, once you are free to contribute, please create a PR and assign me so that we can follow up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants