Michael Schuster wrote:
> ... the ability to print deltas and absolute numbers at the same time?
> 
> Details:
> as it is spec'd out now, ilbadm show-statistics has several options:
> 
> Usage: ilbadm show-statistics [-thaAd] [-r rule] [-s serverID] [interval 
> [count]]
>         -t ... print a timestamp with every header
>         -d ... print delta over whole interval (default: changes per 
> second)
>         -A ... print only absolute numbers (since module initialisation)


The phrase "since module..." is not quite correct.  A rule's
stats collection is started when it is created.  A server's
stats collection is started when a server is added to a rule.


>         -a ... print absolute numbers as well delta
>                 if both -a and -A are given, last takes precedence


For netstat(1M), the default is to print out the accumulated
numbers.  And if a time interval is specified, the first set
is the accumulated numbers.  The subsequent sets are delta
from the previous set.  Should we follow this instead of
having -A and -a?  Then -d is used to specify the interval.
If not provided, just print out the accumulated numbers once.



>         -r ... print numbers for a given rule
>         -s ... print numbers for a given server
>         -h ... print this message
> 
> 
> what I'm wondering is whether there's any use for "-a"; either delta or 
> absolute numbers give quite long lines of output, so printing both 
> either looks messy (very!), and/or produces *even* longer lines of 
> output and/or needs more than one line. All of this is rather ungainly, 
> and I question the utility and necessity for such an option.
> 
> (here's some example output as it stands, for the brave:
> processed                                   not processed    dropped
>  packets     bytes icmp_echo icmp_2big       pkt     bytes     icmp 
> icmp2_big nomem_bytes     -pkt
>       42/42      2443/2443         0/0         0/0         0/0         
> 0/0        0/0        0/0           0/0        0/0
>        0/42         0/2443         0/0         0/0         0/0         
> 0/0        0/0        0/0           0/0        0/0
>        0/42         0/2443         0/0         0/0         0/0         
> 0/0        0/0        0/0           0/0        0/0)
> 
> If nobody objects, I'll retire this option tomorrow morning.
> 
> Michael


-- 

                                                K. Poon.
                                                kacheong.poon at sun.com


Reply via email to