How to delete the Pingable device

Document ID : KB000010506
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

Question: Can I delete Pingable device from the CA Performance Center GUI?

Background:

In default, when DataAggregator discovers subnet or IP range, Pingable devices will be discovered for ICMP devices.

Sometimes, customers do not need to monitor Pingable devices and would like to delete them after discovery.   

However CA Performance Center - Monitored Devices - Search function does not handle by Device Type such as "Pingable" keyword. Therefore, items can't be deleted via GUI. 

Environment:
CAPM / CAPC: 3.1
Instructions:

Solution: 

------------ 

(1) How to delete the Pingable devices. 

At beginning, get the Pingable device item_id by following method. 

See: TEC1884844   

Note: Please modify the following DAHOST as your Data Aggregator hostname.

REST: POST to http://DAHOST:8581/rest/devices/filtered 

Additional Header: Content-Type: application/xm

Body: 

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

type="EQUAL">ICMP</Device.SupportedProtocols><And><Not><Device.SupportedProtocols type="EQUAL">SNMP</Device.SupportedProtocols></Not><Not><Item.Name 

type="CONTAINS">DataAggregator:</Item.Name></Not></And></And></Filter><Select use="exclude" isa="include"/></FilterSelect> 

rest_filtered.png

Next, create text file which list item_id from REST result: (In this case, text file called FILE is created) 

 ?# more FILE 

??4282 

??4283 

??4284 

??4285 

Finally, run following script in Data Aggregator server.  

Note: Please modify the following DAHOST as your Data Aggregator hostname.

??for itemid in `cat FILE` 

?? do 

??? curl -X DELETE -H "Content-Type: application/xml" http://DAHOST:8581/rest/devices/$itemid -f 

????? echo “item id=“$itemid 

?? done 

 (Sample result)

Note: The script is saved as "delscript.sh" in this case. 

??# chmod 755 delscript.sh 

??# ./delscript.sh 

??SUCCESS“item id=“4282 

??SUCCESS“item id=“4283 

??SUCCESS“item id=“4284 

??SUCCESS“item id=“4285

 

(2) You can exclude Pingable device at the discovering phase.

If you don't want to discover the Pingable device, uncheck the "Create Pingables" in the Discover Profile. 

This change skip the Pingable devices at discovery, so you don't need delete them. 

See: TEC1857656

 

 

Additional Information:

Currently, there is a CA Community Idea to add removing Pingable device function via GUI.