Skip to content

Quickstart: Hello World

rmadsen edited this page Sep 6, 2014 · 28 revisions

EOS SDK Quick Start: a Hello World Agent

Introduction

This tutorial will walk you through building, installing, and running your first EOS SDK agent. By the end of this page, you will have created an agent that will say 'Hello' to a name configured via the CLI, and thereby redefining the term "Social Networking." This program, although simple, demonstrates the lifecycle of an agent along with various components of the SDK. We'll first walk you through creating the agent executable, then explain how to run your agent, and, finally, a walkthrough of the EOS SDK code.

The complete code for the agent can be found in the examples directory, at [HelloWorld.cpp] for the C++ version of the agent, and [HelloWorld.py] for the Python implementation.

Getting started

First, we'll need an instance of EOS where we can run our new agent, which means we'll need either a vEOS virtual machine, or a physical switch. We then need to install the EOS SDK RPM, which contains the binary implementation of the SDK. Follow the download an installation instructions to set up both of these items.