Skip to content

Commit ef1b418

Browse files
authored
Merge pull request #251 from ruslan1us/CLPRO-2609
CLPRO-2609: Publish documentation regarding CLI for linking a server …
2 parents 383d28f + 756c4d4 commit ef1b418

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

docs/cloudlinuxos/shared-pro/README.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2955,3 +2955,71 @@ Required packages:
29552955
* `lvemanager` >= 6.2.10-1
29562956
* `alt-php-xray` >= 0.2-1
29572957
2958+
## Link server to CLN account
2959+
2960+
**Why do we need a server linking to CLN?**
2961+
One of the main CloudlinuxOS Shared Pro features is Centralized Monitoring. In case when a customer uses the license provided by the reseller the server registered with such license will be linked to the reseller's CLN account. As a result, customers cannot see the data in Centralized Monitoring. To allow a customer to see the data in such a case we implemented an ability to link the server to the customer's own CLN account.
2962+
2963+
**Who can use it?**
2964+
Only customers who use CloudlinuxOS Shared Pro licenses provided by resellers.
2965+
However, it's crucial to understand when linking is appropriate.
2966+
2967+
* When to link: The primary users for this feature are customers of license-only resellers (e.g., WebPros, LicensePal, Jones M.). If you acquired your license this way, you can link the server to your CLN account. By doing so, you acknowledge that it is your responsibility to only link servers that are owned and operated by the same entity.
2968+
2969+
:::warning When NOT to link!
2970+
* Some partners use a single account to manage servers they own directly alongside servers they resell to various clients. To avoid mixing data and granting unintended access, these distinct groups of servers should not be linked to one end-customer account.
2971+
:::
2972+
2973+
If your server is eligible for linking, you will see a component in the CloudLinux Manager UI.
2974+
2975+
**How to link a server?**
2976+
If your server is linkable you will see in the Cloudlinux Manager UI (Dashboard tab) the component with input field which allows linking the server to CLN.
2977+
2978+
![](/images/cm-ui-component.png)
2979+
2980+
To link the server, it is required to perform the following:
2981+
2982+
1. Create a CLN account if you do not have one [https://cln.cloudlinux.com/console/register/customer](https://cln.cloudlinux.com/console/register/customer).
2983+
2. Log into your CLN account and copy the linking token. If you click the “Get the token” button you will be redirected to [https://cln.cloudlinux.com/console/profile/details](https://cln.cloudlinux.com/console/profile/details) where can copy the token
2984+
3. Paste the token into the “Enter token” input and click the “Link server” button
2985+
2986+
After these steps you server will be linked. And you will see it in the Centralized Monitoring.
2987+
2988+
![](/images/linked-server-centralized-monitoring.png)
2989+
2990+
### CLI utility /usr/sbin/cl-link-to-cln
2991+
2992+
We can also bind a server from the command line. To do this can be used `/usr/sbin/cl-link-to-cln` utility.
2993+
2994+
```
2995+
/usr/sbin/cl-link-to-cln --help
2996+
Usage: cl-link-to-cln [options]
2997+
Options:
2998+
-h, --help show this help message and exit
2999+
-t TOKEN, --linking-token=TOKEN
3000+
Token to link the server
3001+
-s, --linking-status Show if status linked or not
3002+
```
3003+
3004+
To link we have to:
3005+
3006+
1. Check if the server can be linked:
3007+
```
3008+
/usr/sbin/cl-link-to-cln --linking-status
3009+
{
3010+
"result": "success",
3011+
"timestamp": 1698670480.3382068,
3012+
"linked": false,
3013+
"linkable": true
3014+
}
3015+
```
3016+
3017+
* **linked (boolean)** field define if server is already linked
3018+
* **linkable (boolean)** field define if server can be linked
3019+
3020+
2. Link the server with the command:
3021+
```
3022+
/usr/sbin/cl-link-to-cln --linking-token=TOKEN
3023+
```
3024+
3025+
Token you can find here [https://cln.cloudlinux.com/console/profile/details](https://cln.cloudlinux.com/console/profile/details).

0 commit comments

Comments
 (0)