My Oracle Support Banner

How to get network traffic statistics in bytes rather than in packets (Doc ID 1007747.1)

Last updated on MARCH 18, 2021

Applies to:

Solaris Operating System - Version 8.0 and later
All Platforms


The netstat command can report network traffic statistics in packets, however there is no easy way to tell how many bytes were transferred. In this document, the author describes how to query this information through kstat(kernel statistics facility). A perl script is provided which mimics the functionality of netstat -i with additional statistics in bytes.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.