If you want to unconfigure a previously configured Solaris instance and leave it in an unconfigured state, use the unconfigure subcommand. You can choose to unconfigure all the functional groupings or just some of them. For further information, see the sysconfig (1M) man page.
Example 6-1 Unconfiguring a SystemUse the sysconfig unconfigure command as in the following example to remove all configuration data from the system.
# sysconfig unconfigure -g systemExample 6-2 Unconfiguring SMF Data
Data stored in /etc/svc/profile/site and in the admin layer is not part of the functional groupings. In order to remove this data as well as unconfiguring the system, use the following command:
# sysconfig unconfigure -g system --include-site-profile
The XML profiles that are removed are archived in a tar file named /etc/svc/profile/sysconfig/site-profile.tar.
Example 6-3 Unconfiguring A Specific Functional GroupingIn this example we are configuring the date and time data on the system.
# sysconfig unconfigure -g date_time
Alternately, you can unconfigure the system and shut down the system as follows.
# sysconfig unconfigure -s
The SCI Tool runs once the system reboots to reconfigure the system.