System Administration Guide: Basic Administration

ProcedureHow to Revert to Another SMF Snapshot

If the service configuration is wrong, the problem can be fixed by reverting to the last snapshot that started successfully. In this procedure, a previous snapshot of the console-login service is used.

  1. Become superuser or assume a role that includes the Service Management rights profile.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC in System Administration Guide: Security Services.

  2. Run the svccfg command.

    # svccfg
    1. Select the service instance that you want to fix.

      Note –

      You must use an FMRI that fully defines the instance. No shortcuts are allowed.

      svc:> select system/console-login:default
    2. Generate a list of available snapshots.

      svc:/system/console-login:default> listsnap
    3. Select to revert to the start snapshot.

      The start snapshot is the last snapshot in which the service successfully started.

      svc:/system/console-login:default> revert start
    4. Quit svccfg.

      svc:/system/console-login:default> quit
  3. Update the information in the service configuration repository.

    This step updates the repository with the configuration information from the start snapshot.

    # svcadm refresh system/console-login
  4. Restart the service instance.

    # svcadm restart system/console-login