Peter van Gemert wrote: > Hello All, > > I work a lot with SMF and I really like the framework. There are just two > features that me and my students (I teach Solaris courses) are missing in SMF > and I was wondering if we are the only ones. I'm suggesting adding the > following features to OpenSolaris (RFE CR 6530523). > > first feature is a simple way of looking at a service log file. Nowadays I > have to first find the logfile name with svcs -l fmri and than do a > cat/more/less on the file name found. I'm suggesting adding a command to > OpenSolaris that will take a fmri as argument and then display the content of > the log file.
I'd like that too, in particular I'd like svcs -L <fmri> to use $PAGER to show me the log file. I don't think a new svclog command is needed. > The second feature is finding a the methods of a service easily. To find the > names of the methods used by a service again takes multiple steps. First take > a look in the log file and then do a cat on the method name found. It's also > possible to find this information with svcprop but I always forget the > properties used for storing the start and stop methods. Your second one is easy and already available as a single command: svcprop -p start/exec <fmri> For example: $ svcprop -p start/exec svc:/system/cryptosvc:default /usr/sbin/cryptoadm\ %m So no new svcmethods command should be needed here since svcprop already does this for you. -- Darren J Moffat