Table of contents

On this page we have an example python script to:

  • Add a device with MAC address ...
  • Assign a provisioning profile

In this example, we used a windows PC where we installed Python

Install dependencies

pip3 install requests
pip3 install requests-hawk


Gather data from GRAPE

Gather API key

You need to create the API key if not already available.


Copy 1: Access Key ID (API_KEY)


Copy 2: Access Key Secret (API_SECRET)

Create a Provisioning Profile


We have created 2 Provisioning Profiles.

  • For the DECT systems with the Provisioning URL
  • For the Desktop devices with the Provisioning URL

Provisioning Profiles can have more then 1 parameter !!!


Setting:

N610/N670/N870(E)

KEY_UUID:

Python script

Download the following python script: add_device.py

python add_device.py
usage: add_device.py [-h] --api-key API_KEY --api-secret API_SECRET --device-mac DEVICE_MAC --product-code PRODUCT_CODE --key-uuid KEY_UUID --value VALUE

Example:

  • N610/N670/N870 device
  • With MAC address: 589EC60D8C73
  • Provisioning parameter: Provisioning.global.ProvisioningServer in GRAPE: "
  • Provisioning URL: http://192.168.2.200/dectprovisioning

If the device already exists, the value will be overwritten.

python add_device.py --api-key xxxxxxxxxxxxxxxxxxxxxxxxxxx --api-secret xxxxxxxxxxxxxxxxxxxxxxxxxxxxx --device-mac 589EC60D8C73 --key-uuid 094c8a73a08644a1aaba837c33dfb528 --value http://192.168.2.200/dectprovisioning

Example:

  • P850W device
  • With MAC address: 000413E41F3F
  • Provisioning parameter: setting_server in GRAPE: "
  • Provisioning URL: http://192.168.2.200/P850provisioning

If the device already exists, the value will be overwritten.

python add_device.py --api-key xxxxxxxxxxxxxxxxxxxxxxxxxxx --api-secret xxxxxxxxxxxxxxxxxxxxxxxxxxxxx --device-mac 000413E41F3F --key-uuid 50a400560eec4dc0b96b026094e06562 --value http://192.168.2.200/P850provisioning