Less known Solaris features: svccfg listcust and svccfg delcust
There is another useful subcommand in svccfg
:. You’ve installed your system, everything works nice … however after a while you want see what you had customised in the past. And sometimes you want to remove this customisations … the listcust
and delcust
subcommands can do those jobs for you.
When you are using the command
svccfg listcust
the system shows you all parts in the SMF that have been customised. For example when you have entered a DNS server into SMF, you will see something like
You don’t need to specify a certain service. In this case it shows the customisations for all servers. In the case you want to remove customisations and revert to the default you can do this with the delcust
subcommand of svccfg
Afterwards there are no customisations in the SMF configuration:
A small hint: It’s always a good idea to check with listcust
what you are deleting with delcust
. Believe me. I know it ;)