Skip to content

OpsRepositoryRebuild

Jörg Pernfuß edited this page Oct 23, 2016 · 1 revision

somaadm ops repository rebuild

The repository rebuild command rebuilds the dynamic objects inside a repository. All user created objects like groups, properties and check configurations are preserved.

This is achieved by:

  • stopping the repository
  • marking all checks and check instances as deleted
  • restarting the repository in rebuild mode which persists the created checks and check instances during startup into the database
  • restarting the repository in normal mode

Rebuilds can run at two different levels:

  • instances, only rebuilds check instances
  • checks, rebuilds checks and check instances

SYNOPSIS

somaadm ops repository rebuild ${repository} \
   level ${level}

ARGUMENT TYPES

Name Type Description Default Optional
repository string Name or UUID of the repository to rebuild no
level string Level to perform the rebuild at no

PERMISSIONS

This command requires one of the following permissions:

  • system_all

EXAMPLES

./somaadm ops repository rebuild common level checks

SOMA

somaadm command reference

  • init
  • attributes
    • create
    • delete
    • list
    • show
  • buckets
    • create
    • delete
    • restore
    • purge
    • freeze
    • thaw
    • rename
    • list
    • show
    • tree
    • property
  • capabilities
  • checks
  • clusters
    • create
    • delete
    • rename
    • list
    • show
    • tree
    • members
      • add
      • delete
      • list
    • property
      • add
      • delete
  • datacenters
    • add
    • remove
    • rename
    • list
    • show
    • synclist
  • environments
    • add
    • remove
    • rename
    • list
    • show
  • groups
    • create
    • delete
    • rename
    • list
    • show
    • tree
    • members
      • add
      • delete
      • list
    • property
      • add
      • delete
  • jobs
    • list
    • show
    • local
      • outstanding
      • update
      • list
      • prune
  • levels
    • create
    • delete
    • list
    • show
  • metrics
    • create
    • delete
    • list
    • show
  • modes
    • create
    • delete
    • list
    • show
  • monitoring
    • create
    • delete
    • list
    • show
  • nodes
    • create
    • delete
    • purge
    • restore
    • update
    • rename
    • repossess
    • relocate
    • online
    • offline
    • assign
    • list
    • synclist
    • show
    • tree
    • config
    • property
      • add
      • delete
  • oncall
    • add
    • remove
    • rename
    • update
    • list
    • show
    • member
      • add
      • remove
      • list
  • permissions
    • category
      • add
      • remove
      • list
      • show
    • add
    • remove
    • list
    • show
  • predicates
    • create
    • delete
    • list
    • show
  • property
    • create
    • delete
    • show
    • list
  • providers
    • create
    • delete
    • list
    • show
  • rights
    • grant
      • global
      • system
    • revoke
      • global
      • system
  • repository
    • create
    • delete
    • restore
    • purge
    • clear
    • rename
    • repossess
    • activate
    • list
    • show
    • tree
    • property
  • servers
  • states
    • add
    • remove
    • rename
    • list
    • show
  • status
    • create
    • delete
    • list
    • show
  • teams
    • add
    • remove
    • rename
    • migrate
    • list
    • synclist
    • show
    • update
  • types
    • add
    • remove
    • rename
    • list
    • show
  • units
    • create
    • delete
    • list
    • show
  • users
    • create
    • delete
    • purge
    • update
    • activate
    • password
    • list
    • show
    • synclist
  • validity
    • create
    • delete
    • list
    • show
  • views
    • add
    • remove
    • rename
    • list
    • show
  • ops
Clone this wiki locally