Shrikrishna Khare wrote:
>
> Here is an alternative (from the discussion Nicolas and I had a while 
> ago).
>
> 1. dlstat -k -p > snap1.txt               # Dump all the statistics in 
> parsable format, output redirected to snap1.txt. This option is part 
> of the originally proposed man page.
> 2. dlstat -r -h                           # Display receive side per 
> hardware lane statistics.
> 3. dlstat -r -h -d snap1.txt              # Diff "current receive side 
> per hardware lane stats" with the stats saved in snap1.txt and display.
> 4. dlstat -k -p > snap2.txt               # Dump all the statistics in 
> parsable format, output redirected to snap2.txt.
> 5. dlstat -t -h -d snap1.txt -D snap2.txt # Diff "transmit side per 
> hardware lane stats" saved in snap2.txt with the stats saved in 
> snap1.txt and display.
>
> This approach not only avoids resetting statistics but also provides 
> an easy to use interface for diff calculation.

Why are you building "diff" capability into dlstat?
Why aren't the various incarnations of diff suitable for use here?
Isn't it better to provide output that is friendly to diff(1) use?
My assertion is that if the output is friendly to diff(1), then you don't
need to build in diff capability and that the output will also then be
friendly to many other commands.

Darren


Reply via email to