Antonello Cruz writes: > You can get the ctid from svcs -l <fmri> and the processes member from > ctstat -vi <ctid> and then process the output of ctstat. > The downside of this approach is that I don't think either output, 'svcs > -l' or 'ctstat -iv' are stable so you can rest assured your script will > not break.
'svcs -Ho CTID <fmri>' should be expected to produce stable output, so you ought to be able to do this to get the PIDs in a service: pgrep -c `svcs -Ho CTID $fmri` -- James Carlson, Solaris Networking <james.d.carlson at sun.com> Sun Microsystems / 35 Network Drive 71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677