* Brian Gao <[EMAIL PROTECTED]> [2006-10-17 15:59]: > I have a few questions regarding SMF profile. (Questions on SMF are best directed to [EMAIL PROTECTED], the main mailing list for the SMF community.)
> 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? Yes. > 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? The generic, platform, and site profiles are only applied once: when the system is started up for the first time after an install (or when a repository is reseeded, causing all manifests and profiles to be reimported). If you subsequently apply a different profile, then its settings will remain in place. That different profile would not be reapplied automatically after a reseed. > 3. Is there a command to display which profile is in use or will be used for > the next reboot? Where is the information regarding which profile is in use > or to be used stored? Based on the timestamp, /etc/svc/repository.db file is > updated after I issued svccfg apply generic_limited_net.xml command, Can I > assume that the information is persistently stored in repository.db? Yes, the set of enablings have been persistently stored in the repository, but the current set of enabled services is not a named profile. (So there is no command to report on the current profile.) You can emit a new profile using svccfg extract which will write the current enabled/disabled settings to standard output in the form of a service profile. - Stephen -- Stephen Hahn, PhD Solaris Kernel Development, Sun Microsystems [EMAIL PROTECTED] http://blogs.sun.com/sch/ _______________________________________________ opensolaris-help mailing list [email protected]
