Viewing the List of Reseller Accounts

To view the list of reseller accounts, use the ListResellers script. The script returns the list of resellers, one line of text for each reseller, with the specified account information, services, enabled options, and the corresponding values. In addition to the services and options enabled for the reseller, the list will also display the following information for the specified service.

Service

Attribute

Value

Description

diskquota

alloc_quota

number

The actual amount of disk space allocated to the sites created by the reseller.

bandwidth

alloc_threshold

number

The actual amount of bandwidth allocated to the sites created by the reseller.

ipinfo

alloc_ipbased

number

The actual number of IP-based sites created by the reseller.

 

alloc_namebased

number

The actual number of name-based sites created by the reseller.

users

alloc_maxusers

 

The number of users that can be created for all the sites by the reseller.

reseller

reseller_id

number

The reseller ID of the reseller.

Note: The password of a reseller will not be listed in the script output. Some values may have backslash-quoted characters (for example, spaces in the reseller full name). Also, note that bandwidth and quota values are returned in bytes.

Syntax

/usr/local/bin/ListResellers

A sample output produced by the ListResellers script

apache,jail=0 users,maxusers=100,alloc_maxusers=0 ssh,jail=0 diskquota,alloc_quota=0,quota=524288000 reseller,username=Myname,fullname=Myname,enabled=1,reseller_id=4,
email=myname@example.com ipinfo,alloc_ipbased=0,namebased=10,alloc_namebased=0,ipbased=10

Note: The sample output used in the example has been word-wrapped for readability. The actual output is displayed in a single line, with the various services separated by a single space.

In this example, the script lists a reseller with the following account information:

In this section:

Creating a Reseller Account

Modifying a Reseller Account

Removing a Reseller Account