SendingNetwork
  • OVERVIEW
    • Getting Started
    • FAQs
  • Network Instructional Articles
    • Basics
      • Introducing the Edge, WatchDog, and Guardian Nodes
      • Overview
      • Messaging Solution
      • Privacy Solution
      • Rich Communication Solution
      • Multi-Platform Solution
      • Decentralized Identity
      • Multiple Chat Modes
      • How It Works
      • Token Utility
      • The Team
    • Key Concepts
      • Decentralized Identity
      • Social Graphs
      • Edge Node
  • SDK Documentation
    • Glossary
    • JavaScript client SDK
      • DID
      • User
      • Message
      • Room
      • Contact
      • Social Graph
    • iOS client SDK
      • Push
      • DID
      • User
      • Message
      • Room
      • Contact
    • Android client SDK
      • User
      • Room
    • Java SDK
      • DID
      • Room
      • Message
    • Node.js SDK
      • DID
      • Room
      • Message
    • Unreal SDK
      • DID
      • User
      • Message
      • Room
    • Unity SDK
      • DID
      • Room
      • Message
    • Website chat widget SDK
      • Customization
      • DID
      • User
      • Room
      • Message
      • Other
    • Bot SDKs
      • Golang Bot SDK
        • DID
        • User
        • Room
        • Message
    • Extensible Message Interface
    • Push Notifications
    • Flutter SDK
      • DID
      • User
      • Message
      • Room
    • PHP SDK
      • DID
      • Room
      • User
    • Developer Key
  • Acquisition Kit
    • Social Boost Development Instructions
  • WatchDog Agent
    • WatchDog Agent Guide
    • WatchDog Agent Deployment Tutorial
      • Linux Deployment Tutorial
    • One-Click Deployment
  • Edge Node
    • Edge Node Deployment Tutorial
    • VPS Setup Guide
      • Google Cloud Platform (GCP)
      • Amazon Web Services (AWS)
      • Contabo
    • Check Node Stats with Auto-Reply Bot in SendingMe App
    • Alpha-3 Testnet FAQs
  • delegation node
    • Delegation Node Deployment Tutorial
  • Private Delegation Node
  • Use Cases
    • Wallet-to-Wallet Messaging
    • Dapp Notifications
    • Identity Verification
    • Gamer Acquisition
    • Cross-platform Trading
Powered by GitBook
On this page
  • Installation
  • Step 1: Download Agent Installation Script
  • Step 2: Run the Installation Script
  • Step 3: Finish Installation
  • Check the status of WatchDog
  • Check your agent ID
  • Stop the agent
  • Restart the agent
  • Next Steps
  1. WatchDog Agent
  2. WatchDog Agent Deployment Tutorial

Linux Deployment Tutorial

WatchDog Agent

PreviousWatchDog Agent Deployment TutorialNextOne-Click Deployment

Last updated 25 days ago

Use our provided installation script to quickly launch the service with just a few commands. This script simplifies the setup process for the relay service by automating numerous configuration and installation steps. Actions performed by the script include:

  • Install prerequisites: Installs essential tools including Docker.

  • Create the workplace: Set up execution environments and download the Docker images.

  • Launch agent checking service: Deploys and starts the checking service.

With these system requirements in check, you'll be well-prepared to start the deployment of your WatchDog agent.

Should you encounter any issues or have questions, don't hesitate to seek support from the SendingNetwork .

Installation

Step 1: Download Agent Installation Script

Depending on your system, use the following command to download and install the deployment script:

sudo apt-get install -y wget && wget -N http://node4.sending.network:8120/watchdog_linux.sh  -P .
sudo yum install -y wget && wget -N http://node4.sending.network:8120/watchdog_linux.sh  -P .

Step 2: Run the Installation Script

Change the permissions of the script and execute the installation script by running:

sudo chmod 777 watchdog_linux.sh && ./watchdog_linux.sh

When prompted, enter your wallet address.

Ensure you use a wallet address holding a valid License NFT. Each License NFT allows one active agent.

Step 3: Finish Installation

Once enough gas is received, you'll see the following output, and your agent is up.

{"wallet":"0xYourWalletAddress","status":1}
The WatchDog node is up and running.

If you are running the script directly, please do NOT run it with sudo as it will impact the agent daemon process. Instead, you can run it under a common user account, or by using sudo su or the root account.

./watchdog_linux.sh

Check the status of WatchDog

To check if your agent is running, use the following command:

sudo docker ps -a | grep 'jack0818/watchdog' | grep -v grep | awk '{print $1}' | xargs sudo docker container inspect | grep '"Status": "running"'

If your agent is running, you will see the following output:

"Status": "running"

Check your agent ID

To display your agent ID, use the following command:

cat ~/WatchdogNode/run/watchdog/peerinfo

Stop the agent

To stop the agent, use the following commands.

  1. Find and stop the WatchDog daemon process:

    sudo ps wxau | grep watchdog | grep sh | awk '{print $2}' | xargs sudo kill -9
  2. Stop and remove the Docker containers:

    sudo docker ps -a | grep 'jack0818/watchdog' | awk '{print $1}' | xargs sudo docker stop | xargs sudo docker rm

Restart the agent

To restart your WatchDog agent, follow these steps:

  1. Download the latest installation script: In the original directory, obtain the latest script and run it.

  2. Maintain the original directory: If you run the agent from a new directory other than the original one, it will create a new agent ID. Points will be accrued with this new ID, but previous points will remain valid under the original agent ID.


Next Steps

After finishing the installation, interact with our auto-reply bot on the SendingMe app to check your agent's stats. SendingMe is an all-in-one web3 instant messaging app built on top of SendingNetwork. Refer to for instructions on utilizing the bot to monitor your agent's performance.

Should you encounter any issues or have questions, don't hesitate to seek support from the SendingNetwork .

community
Check Node Stats with Auto-Reply Bot in SendingMe
community