04-07-2020 08:58 AM
Hi, I am trying my hands on pyats. So I have set up a basic script wherein I've a testbed file having device details in it. so when I am trying to connect to the device, it is giving me following error:
Password: Password: Password: root@10.121.12.36's password: Traceback (most recent call last): File "src/unicon/statemachine/statemachine.py", line 701, in unicon.statemachine.statemachine.StateMachine.go_to File "src/unicon/statemachine/statetransition.py", line 479, in unicon.statemachine.statetransition.AnyStateTransition.do_transitions File "src/unicon/eal/dialogs.py", line 419, in unicon.eal.dialogs.Dialog.process File "src/unicon/eal/dialog_processor.py", line 285, in unicon.eal.dialog_processor.SimpleDialogProcessor.process File "src/unicon/eal/dialog_processor.py", line 224, in unicon.eal.dialog_processor.SimpleDialogProcessor.expect_eval_statements File "/usr/local/lib/python3.6/dist-packages/unicon/plugins/generic/statements.py", line 144, in password_handler raise UniconAuthenticationError('Too many password retries') unicon.core.errors.UniconAuthenticationError: Too many password retries The above exception was the direct cause of the following exception: Traceback (most recent call last): File "src/unicon/bases/connection.py", line 532, in unicon.bases.connection.Connection.connect File "src/unicon/bases/routers/connection_provider.py", line 146, in unicon.bases.routers.connection_provider.BaseSingleRpConnectionProvider.connect File "src/unicon/bases/routers/connection_provider.py", line 169, in unicon.bases.routers.connection_provider.BaseSingleRpConnectionProvider.establish_connection File "src/unicon/statemachine/statemachine.py", line 704, in unicon.statemachine.statemachine.StateMachine.go_to unicon.core.errors.StateMachineError: Failed while bringing device to "any" state The above exception was the direct cause of the following exception: Traceback (most recent call last): File "<console>", line 1, in <module> File "src/pyats/connections/manager.py", line 305, in pyats.connections.manager.ConnectionManager.connect File "src/unicon/bases/connection.py", line 538, in unicon.bases.connection.Connection.connect unicon.core.errors.ConnectionError: failed to connect to nexus_device
device details are correct, as I am able to login via netmiko library.
Please help!!
11-23-2022 05:46 AM - edited 11-30-2022 05:23 AM
This issue is resolved in latest versions
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide