Preserving bundling when the BigFix client is reinstalled or reverted from a snapshot
When the BigFix client is reinstalled or reverted from a snapshot, the next time it registers at the BigFix server, it receives a new Data Source Computer ID. The BigFix client with the old Data Source Computer ID becomes inactive because it does not report with the same Computer ID. As a result, the BigFix console shows duplicated entries for the same computer. Additionally, the affected computer loses bundling information for software that was discovered on this computer. To avoid this situation, store some registry keys data aside of the computer whose identity you want to preserve.
About this task
- You revert the computer from a VM snapshot with registry keys data stored aside. In this case, the computer keeps its previous Data Source Computer ID.
- You revert the computer from a VM snapshot without registry keys data stored aside. In this case, the BigFix client needs to register on the BigFix server to receive its unique Data Source Computer ID.
Procedure
-
The BigFix server can match the data that is
stored aside to the BigFix client that is
reinstalled or reverted from a snapshot when the ClientIdentityMatch parameter
of the BigFix server is set to 100. By default,
the parameter is set to 0. To change the value of the parameter, go to the computer on which the
BigFix server is installed and perform the
following steps.
- Go to ClientIdentityMatch parameter to 100. and set the value of the
- Run the following
command.
./BESAdmin.sh -setadvancedoptions -sitePvkLocation=/root/backup/license.pvk -sitePvkPassword=pippo000 -update clientIdentityMatch=100
Ensure that you complete this action before you install the BigFix client on the computer whose identity you want to preserve. For more information about the ClientIdentityMatch parameter, see: List of advanced options.
-
Install the BigFix client on the computer
whose identity you want to preserve. For available methods, see: Installing the BigFix clients.
After the installation of the BigFix client completes, the computer automatically registers at the BigFix server and receives a unique Data Source Computer ID.
-
Include the BigFix client in a computer
image that can be deployed multiple times.
- Stop the BigFix client.
- Open the Windows services dialog box and stop the BigFix client service.
- Run the following command.
BESClient stop
- Go to the following location.
- HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\GlobalOptions
- /var/opt/BESClient/besclient.config under the section [Software\BigFix\EnterpriseClient\GlobalOptions].
RegCount
ComputerID
ReportSequenceNumber
- Delete __BESData and KeyStorage folders from the
default installation directory of the BigFix client.
- C:\Program Files\BigFix Enterprise\BES Client
- /var/opt/BESClient
Your computer is now ready to be imaged. It is important to save the gold image when the BigFix client service is stopped. To prepare a VM template, follow documentation for the virtualization technology that you use. - Stop the BigFix client.
-
Reload the image without any computer identity that is stored aside and start the BigFix client.
- Open the Windows services dialog box and start the BigFix client service.
- Run the following command.
BESClient start
After you start the BigFix client service, the computer that is reloaded from this image registers automatically at the BigFix server and receives a new Data Source Computer ID. -
To preserve the new identity of this computer, store some registry keys data aside before you
power off the computer.
- Stop the BigFix client service.
- Store the following data.
- The registry key value for
ComputerID
from the following location.- HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\GlobalOptions
- /var/opt/BESClient/besclient.config under the section Software\BigFix\EnterpriseClient\GlobalOptions.
- The BES Client\KeyStorage folder from the default installation directory of the BigFix client.
- The registry key value for
- Reload the computer from the gold image with the BigFix client service stopped.
- Import the data that you stored in step 5.
- Start the BigFix client.
Results
The gold image of your computer is ready and you can reload it at any time. Thanks to the registry keys data stored aside, the computer keeps its identity and bundling information of software that was discovered on this computer.
What to do next
- Start and stop the BigFix client service.
- Store and restore registry keys data that is needed to identify the computer.