# 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 Commands | Equivalence | Other Commands | Equivalence
sar -b | collectl -sd | iostat -x | collectl -sD
sar -B | collectl -sm --verbose | /proc/fs/lustre | collectl -sl --verbose
sar -clquw | collectl -sx --verbose | mpstat | collectl -sc --verbose
sar -d | collectl -sD | netstat -i | collectl -sN
sar -cI XALL | collectl -sJ | nfsstat | collectl -sfF
sar -n ALL | collectl -sfsN | perfquery | collectl -sx
sar -P ALL | collectl -sC | cat /proc/net/netstat | collectl -sY
sar -r | collectl -sm --verbose | ps | collectl -sZ
sar -R | collectl -sm --memopts R | slabtop | collectl -sY --slabopts S
sar -v | collectl -si | top | collectl --top -scm
sar -W | collectl --vmstat | vmstat | collectl --vmstat

updated October 4, 2011