unicon.plugins icon indicating copy to clipboard operation
unicon.plugins copied to clipboard

Ask For Credentials - Script Fails When Large Number Of Devices

Open Alexpf20210007 opened this issue 2 years ago • 5 comments

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:}"

Alexpf20210007 avatar Aug 04 '22 17:08 Alexpf20210007

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.

stevedhn avatar Aug 08 '22 15:08 stevedhn

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

Alexpf20210007 avatar Aug 08 '22 15:08 Alexpf20210007

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

stevedhn avatar Aug 08 '22 16:08 stevedhn

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.

Alexpf20210007 avatar Aug 08 '22 17:08 Alexpf20210007

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.

stevedhn avatar Aug 11 '22 20:08 stevedhn