NODE SETUP SCRIPT

Prev Next

Introduction

The new Catchpoint v2 API makes it easy to register a new Node or Instance in the portal.

Th attached bash script picks up machine details such as MAC address and hostname, and takes the configurable Node/Instance parameters such as Node Name and ISP from a config file. It then sends a POST request to register the Node or Instance.

Prerequisites

  • Catchpoint account with a REST API consumer
  • Instance activation key

Configuration

After downloading and unzipping the attached file, perform the following steps:

  1. In the catchpoint_node.config file enter your API activation keys
  2. If a new Node is to be created enter 0 as the value for NODE_ID. Otherwise specify the existing Node ID.
  3. Edit the Node Name
  4. Edit the OS ID, geography details, and Node model.

Result

Running the node-setup.sh file for the first time will create a .log file with the same name, which will contain details of the machine, the configuration details, and the API call response.
nsc1.png

node-setup.zip