Skip to main content

bandwidth

Comments

1 comment

  • cPanelMichael
    Hello :) There are no native scripts that will output bandwidth usage in an easily readable format from the command line. However, you may find the following command helpful when ran from the /var/cpanel/bandwidth directory: ls | grep -v "\." | xargs -n 1 -izzz sh -c "echo -n zzz \" = \"; egrep \"^$1\..*\.$2-all\" zzz | awk -F'=' 'START {bytes=0} { bytes+=\$2 } END {print bytes/1024/1024 \" MB\"}'"
    It's referenced from an earlier thread created a few years ago. You would have to adjust if you want it to only output the five accounts with the most usage. Thank you.
    0

Please sign in to leave a comment.