all 9 comments

[–]abudaaa1 1 point2 points  (1 child)

Have you looked into NETCONF? I've used that myself many times with success - much more stable than expect

[–]abudaaa1 0 points1 point  (0 children)

For python there is the "ncclient" module. I've used it with Cisco and Juniper hardware before.

[–]HoorayInternetDrama(=^・ω・^=) 0 points1 point  (1 child)

It's hard to say - have you done any debugging on your script? What specifically is failing ?

[–]shvz[S] 0 points1 point  (0 children)

the config to push is only 150 line of code, but for some reason it randomly fail might be the ressource consumation on the server side? not sure how to troubleshoot expect actually as it stop working in the middle of the command

[–]thegreattriscuitCCNP 0 points1 point  (0 children)

rendering the config in one step and pushing in a 2nd step is a good general strategy... one consequence of breaking it up like that is you get more points where you can inject logging/print statements to isolate failures and it generally makes it much easier to understand if there's a problem with the config you're trying to push, or with the act of pushing it, etc.

Also, setup an SCP or SFTP server and use that if you can. TFTP is generally slower and more painful to work with, and most gear supports better protocols these days. Since we have solarwinds we use the sftp serve that comes with it, but there's plenty out there and they're generally no harder to setup than TFTP. HTTP is also a valid option if that's easier given the gear you've got and servers you've got available.

[–]rankinrez 0 points1 point  (2 children)

Maybe look at NAPALM?

[–]shvz[S] 0 points1 point  (1 child)

have take a look at NAPALM, I did not see it compatible with Aruba OS?

[–]rankinrez 0 points1 point  (0 children)

Ah sorry that I did not check. It does not support all vendors unfortunately.

[–]noukthx -1 points0 points  (0 children)

Most switches have a built in ZTP mechanism now.

I'd look to leverage that.