DX Operational Intelligence

Expand all | Collapse all

CA SOI: Import services with WSSSAServiceCmd or WSSSAServiceCmdV2

  • 1.  CA SOI: Import services with WSSSAServiceCmd or WSSSAServiceCmdV2

    Posted 12-05-2019 10:10 PM
    Hi with everyone,
    We have two CA SOI environments, one of them we have exported certain services using the WSSSAServiceCmd or WSSSAServiceCmdV2 commands, but when you want to import them into the new environment, only the service is created but not the relationships that exist within the service. For example, if in the first one we generate a service indicating that it has two servers as members and we export them; in the second environment when importing the service, only the service is created and in the topology the two servers that indicated they were members do not appear.
    Could you help me with this problem?

    Attachment(s)

    xml
    WSSSAServiceCmd.xml   8K 1 version
    xml
    WSSSAServiceCmdV2.xml   44K 1 version


  • 2.  RE: CA SOI: Import services with WSSSAServiceCmd or WSSSAServiceCmdV2

    Posted 12-11-2019 04:13 AM
    Hello Carlos,

    If you want to export Services, Relationships, custom propagation & escalation policies etc, then please use "WSsamservicecmd.bat" command.
    The syntax is same for all commands. Let us know if this helps

    Regards
    Brahma


  • 3.  RE: CA SOI: Import services with WSSSAServiceCmd or WSSSAServiceCmdV2

    Posted 12-11-2019 07:36 AM
    Brahma,
    Thank you for reply.
    We use the WSsamservicecmd.bat and in the log can see the error message: "CI Staging create failed. No Primary Key"



  • 4.  RE: CA SOI: Import services with WSSSAServiceCmd or WSSSAServiceCmdV2

    Posted 12-11-2019 08:01 AM
    Hello Carlos,

    What is the error when running Export command?
    I assume, your SOI manager is at 4.2 version, please confirm the patch level too.

    Regards
    Brahma


  • 5.  RE: CA SOI: Import services with WSSSAServiceCmd or WSSSAServiceCmdV2

    Posted 12-11-2019 08:48 AM
    Hello Brahma,
    The export not give me error. The error is in the import.
    The Path is <soi>/tomcat/bin/.



  • 6.  RE: CA SOI: Import services with WSSSAServiceCmd or WSSSAServiceCmdV2

    Posted 12-11-2019 11:10 AM
    Hello Carlos,

    Can you share the Import error, also confirm SOI version & patch level.

    Thanks
    Brahma


  • 7.  RE: CA SOI: Import services with WSSSAServiceCmd or WSSSAServiceCmdV2

    Posted 12-11-2019 04:10 PM
    Hello Brahma,
    The error is "CI Staging create failed. No Primary Key"
    CA Service Operations Insight Version 4.2.0.473.20190802



  • 8.  RE: CA SOI: Import services with WSSSAServiceCmd or WSSSAServiceCmdV2

    Posted 12-11-2019 04:17 PM
    Hi Carlos,
    I think you have confused all of us with the error message.
    - You ran the command on the DOS window, right? Did you get this error also on the DOS window after the command ended it's run or did you picked up this error from one of the log file in tomcat\logs? If you have picked up this error from the log file then I don't see how this is related to your command.
    Thanks
    Shaheen


  • 9.  RE: CA SOI: Import services with WSSSAServiceCmd or WSSSAServiceCmdV2

    Posted 12-16-2019 05:16 AM
    Hi Carlos,

    one important thing to consider:
    You cannot use these commands to export services from one environment to then import them into a different environment.
    These commands are solely usable to backup and restore services within the same SOI environment.

    The reason for this is:
    The export contains all the CIs, with the individual IDs, and connector information.
    In a different environment all CIs will have different IDs and connectors will be different as well.
    The CIs and also the connectors from the original environment will be created in the second environment, but they will not have any mapping to other objects of that environment.
    Only if you want to "see" or do some analysis in a second environment based on the original export, this export/import might make sense (for example Support is doing this to look at customer data, without having the real environment).

    Can you explain what you want to achieve by exporting the services from one environment and importing them to a different environment?
    What are your expectations by performing this action?

    Thanks
    Michael

    ------------------------------
    Customer Success Architect
    CA Deutschland GmbH (a Broadcom company)
    ------------------------------



  • 10.  RE: CA SOI: Import services with WSSSAServiceCmd or WSSSAServiceCmdV2

    Posted 12-16-2019 05:30 AM
    Hello Michael,
    Thanks for answering.
    What happens is that in a client a service was deleted a month ago. And the client needs to recover said service. As there is a backup of the database when the service existed, a new environment was created with that backup to export that service and import it back into the current environment.
    But at the time of trying it has not worked for us, creating only the service and returning the following error when we want to create the CIs:

    2019-12-06 17:38:56,525 INFO [pool-37-thread-1] ?.?(?) - CI Staging create failed. No Primary Key - SysName,PrimaryDnsName,BiosSystemID,AssetNumber,PhysSerialNumber,PrimaryIPV6AddressWithDomain,PrimaryIPV4AddressWithDomain,PrimaryIPV6Address,PrimaryIPV4Address,PrimaryMacAddress,
    {ClassName=GenericIPDevice, CreationTimestamp=2019-12-06T17:38:56.524-03:00, Description=, Label=alphaxd.corp.cablevision.com.ar, LastModActivity=Create, LastModTimestamp=2019-12-06T17:38:56.524-03:00, MdrElementID=3160, MdrProdInstance=SR-SOIDB-DPMILLA, MdrProduct=CA:09996, connectorName=localhost, saInstanceLabel=alphaxd.corp.cablevision.com.ar, siloName=WebServiceForSSA_localhost@localhost, ssa_ci_namespace_map_id=e1daa104951741ebbdef0c7d89057d20, ssa_connector_list=CA:00030@tenant0, ssa_domain_id=4503599627370496, ssa_priority=-1, ssa_severity=0, ssa_significance=3160}


  • 11.  RE: CA SOI: Import services with WSSSAServiceCmd or WSSSAServiceCmdV2

    Posted 12-16-2019 09:17 AM
    Hi Carlos,

    the message sounds to me as if the information of the CIs to be created is not complete.
    It is missing any of the mandatory fields SysName, PrimaryDnsName, BiosSystemID, AssetNumber, PhysSerialNumber, PrimaryIPV6AddressWithDomain, PrimaryIPV4AddressWithDomain, PrimaryIPV6Address, PrimaryIPV4Address, PrimaryMacAddress.
    Either of them is required to properly create a CI (these attributes are used for correlation and create a Primary Key in the DB).

    Can you send me the export - I might see something that is wrong.
    Sometimes there are ways to recover by manually adding something in the export file (depending on the complexity of the service).
    How was this service created originally?

    Michael.Boehm@broadcom.com



    ------------------------------
    Customer Success Architect
    CA Deutschland GmbH (a Broadcom company)
    ------------------------------



  • 12.  RE: CA SOI: Import services with WSSSAServiceCmd or WSSSAServiceCmdV2

    Posted 12-18-2019 06:00 AM
    Michael
    Thanks for the help.
    I just sent you the service by mail.
    The service was created using ICs of integration with CA UIM, but we were also presented with other services that had ICs of CA UIM, CA Spectrum, the SNMP connector.