• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

vnstati Command Examples in Linux

by Deepika

vnstati is a command-line tool that provides PNG image output support for vnStat, a console-based network traffic monitor. vnstati allows users to generate static images of vnStat network traffic statistics, which can be used for visualizing and analyzing network traffic usage over time.

vnstati works by reading the data generated by vnStat and generating PNG images that represent the network traffic usage over a specific time period, such as hourly, daily, weekly, monthly, or yearly. vnstati provides a variety of options and settings for generating these images, such as the size of the output image, the time period to cover, the data source to use, and the output format.

The PNG images generated by vnstati can be used for a variety of purposes, such as embedding in reports and presentations, displaying on web pages, or sharing with colleagues and clients. The images can be customized and styled using third-party tools, such as image editors and graphic design software.

vnstati Command Examples

1. Output a summary of the last 2: months, days, and all-time:

# vnstati --summary --iface network_interface --output path/to/output.png

2. Output the 10 most traffic-intensive days of all time:

# vnstati --top10 --iface network_interface --output path/to/output.png

3. Output monthly traffic statistics from the last 12 months:

# vnstati --months --iface network_interface --output path/to/output.png

4. Output hourly traffic statistics from the last 24 hours:

# vnstati --hours --iface network_interface --output path/to/output.png

Summary

Overall, vnstati is a powerful tool for visualizing and analyzing network traffic usage over time, and can be a valuable tool for network administration, troubleshooting, and optimization.

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to exclude a file/directory from auditd rules
  2. How to make ethtool settings persistent across reboots in CentOS / RHEL 6,7
  3. How to configure NTP server and client in CentOS / RHEL 7
  4. CentOS / RHEL : Move a Physical Volume from an existing Volume Group to another Volume Group
  5. shred Command Examples in Linux
  6. Installing Security Vulnerabilities with yum on CentOS/RHEL 5,6,7 (Cheat Sheet)
  7. How to uninstall libcurl4-openssl-dev software package in Ubuntu
  8. eyeD3 Command Examples in Linux
  9. CentOS / RHEL : How to create and host yum repository over httpd
  10. date Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • aws ec2: CLI for AWS EC2 (Command Examples)
  • aws cur – Create, query, and delete AWS usage report definitions (Command Examples)
  • aws configure – Manage configuration for the AWS CLI (Command Examples)
  • aws cognito-idp: Manage Amazon Cognito user pool and its users and groups using the CLI

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright