list-bandwidth

Shows bandwidth usage for some domain over a date range This command is useful for dumping bandwidth data of Virtualmin (usually used to draw graphs) in CSV format for importing into other programs. This is useful for implementing your own billing system, or generating your own graphs. The domains to dump stats for are selected by either the --domain parameter, which can occur multiple times and which must be followed by a virtual server domain name, or --all-domains to show them all. To include usage by sub-servers of the selected domains, use the --include-subservers flag.

Shows bandwidth usage for some domain over a date range#

This command is useful for dumping bandwidth data of Virtualmin (usually used to draw graphs) in CSV format for importing into other programs. This is useful for implementing your own billing system, or generating your own graphs.

The domains to dump stats for are selected by either the --domain parameter, which can occur multiple times and which must be followed by a virtual server domain name, or --all-domains to show them all. To include usage by sub-servers of the selected domains, use the --include-subservers flag.

The date range to output stats for are selected with the optional --start and --end flags, each of which must be followed by a date formatted like 2001-09-16. If omitted, all available bandwidth information for the domains selected is displayed.

Command line help#

virtualmin list-bandwidth --domain name | --all-domains
 [--start yyyy-mm-dd]
 [--end yyyy-mm-dd]
 [--include-subservers]

Source: https://www.virtualmin.com/docs/development/api-programs/list-bandwidth/

  • virtualmin, domain, command line, list, bandwidth
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Pre and Post Domain Modification Scripts

Virtualmin allows the use of custom scripts (Shell, Perl, Python and etc.) to automate tasks...

OS Support

Virtualmin runs on top of Webmin. Webmin works on almost every UNIX-like OS, so with some manual...

Professional Features

Virtualmin GPL is already an extremely powerful and flexible virtual hosting control panel, so...

How to Configure Secondary DNS

This guide provides administrators with a quick overview of setting up automatic DNS secondary...

How to Configure Cloudflare DNS

For users looking to integrate Cloudflare with Virtualmin Pro, the process is straightforward and...