How to Manual sync from Director object to Titan
This kb is helpful when you want to Sync Device on Titan Node from Director. You can use below curl command to do that.
Note: (Use it in case environment is slow or issues consuming the message from Director)
Step 1: Collect the API from the Titan Dashboard by clicking the device. Also collect Organization ID, Device id and Bearer Token from the Network tool.
Step 2: After collecting details in Step 1, make a curl command doing some little tweak in URL.
Copy the URL from the browser and change it like below, remove /detail?serviceConfigType=candidate to /syncservicemodel
Step 3: Make it in below format
versa@titan-node-reston-1:~$ curl --location --request PUT 'https://titan.versa-networks.com/api/v2/organizations/5f4a94588509c61126e3aa17/devices/5f4a95b88509c6112ee3aa18/syncservicemodel' --header 'Authorization: Bearer 7474b2a4-22e6-4243-b29f-0ddf52676d38' --data-raw ''
Login to Titan Node(Reston Node), run above command, once it runs successfully you’ll receive below message.
{"status":200,"message":"Device service model synced Successfully","id":0,"errors":null}
Command Breakdown:
URL: Get this URL from the titan dashboard using Browser Dev tool by clicking the Device
Copy the command from the browser and change it like below, remove /detail?serviceConfigType=candidate to /syncservicemodel
Here:
5f4a94588509c61126e3aa17 -- Organisation id
5f4a95b88509c6112ee3aa18 -- Device id
7474b2a4-22e6-4243-b29f-0ddf52676d38 -- Token
If the curl command is successful, then you’ll get output like below that means config is synced.
Note: (Use it in case environment is slow or issues consuming the message from Director)
{
"errors": null,
"message": "Device service model synced Successfully",
"status": 200
}