arc

command module
v0.0.0-...-116ca14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 28 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Arc automation agent

The repository contains the agent running on VMs using the new Monsoon automation service.

Development setup

This development setup is tested with go 1.10

To run a local mosquitto broker run the following docker container:

docker run -it --rm -p 1883:1883 --name mosquitto sapcc/mosquitto

to build and start the agent run:

go build -o onos-agent .
./onos-agent -endpoint=tcp://$(boot2docker ip):1883 #when using bash
./onos-agent -endpoint=tcp://(boot2docker ip):1883 #when using fish

To submit messages to the MQTT broker you can reuse the mosquitto image from above:

docker run -i --rm --link mosquitto:broker mosquitto mosquitto_pub -h broker -t [TOPIC] -s < payload.json

For your convience you can define an alias for the mosquitto_pub command:

alias mosquitto_pub="docker run -i --rm --link mosquitto:broker mosquitto mosquitto_pub -h broker"

Using this alias you can publish messages just be executing

mosquitto_pub -t [TOPIC] -s < payload.json

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL