This section lists the steps to onboard your gateway using the token-based authentication method.
Prerequisites
- You must have the CREATE DEVICE permission to perform this operation.
- You must have created a device template with Token Based as the Provider Type, and it must be available on the VMware Pulse IoT Center console.
- You must have installed the IoTC Agent on your gateway.
- You must know the name that you want to assign to your gateway in the VMware Pulse IoT Center console.
Procedure
- From the VMware Pulse IoT Center UI, go to Inventory > Devices.
The Devices - All Devices page is displayed.
- Click REGISTER.
The Register Gateway wizard is displayed.
- Enter your gateway name and select the device template that has Token-Based Authentication enabled to associate with your gateway.
- Click REGISTER.
Your gateway is registered and is listed in the Devices - All Devices page.
- Create a credential to enroll your gateway. From the Devices -All Devices page, click the gateway that you registered.
- Click the Actions drop-down menu and select Create Gateway Credentials. Click CREATE.
- Copy the token to the clipboard.
The token expiry time that you set when creating the template is displayed.
- Log in to your gateway and change the directory to /opt/vmware/iotc-agent/bin.
- Run the following command:
./iotc-agent-cli enroll --auth-type=REGISTERED --token=<authenticationtoken>
Results
For a successful enrollment, the response must be O
.