Can I delete Pingable device from the NetOps Portal?
search cancel

Can I delete Pingable device from the NetOps Portal?

book

Article ID: 10506

calendar_today

Updated On:

Products

CA Infrastructure Management CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

Question: Can I delete Pingable device from the NetOps Portal?


By 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 NetOps Portal - Monitored Devices - Search function does not handle by Device Type such as "Pingable" keyword. Therefore, items can't be deleted via GUI. 

Environment

Performance Management

Resolution

Solution: 

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

(1) How to delete the Pingable devices. 

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

See: https://knowledge.broadcom.com/external/article?articleId=43629   

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> 

 

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: https://knowledge.broadcom.com/external/article?articleId=32127

 

 

Additional Information

There is a CA Community Idea to add removing Pingable device function via GUI.