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:
- In the
catchpoint_node.configfile enter your API activation keys - If a new Node is to be created enter 0 as the value for
NODE_ID. Otherwise specify the existing Node ID. - Edit the Node Name
- 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.
