List count of cpanel user accounts by hosting package

by rajesh 2012-03-28 14:52:19


We can easily find the count of users grouped by packages or hosting plan of root user by using the command after login to ssh


grep -ir "OWNER=root" /var/cpanel/users/* | cut -d: -f 1 | xargs cat | grep "PLAN" | cut -d= -f 2 | sort | uniq -c | sort -n


You can also execute the command from WHM
1471
like
1
dislike
0
mail
flag

You must LOGIN to add comments