Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • configdb history: this command can be used to explore the configuration history of a certain device.  It takes a hutch/alias/device or hutch/XPM/xpmname string as argument (plus all the usual configdb options: --user, --password, --url-, etc.). For example:
    configdb history --user tmoopr --password pcds<usual> tmo/BEAM/hsd_0

    The command returns a list of configurations, each with date (in UTC  time zone) and "key" entry. The "key" can be used to retrieve the specific configuration using the configdb rollback command.

  • configdb rollback: this command can be used to retrieve a specific device configuration and make it the current configuration for the device. It takes a hutch/alias/device or hutch/XPM/xpmname string as argument (plus all the usual configdb options: --user, --password, --url-, etc.). Additionally, it requires a --key argument. For example:
    configdb rollback --user tmoopr --password pcds<usual> --key 266 tmo/NOBEAM/hsd_0

    The command will not write the retrieved configuration to the database unless the --write option is used,(it will just print it to the screen, together with a warning), so this command can also be used as a viewer for historical configurations (without the --write option)

...