Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

Agent File

Our Python agent is published in Python PyPi repository: Depending on your OS, the SeaLights Go Agent files can be downloaded from:

pypi.org/project/sealights-python-agent/
You can download it and all its dependencies using the following command:
Code Block
pip install sealights-python-agent

The agent uses the cryptography package which requires OpenSSL libraries and include files.
On Linux this is usually available but on Windows systems, you might need to install it and add it to the LIB & INCLUDE folders

...

Where OS_ARCH is one of: darwin-amd64, darwin-arm64, linux-amd64, linux-arm64

Initializing the SeaLights CLI

Code Block
./slcli config init --lang go --token ./sltoken.txt

Sample script

Code Block
languagebash
echo "[Sealights] Downloading Sealights Golang & CLI Agents..."
wget -nv -O sealights-go-agent.tar.gz https://agents.sealights.co/slgoagent/latest/slgoagent-linux-amd64.tar.gz
wget -nv -O sealights-slcli.tar.gz https://agents.sealights.co/slcli/latest/slcli-linux-amd64.tar.gz
tar -xzf ./sealights-go-agent.tar.gz && tar -xzf ./sealights-slcli.tar.gz 
rm -f ./sealights-go-agent.tar.gz ./sealights-slcli.tar.gz 
./slgoagent -v 2> /dev/null | grep version && ./slcli -v 2> /dev/null | grep version