User Tools

Site Tools


deploy:bigfix_restore

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

deploy:bigfix_restore [2023/12/11 14:01]
manu created
deploy:bigfix_restore [2023/12/11 14:57] (current)
manu
Line 7: Line 7:
 Note: To avoid issues when the BigFix clients connect to the BigFix server before it is fully restored, ensure that the BigFix server is not available on the network until the recovery is complete. Note: To avoid issues when the BigFix clients connect to the BigFix server before it is fully restored, ensure that the BigFix server is not available on the network until the recovery is complete.
  
-  * Step 1+==== Step 1 ====
  
-    Remove all the installed ​BigFix ​components, including any plug-inFor more information about removing the BigFix components on Linux, see Removing the BigFix components from Linux+Stop BigFix ​server 
-    ​Remove the following BigFix files and folders:+<cli prompt='#'>​ 
 +/etc/init.d/LMTserver stop 
 +/etc/init.d/besfilldb stop 
 +/​etc/​init.d/​besgatherdb stop 
 +/​etc/​init.d/​besserver stop 
 +/​etc/​init.d/​beswebreports stop 
 +/​etc/​init.d/​besclient stop 
 +</​cli>​
  
-    /​etc/​opt/​BES* +==== Step 2: Remove old files and folders ====
-    /opt/BES* +
-    /tmp/BES +
-    /​var/​log/​BES* +
-    /​var/​opt/​BES*+
  
-    Where "​BES*"​ is a prefix followed by the name of a BigFix ​componentfor example "​BESClient"​. +Remove all the installed ​BigFix ​componentsincluding any plug-in.
-    Restore the previously saved BFENT and BESREPOR as follows:+
  
-    su db2inst1 +<cli prompt='#'>​ 
-    db2 restore db BFENT +rm -rf /​etc/​opt/​BES* 
-    db2 restore db BESREPOR+rm -rf /opt/BES* 
 +rm -rf /tmp/BES 
 +rm -rf /​var/​log/​BES* 
 +rm -rf /​var/​opt/​BES* 
 +</​cli>​
  
-    If saved with an absolute path, use the following command:+==== Step 3Restore DBs ====
  
-    su - db2inst1 +Where "​BES*"​ is a prefix followed by the name of a BigFix component, for example "​BESClient"​.
-    db2 restore db BFENT from /​Absolute/​Path/​Of/​Backup/​Folder +
-    db2 restore db BESREPOR from /​Absolute/​Path/​Of/​Backup/​Folder+
  
-    ​Restore ​only the previously saved folders ​and files:+Restore the previously saved BFENT, BESREPOR, ​and TEMADB as follows: 
 +<cli prompt='#'>​ 
 +su - db2inst1 
 +db2 restore db BFENT 
 +db2 restore db BESREPOR 
 +db2 restore db TEMADB 
 +</​cli>​
  
-    ​/var/opt/BESClient +If saved with an absolute path, use the following command: 
-    ​/var/opt/​BESCommon +<cli prompt='#'>​ 
-    /var/opt/BESServer +su - db2inst1 
-    /var/opt/BESWebReportsServer +db2 restore db BFENT from /Absolute/Path/Of/Backup/Folder 
-    ​/var/opt/BESWebUI+db2 restore db BESREPOR from /Absolute/Path/Of/​Backup/​Folder 
 +db2 restore db TEMADB from /Absolute/Path/Of/Backup/Folder 
 +</cli>
  
-    Remove the old password files:+==== Step 4Restore files and folders ====
  
-    ​/​var/​opt/​BESClient/​besclient.obf ​ +Restore only the previously saved folders and files: 
-    /​var/​opt/​BESServer/​besserver.obf ​ +<cli prompt='#'>​ 
-    /​var/​opt/​BESWebReportsServer/​beswebreports.obf+/​var/​opt/​BESClient 
 +/var/opt/BESCommon 
 +/​var/​opt/​BESServer 
 +/​var/​opt/​BESWebReportsServer 
 +/​var/​opt/​BESWebUI 
 +</cli>
  
-    Copy the old configuration files in a temporary directory, as they might contain custom settings that you use, then delete them:+==== Step 5Remove files ====
  
-    ​/​var/​opt/​BESClient/​besclient.config +Remove the old password files: 
-    /​var/​opt/​BESServer/​besserver.config +<cli prompt='#'>​ 
-    /​var/​opt/​BESWebReportsServer/​beswebreports.config +/​var/​opt/​BESClient/​besclient.obf  
-    /var/​opt/​BESWebUI/​beswebuiservice.config+/​var/​opt/​BESServer/​besserver.obf  
 +/​var/​opt/​BESWebReportsServer/​beswebreports.obf 
 +</cli>
  
-    If you have installed WebUI, remove ​the cert folder ​that contains the WebUI certificates:+Copy the old configuration files in a temporary directory, as they might contain custom settings ​that you use, then delete them: 
 +<cli prompt='#'>​ 
 +/​var/​opt/​BESClient/​besclient.config 
 +/​var/​opt/​BESServer/​besserver.config 
 +/​var/​opt/​BESWebReportsServer/​beswebreports.config 
 +/​var/​opt/​BESWebUI/​beswebuiservice.config 
 +</​cli>​
  
-    /​var/​opt/​BESWebUI/​cert+If you have installed WebUI, remove the cert folder that contains the WebUI certificates:​
  
-    ​Download the same BigFix version and run the installation with option -reuseDb:+  /​var/​opt/​BESWebUI/​cert 
 + 
 +Download the same BigFix version and run the installation with option -reuseDb:
  
     ./​install.sh -reuseDb     ./​install.sh -reuseDb
deploy/bigfix_restore.1702299702.txt.gz · Last modified: 2023/12/11 14:01 by manu