Posted on July 18, 2019 9:12 pm
 |  Asked by Chandra
 |  94 views
RESOLVED
0
0
Print Friendly, PDF & Email

While I am running Python script for LEAF & Spines, I am getting below error every-time. Below test was an example for just local account username but same errors I get for CPU test, Interface Test & for other test files too. From Leaf & Spine, there is full reachability to LAN & other services behind firewall & rules are open/in place & mgmt api commands are in place.

Second, When I connected the laptop directly to switch & run the below test again with test files, again I am getting the same error, not sure why ? Any inputs would be great help

Running tests for device: Spine2

==============================================================================
Test Device Spine2 :: This test verifies the user local accounts username, …
==============================================================================
[ ERROR ] [Errno 10061] No connection could be made because the target machine actively refused it
Local User Account :: Checks local user account configuration. | FAIL |
Parent suite setup failed:
ConnectionError: Socket error during eAPI connection: [Errno 10061] No connection could be made because the target machine actively refused it

0
Posted by Lokesh Charora
Answered on July 19, 2019 3:20 pm

Generally you would see this issue if:


1) The user account which is running the script is not present on the switch.
2) EAPI is not enabled on the switch. This can be verified with following command:
#show management api http-commands
Enabled: Yes < << Make sure this is enabled.
HTTPS server: running, set to use port 443
HTTP server: running, set to use port 80
Local HTTP server: shutdown, no authentication, set to use port 8080
Unix Socket server: running, no authentication

Post your Answer

You must be logged in to post an answer.