Distribution of Virtual Center (VC) Across Landscapes

In a Distributed SpectroSERVER (DSS) environment, CA Spectrum, and CA UIM integration has a capability to distribute the Virtual Centers (VCs) across landscapes rather modeling all the VCs on the selected landscape which helps to show the connectivity (layer 2 or 3) between the Virtual Machine (VM) and upstream devices. If no upstream devices are available, the VC and all the entities that are managed by that VC are modeled in the dedicated SpectroSERVER.
casp1031
In a Distributed SpectroSERVER (DSS) environment, CA Spectrum, and CA UIM integration has a capability to distribute the Virtual Centers (VCs) across landscapes rather modeling all the VCs on the selected landscape which helps to show the connectivity (layer 2 or 3) between the Virtual Machine (VM) and upstream devices. If no upstream devices are available, the VC and all the entities that are managed by that VC are modeled in the dedicated SpectroSERVER.
Migrating DataCenters across Landscapes
You can move Datacenters from an existing landscape to a new landscape where the upstream devices are discovered. If a Datacenter migration is in-progress, you cannot migrate another DataCenter. Also, if a virtualization sync is in-progress, the Datacenter migration is not allowed.
If you move a Datacenter from one landscape to another, it results in the deletion of Datacenter from the previous landscape. Any existing events or alarms that are present on the Datacenter and its entities are lost.
Follow these steps:
  1. Open the CA Spectrum OneClick console.
  2. Select Nimsoft Manager and select the Information tab on the Content pane.
    VMware Configuration information is displayed.
  3. Expand VMware Configuration and VMware Datacenter Modeling.
    A list of datacenters and the modeled landscapes is displayed.
    The following image displays the table with a list of Datacenters and the modeled landscapes:
    Distribution of Datacenter.png
  4. Select a Datacenter and select Move.
    The Select Landscape dialog appears.
    The following image shows the list of landscapes that are available in CA Spectrum:
    Lanscapes.png
  5. Select a landscape and select Ok.
    The confirmation window opens.
  6. Select Ok.
    Datacenter is moved to the selected landscape successfully.
If Datacenters are migrated from landscapes that are down, then the migrated datacenter and its entities are deleted from the old landscape, during the subsequent sync, once that landscape is up.
Migrating Multiple DataCenters across Landscapes Via REST API
Previously, as a user, you could only migrate one Datacenter a time from one landscape to another using the OneClick console. Each time the user migrated the Datacenter, triggering the discover connection, caused a delay in completing the migration. To address this challenge, Spectrum 10.3.1 introduces, a new feature under the Spectrum-UIM integration, to migrate multiple Datacenters at a time from an existing landscape to a new landscape. To achieve this execute a post request through a REST call with the required information payload. This new approach triggers discover connections only once during the migration of multiple Datacenters. 
GET Request:
GET action issues an action request to OneClick Server to get complete Datacenters information across landscapes using the get request via REST API. 
GET URL
Open any REST Client and perform the below GET request.
http://<OC server Name>:<Port number>/spectrum/restful/datacenters
Sample Output:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <datacenter-response status="Success"> <dc-elements> <vcid>62</vcid> <vcip>10.131.159.5</vcip> <dcid>C566c8be11d7e9700a63d2cdf5579df06</dcid> <dcname>ITC-SPECTRUM</dcname> <currentlandscape>0xc00000</currentlandscape> <newlandscape>0xc00000</newlandscape> </dc-elements> <dc-elements> <vcid>109</vcid> <vcip>138.42.93.28</vcip> <dcid>Ca0a997f0b109e2e542d8699eb5f718b3</dcid> <dcname>Engineering</dcname> <currentlandscape>0xc00000</currentlandscape> <newlandscape>0xc00000</newlandscape> </dc-elements> </datacenter-response>
In the above response, each <dc-elements> tag contains an individual data center information. In case you have ten Datacenters, in the response you get ten <dc-elements> with appropriate details. If you want to move any datacentre from one landscape to another, simply copy the <dcelements> of that specified Datacenter and update the new landscape field name in <dc-elements> with new landscape information.
POST Request:
POST URL
Open any REST Client and perform the below POST request with needed payload information.
http://<OC server Name>:<Port number>/spectrum/restful/dcmigration
Sample Post Payload:
This payload has the same <dc-elements> information that we received from the get request with updated new landscape name where you have to move the Datacenter. Following is an example for migrating two data centers from landscape 0xc00000 to another landscape 0x1800000. 
<?xml version="1.0" encoding="UTF-8"?><datacenter-migration-info xmlns="http://www.ca.com/spectrum/restful/schema/request"> <dc-migration-list> <dc-elements> <vcid>62</vcid> <vcip>10.131.159.5</vcip> <dcid>C566c8be11d7e9700a63d2cdf5579df06</dcid> <dcname>ITC-SPECTRUM</dcname> <currentlandscape>0xc00000</currentlandscape> <newlandscape>0x1800000</newlandscape> </dc-elements> <dc-elements> <vcid>109</vcid> <vcip>138.42.93.28</vcip> <dcid>Ca0a997f0b109e2e542d8699eb5f718b3</dcid> <dcname>Engineering</dcname> <currentlandscape>0xc00000</currentlandscape> <newlandscape>0x1800000</newlandscape> </dc-elements> </dc-migration-list> </datacenter-migration-info>