Running the Postupgrade Script
After you upgrade an appliance to a new software release and the appliance reboots, you must run the postupgrade script on the appliance.
| Upgrade scenario | When to run the script |
|---|---|
| Standalone upgrade | After the Upgrading a Standalone Appliance procedure. |
| HA environment | After the GUI upgrade steps on the active appliance (Disable HA on appliance A (active):) and on the standby appliance (Disable HA on appliance A (active):). |
| Remote upgrade | Not applicable to remote upgrades. |
Note: If the postupgrade script is not run during the upgrade procedure, some of the parsed reports data might be lost. The affected report types are different from one
LogLogic LMI version to another.
- Procedure
- Log in to the appliance via SSH, by using the
tooruser. - Go to the CLI scripts directory:
$ cd /loglogic/bin
- Run the postupgrade script:
$ ./rundbm
The configuration menu appears, as follows:Configuration Menu: 1) Modify the above configuration 2) Start the Post Upgrade Process 3) Help 4) Exit the Post Upgrade Process Enter choice:
- Type 1 and the modify configuration menu appears. The menu items vary based on the appliance configuration.
For example:
1) module_<version>_wwwlog 2) module_<version>_i5OSAudit 3) module_<version>_stats 4) module_<version>_ids 5) Return to Configuration Menu 6) Help Enter 1-6:
If there is no data to be converted, the menu might appear as follows:1) Return to Configuration Menu 2) Help Enter 1-2:
- For each option in the modify configuration menu, change the number of days to preserve for any of these logs that should not be set to seven days. For example, for Blue Coat:
- Type 1.
- Specify if you want to change the default value. If you type y, enter the amount of preexisting BlueCoat/wwwlog data (in days) that you want accessible on the appliance after the upgrade. For example, if you want access to the past month’s Blue Coat data, enter 31. The default setting is 7, which converts the previous week. The higher the number of days you enter, the longer the postupgrade process takes to complete. To preserve the ability to search on all log data collected from Blue Coat log sources, input a number of days to include the first collection of Blue Coat log information. After entering the number of days, the module configuration menu appears again.
- Type 5 to go back to Configuration Menu.
- Type
2 to start the postupgrade process.
The conversion time for the postupgrade process depends on the amount of data to be migrated.
- After typing
2 to start the postupgrade process, the configuration menu is displayed immediately, with the additional option,
5) Monitor the Post Upgrade Process. Type
5 to monitor the postupgrade process.
1) Modify the above configuration 2) Start the Post Upgrade Process 3) Help 4) Exit the Post Upgrade Process 5) Monitor the Post Upgrade Process
Press Ctrl+C to exit.
The configuration menu is displayed again. A message is displayed indicating that the postupgrade process has been completed.2019-02-11 20:10:37,818 - dbmLogger - INFO: ** All migrations complete!
- Type 4 to exit the postupgrade script.