Servicename in ps
Yesterday i wrote in “prstat -x” about the addition of a feature to show the FMRI of the service which the process is part of. ps
got a similar enhancement. It’s now possible to have a column called FMRI in the output of ps
. In order to show this information, you use -o fmri
plus other columns you want to see, as the FMRI alone is most of the time pretty much useless. Well, except you just want to count processes for each service with a quick ps -o fmri| sort | uniq -c | sort -n</sort>.