Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Difference between sar command and /proc/net/dev file in linux

Manoj_S-OracleOct 24 2013

Hi,

What is the difference between sar command and /proc/net/dev file in linux server?

I know sar command can be used to get various metrics(ccpu,memory,network device etc) within the Linux server and /proc/net/dev file provides the network statistics.

1. which is the best way to get the network statistics, parsing the /proc/net/dev file or sar command output?

2. who writes data into /proc/net/dev file?

3. /proc/net/dev gives the current network stats whereas sar command gives the historic data, correct me if i am wrong?

Please clarify my doubts and suggest me with best way to get the network stats in linux.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 21 2013
Added on Oct 24 2013
0 comments
1,071 views