Great! This is exactly what I want. I will use the APIs in libscf in my project.
Thank you Stephen. Stephen Hahn wrote: >* Victor Li <victor.li at sun.com> [2006-07-27 20:34]: > > >>I am working on a small server project, the server will have a few >>configuration options, is it possible to migrate all of these >>configuration options to SMF? i want to get rid of a conf file. Are >>there any API that SMF provides to application for reading these >>options? when the options are changed, I just want the server to be >>refreshed gracefully. >> >> > > Yes. See svcprop(1) for scripting access and libscf(3LIB) for C language > access. Finally, see the Java API developed by the Visual Panels > project for experimental Java VM access. > > (I'm sure a Perl or Python API would be welcomed, if anyone wants a > side project...) > > - Stephen > > >