Plesk CLI on Management Nodes
The differences in using CLI to work with a management node are dictated by the principle that a management node is only used for managing the service nodes and is not used for actual hosting.
Additional Options
Option | Type | Description |
---|---|---|
-ext-plesk-multi-server-ipv4 |
shared|exclusive|none | IPv4 type IP address |
-ext-plesk-multi-server-ipv6 |
shared|exclusive|none | IPv6 type IP address |
-ext-plesk-multi-server-node-id |
int | Node identifier |
-ext-plesk-multi-server-node-ip |
IP address | Node IP address |
-ext-plesk-multi-server-node-hostname |
string | Node hostname |
Restrictions
All operations with domains, subdomains, domain aliases on a management node are restricted:
- Command
domain
disabled completely - Command
subscription
execution disabled if used with options-webspace-name
or-parent-domain-name
Examples
Creating a subscription using automatic load balancing
The following command creates a subscription at a service node that will be selected using the load balancing algorithm:
# plesk bin subscription --create example.com -owner JDoe -service-plan 'Default Domain' -login jdoe -passwd "1qaz@WSX" -ext-plesk-multi-server-ipv4 shared
Creating a subscription at a specific service node
The following command creates a subscription at a service node whose hostname is “service.node”:
# plesk bin subscription --create example.com -owner JDoe -service-plan 'Default Domain' -login jdoe -passwd "1qaz@WSX" -ext-plesk-multi-server-ipv4 shared -ext-plesk-multi-server-node-hostname service.node
Find out which service node the subscription has been created at
Use subscription --info
to see where the subscription is deployed:
# plesk bin subscription --info example.com
Plesk Multi Server
=============================
Status: Active
Service node ID: 1
Service node IP address: 65.65.65.65
Service node hostname: service.node
General
=============================
Domain name: example.com
...
Creating an additional domain
The following command creates an additional domain for the specified subscription at a specified service node:
# plesk bin site --create example.net -webspace-name example.com -ext-plesk-multi-server-node-id 1
Creating a subdomain
The following command creates a subdomain for the specified domain at a specified service node:
# plesk bin subdomain --create subdomain -domain example.com -ext-plesk-multi-server-node-ip 65.65.65.65
Creating a domain alias
The following command creates a domain alias for the specified domain at a specified service node:
# plesk bin domalias --create example.net -domain example.com -ext-plesk-multi-server-node-hostname service.node