lgf-manage is the LGF bench manager. It operates on existing benches only and is used for lifecycle management, verification, repair, backup, restore, logs, updates, support bundles, and bench retirement.

General Usage

sudo lgf-manage --help

List Benches

lgf-manage --list-bench

Status and Verification

lgf-manage --status --bench=NAME

lgf-manage --verify --bench=NAME

lgf-manage --verify-operational --bench=NAME

Lifecycle Management

lgf-manage --start --bench=NAME

lgf-manage --stop --bench=NAME

lgf-manage --restart --bench=NAME

Logs

lgf-manage --logs --bench=NAME

lgf-manage --logs --bench=NAME --tail=200

Backup and Restore

lgf-manage --backup --bench=NAME

lgf-manage --backup --bench=NAME --path=/path/to/directory

lgf-manage --restore --bench=NAME --path=backup-file.tar.gz

Support Bundle

lgf-manage --support-bundle --bench=NAME

Repair

lgf-manage --repair --bench=NAME

lgf-manage --repair --bench=NAME --confirm-repair

lgf-manage --repair --bench=NAME --diag

--diag performs dry-run classification only and does not mutate the bench.

Update Existing Bench

lgf-manage --update --bench=NAME

lgf-manage --update --bench=NAME --confirm-update

The update action reapplies an existing bench using its persisted platform metadata.

Nuke

lgf-manage --nuke --bench=NAME

Warning: --nuke is destructive. It removes the bench and associated runtime state. Use only for explicit bench retirement.

Path Rules

  • If --path is omitted, backup defaults to /opt/LGF/backup/lgf-backup-<bench>-<timestamp>.tar.gz.
  • If --path is a bare filename, backup and restore resolve under /opt/LGF/backup/.
  • If --path is an absolute directory, backup writes a generated filename into that directory.
  • If --path is an absolute file, backup or restore uses that exact file path.
  • Backup appends .tar.gz if missing.

Rules

  • Use exactly one action switch per invocation.
  • --list-bench takes no --bench and cannot be combined with other actions.
  • All other actions require --bench=NAME.
  • --restore requires --path=PATH.
  • --diag is valid only with --repair.
  • --confirm-repair is valid only with --repair.
  • lgf-manage does not install benches.