Brian Gao wrote:
> I have a few questions regarding SMF profile.
>  
> 1. By default after OS installation, generic.xml, platform.xml and site.xml 
> (if exists) will be applied in order and whatever runs last overwrites to 
> previous setting. Did I understand it right?

correct

>  
> 2. If I issue svccfg apply generic_limited_net.xml, will the system only use 
> this profile at next boot or the system still applies generic.xml, 
> platform.xml and site.xml (if exists) and then run generic_limited_net.xml at 
> last? 

generic.xml, platform.xml and site.xml profiles are applied only during
the first boot. So, if you apply generic_limited_net.xml manually, the
system will use this profile once for all even if you reboot, until you
apply a different profile or if you change the 'enabled' property of a
service manually.

>  
> 3. Is there a command to display which profile is in use or will be used for 
> the next reboot?

 > Can I assume that the information is persistently stored in repository.db?

correct - but this is the 'enabled' property of the services that is stored in
the repository not the profile itself.

-- Renaud

Reply via email to