DX NetOps

 View Only
  • 1.  Export conecction DX Spectrum

    Posted Dec 20, 2022 09:29 PM
    Edited by ISAAC VELASCO Dec 20, 2022 09:33 PM
    Hello Community.
    
    I have the following requirement for Spectrum.
    
    I want to export the connection that an interface has.
    
    For example:

    These connections are required to load it to the CMDB, and we start this process with modelinggateway, the following line has been added to add the "Port" class to the export.


    <CMDBClassMapping>
    <CMDBClass family="Network" class="Port" />
    <SPECTRUMModelClass>15</SPECTRUMModelClass> <!-- Port -->
    <SPECTRUMModelClass>7</SPECTRUMModelClass> <!-- Link -->
    </CMDBClassMapping>


    When making these modifications, in theory, the interfaces should appear, but it simply does not work.
    
    Could someone help me or some idea to get the information.

    Thanks for the support.


  • 2.  RE: Export conecction DX Spectrum

    Posted Dec 20, 2022 09:35 PM
      |   view attached
    I share the output of the file

    Attachment(s)

    xml
    prueba.xml   5 KB 1 version


  • 3.  RE: Export conecction DX Spectrum

    Posted Dec 21, 2022 03:48 AM
    I would not go down that path. I would try to use RestAPI for getting the information on relations, by filtering the exported ports with only those that don't have the attribute NetworkLinkType (0x12a79) not eqaul to 0 (No Link). This way, you don't actually get all ports, but only relevant ones, with their corresponding device by model handle (Device_Mdl_Handle 0x10069). This would e an approach.

    Another approach would be to get the list of connections for specified IP Address by using the ¨connectivity¨ endpoint, and swiping the entire pool of known device IPs. You have Swagger for the API so you can easily test out configurations. It will be faster to program this into a integration. 

    Maybe you don't need all of them and you can just filter by a GC membership.

    This would be harder to be obtained using ModelingGateway.

    ------------------------------
    Cătălin Fărcășanu
    Senior Consultant
    SolvIT Networks
    ------------------------------