Retired items without a REST Client
search cancel

Retired items without a REST Client

book

Article ID: 380619

calendar_today

Updated On:

Products

DX NetOps CA Performance Management - Usage and Administration

Issue/Introduction

I am not able to download a REST GUI.  How can I get a list of retired items from the command line?

Environment

Dx NetOps Performance Management any version

Resolution

To get a list of retired items perform the following steps

  1. Create a file /tmp/retired.xml

  2. Add the following syntax

<FilterSelect xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="filter.xsd">

<Filter>
<And><Lifecycle.State type="EQUAL">RETIRED</Lifecycle.State><Not><Item.Name type="CONTAINS">DataAggregator:</Item.Name></Not><Not><Item.Name type="CONTAINS">DataCollector</Item.Name></Not></And>
</Filter>

<Select use="exclude" isa="exclude" relatesto="exclude">
<Item use="exclude">
<Name use="include"/>
</Item>
<Device use="exclude">
<PrimaryIPAddress use="include"/>
</Device>
<Lifecycle use="exclude">
<State use="include"/>
</Lifecycle>
</Select>
</FilterSelect>

   3. Run the following command:

  • curl -s -X POST -d @/tmp/retired.xml http://localhost:8581/rest/devices/filtered --header "Content-Type: application/xml" |  xmllint --format -