ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

How to get all interface details for a device with admin and oper status

book

Article ID: 238537

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

How can I see interface information per device using REST?

Environment

Dx NetOps Performance Management any version

Resolution

POST against http://DA:8581/rest/ports/filtered/


<FilterSelect xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="filter.xsd">
 <Filter>
  <And>
   <DeviceComponent.IsFiltered type="EQUAL">true</DeviceComponent.IsFiltered>
   <DeviceComponent.DeviceItemID type="EQUAL">DEVICE_ITEM_ID</DeviceComponent.DeviceItemID>
   <Not>
    <DeviceComponent.DeviceItemID type="EQUAL">DA_ITEM_ID</DeviceComponent.DeviceItemID>
   </Not>
  </And>
 </Filter>
 <Select use="exclude" isa="exclude">
  <Port use="exclude">
   <Alias use="include"/>
   <AdminStatus use="include"/>
   <OperStatus use="include"/>
  </Port>
  <DeviceComponent use="exclude">
   <IsFiltered use="include"/>
   <DeviceItemID use="include"/>
  </DeviceComponent>
  <Item use="exclude">
   <Name use="include"/>
  </Item>
 </Select>
</FilterSelect>

 

This will show interface information for a particular device (DEVICE_ITEM_ID).  It will show Alias, Admin Status, Oper Status, and will show if the port is filtered or not


DA_ITEM_ID and DEVICE_ITEM_ID can be obtained for monitored items management page

We define the DA_ITEM_ID so it can be ignored

The above syntax gives you filtered interfaces.  

Change <DeviceComponent.IsFiltered type="EQUAL">true</DeviceComponent.IsFiltered> from true to false to get the other interfaces or just remove the filter all together to see everything for a device