Command Equivalence Matrix

The following table needs a little explaining as it is rarely the case that the output of a particular utility maps identically to an equivalent collectl command. In some cases a single sar switch will approximate a single collectl subsystem and in other case it takes multiple sar switches to do so.

The point is this matrix is only a rough guideline to some command equivalences and simply changing the case of the collectl subsystem or adding the verbose switch will provide even more output. There are even some options (see the uppercase O switch) that can also effect what gets displayed. And of course there is the lowercase o switch which allows you to specify formatting options like date, time, etc.

In other words there are simply too many permutations to list them all here and you're just going to have to experiment.

Finally, there is a special case worth noting. There is no collectl command equivilent to sar -R. It's not entirely clear to me if this data is needed, but it certainly could be added if the demand is there.

SAR CommandsEquivalence Other CommandsEquivalence
sar -bcollectl -sd iostat -xcollectl -sD
sar -Bcollectl -sm --verbose /proc/fs/lustrecollectl -sl --verbose
sar -clquwcollectl -sx --verbose mpstat collectl -sc --verbose
sar -dcollectl -sD netstat -i collectl -sN
sar -cI XALLcollectl -sJ nfsstat collectl -sfF
sar -n ALLcollectl -sfsN perfquery collectl -sx
sar -P ALLcollectl -sC cat /proc/net/netstat collectl -sY
sar -rcollectl -sm --verbose ps collectl -sZ
sar -Rcollectl -sm --memopts R slabtop collectl -sY --slabopts S
sar -vcollectl -si top collectl --top -scm
sar -Wcollectl --vmstat vmstat collectl --vmstat
updated October 4, 2011