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

root@template:~# svccfg -s svc:/network/dns/client:default listcust
config                             application admin
config/nameserver                 net_address admin                 192.168.1.1

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

root@template:~# svccfg -s svc:/network/dns/client:default delcust
 Deleting customizations for instance: default

Afterwards there are no customisations in the SMF configuration:

<pre
root@template:~# svccfg -s svc:/network/dns/client:default listcust
root@template:~#</pre>

A small hint: It’s always a good idea to check with listcust what you are deleting with delcust. Believe me. I know it ;)