You can use Arista eAPI to configure the switch via JSON-RPC.
For more information about eAPI please refer to the following:
For more information on Python Client for eAPI (pyeapi):
Documentation on Arista’s integration with Ansible:
You can use python client for this.
1) First install python client (pyeapi)
Absolutely. You can use python or Java, and the appropriate libraries to remotely access an Arista switch for both configuration and monitoring purposes.
There is a great article here that outlines the steps you need to take and points at a bunch more resources:
There are loads of examples that you can use, or build on here:
Hello Nilesh. The feature you are looking for is called eAPI, our EOS Application Programming Interface. It uses JSON, and the JSONRPC Library is supported in most any programming or scripting language. Our Arista Programming Essentials class teaches Python, so we usually recommend that.
You can enable eAPI on a switch by entering the commands
You will also need to create a user, but you can use existing users from AAA configuration,local or TACACS, etc.
Once enabled you can go to the URL of the management interface on the switch:
You can navigate, explore, and read the documentation from this link. Note that anything you do in the tool will actually run and be executed on the switch so be careful.
Post your Answer
You must be logged in to post an answer.