Skip to main content

A quick small library to create quick custom scripts for Arista Switches

Project description


Quick python object to send commands to Arista switches.

Sends commands via Arista's EAPI using jsonrpclib or via SSH using netmiko

Switch.send_commands_via_eapi(cmds) uses the jsonrpclib Server object to execute commands on a switch

Switch.send_commands_via_netmiko(cmds) uses the netmiko python library to execute commands on a switch

Switch.send_commands(cmds, method=str) will by default use eapi (method="eapi") to send commands but can use ssh if you specify "ssh" in the method variable.

  1. Install the project

    pip install AristaSwitchClient

  2. In a python file

    from EOS.Switch import Switch

    switch = Switch(ip_address="", username="arista", password="arista")

    print(switch.send_commands("show version"))

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for AristaSwitchClient, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size AristaSwitchClient-0.2.2-py2-none-any.whl (13.0 kB) File type Wheel Python version py2 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page