Migrating computers between data sources
Available from
9.2.24.
To migrate computers between two data sources, start by enabling
computer reconciliation mode. Then, migrate a subset of computers to verify that the process works.
After you verify that the process works, complete it for the remaining computers. You can migrate
computers between two BigFix data sources, from a
BigFix data source to a disconnected data source,
or the other way round.
Before you begin
Migrate computers on which the BigFix server
and the BigFix console are installed after you
migrate the entire environment and confirm that the new setup is working. Maintaining this order
ensures the connectivity to the old BigFix server
during the entire migration.
Important: Ensure that you first
check and enable computer reconciliation mode if needed and then migrate computers between data
sources. If you enable computer reconciliation after you migrate some computers, the computers are
duplicated in License Metric Tool as existing both in the old
and new data source. They have different IDs instead of being mapped as having the same ID. In this
case, the reconciliation mode is not able to map the computers. If computers are duplicated in
License Metric Tool before you start the reconciliation,
remove the duplicates. Then, enable the reconciliation.
Procedure
What to do next
- Remove the duplicates the same way as in step 1.
- Check the DNS name of the computer that was not matched. The DNS name remains the same even if
the IP address or computer name changes. Thus, it can be used to properly identify the computer.
- Log in to License Metric Tool and go to .
- Hover over Configure and click Configure View.
- Select DNS Name and click Submit.
- Find the DNS name of the computer.
- Re-create the bundling.
- Assign the software manually. For more information, see: Assigning components to products and Cloud Paks.
- Migrate the assignments by using REST API.
- To retrieve information about software assignments that were defined for the
particular computer in the old data source, use the following REST API request. The
"is_present","=","0"
filter ensures that you retrieve information about software assignments as they were defined for the particular computer in the old data source.
Where:https://hostname:port/api/sam/v2/software_instances?columns[]=product_name& columns[]=component_name&columns[]=discovery_path&columns[]=is_charged&columns[]=is_confirmed& columns[]=computer_dns_name&columns[]=discoverable_guid&columns[]=product_release_guid&columns[]=metric_id& token=user_token&criteria={"and":[["is_present","=","0"],["computer_dns_name","=","dns_name"]]}
- user_token
- Token that is used to authenticate REST API requests. For information how to obtain it, see: Authenticating REST API requests.
- dns_name
- DNS name of the computer that was not matched.
{ "total":5,"rows":[ { "product_name":"IBM Curam Provider Management", "component_name":"IBM Curam Provider Management Authorized User", "discovery_path":["/opt/readiness/tags/swTagsRepo"], "is_charged":1, "is_confirmed":0, "computer_dns_name":"dns_name", "discoverable_guid":"50061b64-e97e-4cb0-9235-349ba4e20aad", "product_release_guid":"4d7fc123-e05f-46f7-a6c6-e4fafe96fb04", "metric_id":-18783 }, { "product_name":"IBM Cognos Enterprise User", "component_name":"IBM Cognos Advanced Planner License", "discovery_path":["/opt/readiness/tags/swTagsRepo"], "is_charged":0, "is_confirmed":0, "computer_dns_name":"dns_name", "discoverable_guid":"52ee8a52-02e4-4dd0-8ae9-b79e42e019c0", "product_release_guid":"5a6c43b3-d36a-4b8e-a8dd-17ae590f6dc9", "metric_id":-18783 }, ... ] }
- To migrate the software assignments, use the following PUT request. Use
Body
of the request that you obtained in step 3.a. It applies the software assignments to the computer in the new data source. The software assignments specified in the computer in the old data source stay unmodified.- Request
-
PUT https://hostname:port/api/sam/v2/software_instances
- Request header
-
Accept: application/json Accept-Language: en-US Token: <token>
- Request body
-
{ "rows":[ { "product_name":"IBM Curam Provider Management", "component_name":"IBM Curam Provider Management Authorized User", "discovery_path":["/opt/readiness/tags/swTagsRepo"], "is_charged":1, "is_confirmed":0, "computer_dns_name":"dns_name", "discoverable_guid":"50061b64-e97e-4cb0-9235-349ba4e20aad", "product_release_guid":"4d7fc123-e05f-46f7-a6c6-e4fafe96fb04", "metric_id":-18783 }, { "product_name":"IBM Cognos Enterprise User", "component_name":"IBM Cognos Advanced Planner License", "discovery_path":["/opt/readiness/tags/swTagsRepo"], "is_charged":0, "is_confirmed":0, "computer_dns_name":"dns_name", "discoverable_guid":"52ee8a52-02e4-4dd0-8ae9-b79e42e019c0", "product_release_guid":"5a6c43b3-d36a-4b8e-a8dd-17ae590f6dc9", "metric_id":-18783 }, ... ] }
{"valid_instances":{"Bundled":5},"invalid_instances":{},"unmodified_instances":5}
- To retrieve information about software assignments that were defined for the
particular computer in the old data source, use the following REST API request. The