How to get a list of re-sellers’ name under your WHM/cPanel server – Command-line option

Hey, we already discussed about How to list all accounts name under a cPanel re-seller, click here for more details “list of total cPanel users under a specific re-seller

Here I am explaining the command-line option to find out the re-sellers’ name on your WHM server. In WHM based server, there is a file ‘/var/cpanel/resellers‘ which has information about re-sellers. Actually the /var/cpanel/resellers is little complicated to understand, do not worry about that, here is a command line option for finding the re-sellers name only.
You can simply grep out the re-seller name from /var/cpanel/resellers

Syntax I:

# cat /var/cpanel/resellers | grep -o '^[a-z][a-z0-9]\{0,7\}'

Syntax II:

# grep -o '^[a-z][a-z0-9]\{0,7\}' /var/cpanel/resellers

Example:

# grep -o '^[a-z][a-z0-9]\{0,7\}' /var/cpanel/resellers
kirno
dlsmwwtc
twwag
tetipbc
.....

That’s it 🙂

Related:
check the version of your WHM/cPanel from command line
Important cPanel service’s configuration file, path, service name, port – Command line view
How to terminate/delete a cPanel account through SSH
list of total cPanel users under a specific re-seller

Something more about cPanel  , See the category CPANEL

Post navigation

Arunlal Ashok

Operations Engineer at Endurance International Group. Linux lover. Like to play on Linux console. I started this blog to share and discuss Linux thoughts.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team CryBit.com
Please follow the LinkedIn page

One thought on “How to get a list of re-sellers’ name under your WHM/cPanel server – Command-line option

Leave a Reply

Your email address will not be published. Required fields are marked *