Versions Compared

Key

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

...

  • Mirror copies of the repository under ($DBVISIT_BASE/standbymp/db/mirrors)

  • Tasks and events: Removes all mirrors as well as the tasks, events, and executions.

    • For dbvagentmanager, it remove all the agents repos, and DDC monitors repos

    • For dbvcontrol, it removes the tasks and events from Director.db

  • Factory reset. Removes all the repos

Before removing any repo files, all the current db files are backed up to <DBVISIT_BASE>/reset-backup directory.

  1. Dbvagentmanager

Code Block
[oracle@dbvel71oracle@repotest1 bin]$ ./dbvagentmanager reset-repo -h
reset local repositories

Usage:
  dbvagentmanager reset-repo [flags]

Flags:
  -h, --help           help for reset-repo
      --level string   Reset levels: mirrors, tasks-events, factory-setting
[oracle@repotest1 bin]$

Reset from agentmanager:

Choose the option to reset

...

Restart Dbvagentnager services to load the process with new repo

Code Block
./dbvagentmangersudo /opt/dbvisit/standbymp/bin/dbvagentmanager service stop
./dbvagentmanger
sudo /opt/dbvisit/standbymp/bin/dbvagentmanager service start

You can use the below commands for non-interactive mode

Code Block
dbvagentmanager reset-repo --level mirrors
dbvagentmanager reset-repo --level tasks-events
dbvagentmanager reset-repo --level factory-settings

2. Dbvcontrol

Code Block
[oracle@repotest2 bin]$ ./dbvcontrol reset-repo -h
reset local repositories

Usage:
  dbvcontrol reset-repo [flags]

Flags:
  -h, --help           help for reset-repo
      --level string   Reset levels: mirrors, tasks-events, factory-setting
Code Block
[oracle@repotest2 bin]$ ./dbvcontrol reset-repo
? Are you sure you want to reset local repositories? Yes
? Reset level: mirrors
Backing up [Usecurrent arrowsrepositories to move, type to filter]
> mirrors
 /opt/dbvisit/standbymp/reset_backu

Resetting task and events repo, removes all task and events from GUI

Code Block
[oracle@repotest2 bin]$ ./dbvcontrol reset-repo
? Are you sure you want to reset local repositories? Yes
? Reset level: tasks and events
Backing up current repositories factory settingsto /opt/dbvisit/standbymp/reset_backup
Note

factory reset of dbvcontrol requires the Factory resessting of Dbvcontrol repo requires reimport of DDC file in GUI

Code Block
[oracle@repotest2 bin]$ ./dbvcontrol reset-repo
? Are you sure you want to reset local repositories? Yes
? Reset level: factory settings
Backing up current repositories to /opt/dbvisit/standbymp/reset_backup

You can use the below commands for non-interactive mode

Code Block
dbvcontrol reset-repo --level mirrors
dbvcontrol reset-repo --level tasks-events
dbvcontrol reset-repo --level factory-settings

Code Block
Restart Dbvcontrol services to load the process with new repo

sudo /opt/dbvisit/standbymp/bin/dbvcontrol service stop
sudo /opt/dbvisit/standbymp/bin/dbvcontrol service start