customer.exe <command> [<login_name>] [
<option 1> <param> [<option 2> <param>] ... [<option N> <param>]
]
plesk bin customer.exe --create JohnDoe -name "John Doe" -passwd MyPass -notify false -iis_app_pool true -cpu_usage 7
Command |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
Creates a customer account. Requires If the account owner (provider) is not specified, a created customer account belongs to Plesk administrator. |
To create the account for John Doe with the login name JohnDoe and password sample for the reseller Richard Roe: plesk bin customer.exe --create JohnDoe -name "John Doe" -passwd "sample" -owner RichardRoe or plesk bin customer.exe -c JohnDoe -name "John Doe" -passwd "sample" -owner RichardRoe |
|
|
Updates a customer account. |
To change the login name from JohnDoe to John and set the password to 12345: plesk bin customer.exe --update JohnDoe -login John -passwd 12345 or plesk bin customer.exe -u JohnDoe -login John -passwd 12345 |
|
|
Removes a customer account. |
To remove the customer account with the login name JohnDoe: plesk bin customer.exe --remove JohnDoe or plesk bin customer.exe -r JohnDoe |
|
|
Outputs a customer info. |
To retrieve the info on the account with the login name JohnDoe: plesk bin customer.exe --info JohnDoe or plesk bin customer.exe -i JohnDoe |
|
|
Enables a customer account. |
To enable the account with the login name JohnDoe: plesk bin customer.exe --on JohnDoe |
|
|
Disables a customer account. |
To disable the account with the login name JohnDoe: plesk bin customer.exe --off JohnDoe |
|
Displays the list of customers. |
To display the list of customers: plesk bin customer.exe --list |
|
|
|
Converts a customer account to a reseller account. |
To convert the customer JDoe into a reseller with hosting plan “Default Reseller”: plesk bin customer.exe --convert-to-reseller JDoe -reseller-plan "Default Reseller" |
|
|
Moves a customer account to another owner (reseller or administrator). |
To move the customer JDoe to a reseller RichardRoe and assign IP address 10.25.43.125 to the customer: plesk bin customer.exe --change-owner JDoe -owner RichardRoe -ip 10.52.43.125 -plan "Default Domain" |
|
Displays help on the utility use. |
To view help on the utility: plesk bin customer.exe --help or customer.exe -h |
Option |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
Specifies a customer’s company name. |
To set the company name in the personal info of the JohnDoe account to MegaCompany Inc.: plesk bin customer.exe --update JohnDoe -company "MegaCompany Inc." |
|
|
Specifies a customer’s contact name. Required with |
See the Example above. |
|
|
Specifies a customer’s login name. Used with |
To change the account login name from JohnDoe to John: plesk bin customer.exe --update JohnDoe -login John |
|
|
Specifies a customer’s password. Required with |
To create the account for the customer John Doe with the login name JohnDoe and the password sample: plesk bin customer.exe --create JohnDoe -name "John Doe" -passwd sample |
|
|
Specifies the type of customer password. Requires Is |
To set the type of the password for the customer account with the login name JDoe and password sample to encrypted: plesk bin customer.exe -u JDoe -passwd_type encrypted -passwd '$1$R0x0hAmB$haReJwgGDaGOuFETdjv3P0' |
|
|
Specifies a client’s phone number. |
To set the phone number in the personal info of the client with the login name JohnDoe to 5552345678: plesk bin customer.exe --update JohnDoe -phone 5552345678 |
|
|
Specifies a customer’s fax number. |
To set the fax number in the personal info of the customer with the login name JohnDoe to 5556676677: plesk bin customer.exe --update JohnDoe -fax 5556676677 |
|
|
Specifies a customer’s email address. |
To set the email address in the personal info of the customer with the login name JohnDoe to jd@example.com: plesk bin customer.exe --update JohnDoe -email jd@example.com |
|
|
Specifies customer’s postal address. |
To set the postal address for the customer with the login name JDoe to 8 Main street: plesk bin customer.exe -u JDoe -address "8 Main street" |
|
|
Specifies a customer’s city. |
To set the city in the personal info of the customer with the login name JohnDoe to New York: plesk bin customer.exe --update JohnDoe -city "New York" |
|
|
Specifies a customer’s state/province. |
To set the state in the personal info of the of the customer with the login name JohnDoe to NY: plesk bin customer.exe --update JohnDoe -state NY |
|
|
Specifies a customer’s zip/postal code. |
To set the zip code in the personal info of the customer with the login name JohnDoe to 77381: plesk bin customer.exe --update JohnDoe -zip 77381 |
|
|
Specifies a customer’s country: a two-letters upper-case code in compliance with ISO 3166. |
To set the country in the personal info of the customer with the login name JohnDoe to United States: plesk bin customer.exe --update JohnDoe -country US |
|
|
Enables/Disables sending a notification on a customer account creation. Used with |
See the Example above. |
|
|
Sets the customer account creation date (can be arbitrary). Used only with the |
To set the creation date for the new John Doe customer account with the login JDoe and password sample for Plesk administrator to 2010-08-25: plesk bin customer.exe -c JDoe -name "John Doe" -passwd sample -creation-date 2010-08-25 |
|
|
Specifies whether the dedicated IIS application pool is provided for a customer. Is |
To grant dedicated IIS application pool to the account with the login JohnDoe: plwsk bin customer.exe --update JohnDoe -iis_app_pool true |
|
|
Sets the maximum number of worker processes permitted to service requests for IIS application pool. |
To set the maximum number of worker processes for the dedicated IIS application pool of the account with the login JohnDoe to 3: plesk bin customer.exe --update JohnDoe -iis_app_pool true -max-worker-processes 3 |
|
|
The amount of time a worker process will remain idle before it shuts down. |
To set the length of time worker processes for the dedicated IIS application pool of the account with the login JohnDoe are allowed to remain idle to 2 minutes: plesk bin customer.exe --update JohnDoe -iis_app_pool true -idle-timeout 2 |
|
|
Configures ASP.NET to run in classic mode as an ISAPI extension or in integrated mode where managed code is integrated into the request-processing pipeline. |
To have ASP.NET run in the integrated mode for the dedicated IIS application pool of the account with the login JohnDoe: plesk bin customer.exe --update JohnDoe -iis_app_pool true -managed-pipeline-mode Integrated |
|
|
Limits a percent of CPU usage for a customer’s IIS application pool (in %). Used only if a customer is provided with dedicated IIS application pool. Unlimited if set to |
To restrict the CPU usage for the dedicated IIS application pool of the account with the login JohnDoe to 5 %: plesk bin customer.exe --update JohnDoe -iis_app_pool true -cpu_usage 5 |
|
|
Specifies the action that IIS takes when worker processes exceed the limit on CPU time usage.
|
To set up the following CPU usage settings for the dedicated IIS application pool of the customer JDoe:
|
|
|
Specifies the reset interval for monitoring of CPU usage by worker processes. |
|
|
|
The period of time after which IIS application pool recycles. |
To set the period of time after which the dedicated IIS application pool of the customer JDoe recycles to 1 hour: plesk bin customer.exe --update JohnDoe -iis_app_pool true -recycling-by-time 60 |
|
|
The maximum number of requests IIS application pool can process before it recycles. |
To set the maximum number of requests the dedicated IIS application pool of the customer JDoe can process before it recycles to 1000: plesk bin customer.exe --update JohnDoe -iis_app_pool true -recycling-by-requests 1000 |
|
|
The maximum amount of virtual memory a worker process can consume before causing IIS application pool to recycle. |
To set the maximum amount of virtual memory a worker process can consume before causing the dedicated IIS application pool of the customer JDoe to recycle to 5 MB: plesk bin customer.exe --update JohnDoe -iis_app_pool true -recycling-by-virtual-memory 5120 |
|
|
The maximum amount of private memory a worker process can consume before causing IIS application pool to recycle. |
To set the maximum amount of private memory a worker process can consume before causing the dedicated IIS application pool of the customer JDoe to recycle to 10 MB: plesk bin customer.exe --update JohnDoe -iis_app_pool true -recycling-by-private-memory 10240 |
|
|
Specifies the customer account provider’s login name. Used with the |
To create a customer account named John Doe with the login name JDoe and password sample for the reseller RichardRoe: plesk bin customer.exe -c JDoe -name "John Doe" -passwd sample -owner RichardRoe |
|
|
Specifies the reseller plan that will be used for a reseller that was converted from the specified customer. |
To convert the customer JDoe into a reseller with hosting plan “Default Reseller”: plesk bin customer.exe --convert-to-reseller JDoe -reseller-plan "Default Reseller" |
|
|
Specifies a plan that will be assigned to the customer’s subscription after moving to another owner. |
To move the customer JDoe to a reseller RichardRoe and assign IP address 10.25.43.125 to the customer: plesk bin customer.exe --change-owner JDoe -owner RichardRoe -ip 10.52.43.125 -plan "Default Domain" |
|
|
Specifies the list of IP addresses that will be assigned to the customer’s subscriptions after moving the customer to another owner. |
|
|
|
Specifies a description of the customer to be displayed in Plesk. |
To add a description to the customer account JDoe: plesk bin customer.exe -u JDoe -description "Notes about John Doe" |