DX NetOps

  • 1.  Is it possible to obtain secondary landscape Info via REST API?

    Posted Feb 18, 2017 06:36 PM

    I'm trying to obtain secondary server information via REST. I'm able to use a search to find all VNM models to show me things like landscape Handle, name, ip, spectrum version, etc for the currently active SpectroSERVER.

     

    What I would like to know is if it is possible to find out what the Secondary server IP's are while the primary ones are active? I know that if one of the servers fail over the precedence metric changes to 20 so I can pick up when a server fails over (other than checking for the alarms!!!).

     

    Some of the info is available from the landscape list on the admin page but not the IP and/or hostname of the secondary host if one is configured.


    Thanks in advance!

     

    Frank



  • 2.  Re: Is it possible to obtain secondary landscape Info via REST API?

    Broadcom Employee
    Posted Feb 20, 2017 07:41 AM

    Hi Frank,

     

    Thru Rest we have only one link to fetch the landscape details

    http://localhost:8080/spectrum/restful/landscapes 

     

    Which will give below info when Primary is on

    =================================

     

     

     <?xml version="1.0" encoding="UTF-8" standalone="true"?>
    -<landscape-response total-landscapes="1" xmlns="http://www.ca.com/spectrum/restful/schema/response">

    -<landscape>

    <id>0x100000</id>

    <name>NAM-SS</name>

    <isPrimary>true</isPrimary>

    <spectrumVersion>10.2.0.000</spectrumVersion>

    </landscape>

    </landscape-response>

     

    Below info when Secondary is on

    ============================

    <?xml version="1.0" encoding="UTF-8" standalone="true"?>
    -<landscape-response total-landscapes="1" xmlns="http://www.ca.com/spectrum/restful/schema/response">

    -<landscape>

    <id>0x100000</id>

    <name>NAM-SS</name>

    <isPrimary>false</isPrimary>

    <spectrumVersion>10.2.0.000</spectrumVersion>

    </landscape>

    </landscape-response>

     

    So as per my knowledge you will not be able to get the secondary hostname or ip through rest api

     

    Regards

    Sunny



  • 3.  Re: Is it possible to obtain secondary landscape Info via REST API?

    Posted Feb 20, 2017 08:24 AM

    Thanks for your response Sunny,

     

    I am already aware of this, but it doesn't seem to provide the IP address which is what I am after. Also this information is only available when the primary landscape is not. I was hoping there would be some way to obtain this information via REST API.

     

    Perhaps I need to make this an idea.

     

    Regards,

    Frank



  • 4.  Re: Is it possible to obtain secondary landscape Info via REST API?
    Best Answer

    Broadcom Employee
    Posted Feb 20, 2017 10:53 PM

    Hi Frank,

     

    I did check with my engineering team also on this so currently it is not available to fetch IP of secondary.

     

    As you mentioned this would be a candidate for an idea.

     

    Regards

    Sunny