Managing System Services in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

Showing Values in a Specified Snapshot

The following command lists the snapshots that are available for this service instance. Use these snapshot names with either svcprop or svccfg to show the values of properties that were set in that snapshot. Only instances have snapshots. Services do not have snapshots. See Repository Snapshots for information about snapshots of the service configuration repository.

$ svccfg -s pkg/server:default listsnap
initial
previous
running
start
$ svccfg -s pkg/server:s11 listsnap
previous
running
start

The following commands show that the value of the pkg/inst_root property was different in the previous snapshot.

$ svcprop -s previous -p pkg/inst_root pkg/server:s11
/var/share/pkg/repositories/solaris
$ svccfg -s pkg/server:s11
svc:/application/pkg/server:s11> selectsnap previous
[previous]svc:/application/pkg/server:s11> listprop pkg/inst_root
pkg/inst_root astring     /var/share/pkg/repositories/solaris
[previous]svc:/application/pkg/server:s11> exit