How to retrieve a list of devices configured for OSPF in Spectrum via REST or CLI
search cancel

How to retrieve a list of devices configured for OSPF in Spectrum via REST or CLI

book

Article ID: 270836

calendar_today

Updated On:

Products

Network Observability

Issue/Introduction

How to retrieve a list of devices configured for OSPF in Spectrum via REST or CLI

Environment

Release : All

Resolution

CLI

spectrum@host /c/win32app/Spectrum/vnmsh
$ ./show models | grep OSPF2RtrApp
0x1005bf2   Device1_OSPF  0x22001a    OSPF2RtrApp
0x1004894   Device2_OSPF    0x22001a    OSPF2RtrApp
0x10047bf   Device3_OSPF   0x22001a    OSPF2RtrApp

REST

http(s)://OC:PORT/spectrum/restful/models

<?xml version="1.0" encoding="UTF-8"?>
<!--


   CA Technologies, Inc.
   One CA Plaza
   Islandia, NY 11749 USA

   Copyright (c) 2012 CA Technologies, Inc.
   All rights reserved.

   IN NO EVENT SHALL CA TECHNOLOGIES INCORPORATED BE LIABLE FOR
   ANY INCIDENTAL, INDIRECT, SPECIAL, OR CONSEQUENTIAL DAMAGES
   WHATSOEVER (INCLUDING BUT NOT LIMITED TO LOST PROFITS) ARISING OUT
   OF OR RELATED TO THIS SOFTWARE, EVEN IF CA TECHNOLOGIES INCORPORATED
   HAS BEEN ADVISED OF, KNOWN, OR SHOULD HAVE KNOWN, THE POSSIBILITY OF
   SUCH DAMAGES.


-->

<rs:model-request throttlesize="1000"
  xmlns:rs="http://www.ca.com/spectrum/restful/schema/request"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.ca.com/spectrum/restful/schema/request ../../../xsd/Request.xsd ">

    <rs:target-models>
      <rs:models-search>
        <rs:search-criteria 
             xmlns="http://www.ca.com/spectrum/restful/schema/filter">
          <filtered-models>
            <equals>
              <attribute id="0x10000">
                <value>OSPF2RtrApp</value>
              </attribute>
            </equals>
          </filtered-models>
        </rs:search-criteria>
      </rs:models-search>
    </rs:target-models>

    <rs:requested-attribute id="0x1006e" />
</rs:model-request>