DX NetOps

 View Only

 How to register all Pingable hosts at once

MARUBUN SUPPORT's profile image
MARUBUN SUPPORT posted Feb 26, 2025 01:18 AM

Hello everyone,
I received the following question from our customer and I would appreciate your advice.

[Product]
DX NetOps Spectrum 23.3

[Questions]
Our customer understands that the method for registering pingable hosts on the DX NetOps Spectrum topology map is the method introduced in the following Knowledge Base article.
   https://knowledge.broadcom.com/external/article/240640/how-to-create-a-pingable-model-to-monito.html

However, they believes that the method in this KB requires one operation to register one host.

Please let us know if there is a way to register multiple hosts at once.
For example, it would be desirable to have an operation that registers pingable hosts on the topology when a command is executed with a list of IP addresses as arguments.


Best Regards,
Marubun Support

Robert Kettles's profile image
Broadcom Employee Robert Kettles

Hello,

They should be able to use the standard Discovery console to add all the pingables in.  Discovery works on pingables as well as SNMP.  Typically, customers would filter out the pingables to only add SNMP devices but you can just as easily filter so you only have pingables added.

-Rob

Catalin Farcasanu's profile image
Catalin Farcasanu

I would use a simple script with REST API call that would create new models by type, specifying devices by IP and their names. It's a straight forward script that calls curl 

URL="$ocprotocol://$ocserver:$ocport/spectrum/restful/model?landscapeid=${LandscapeID}&mtypeid=0x10290&attr=0x1006e&val=${urlencode_pingablename}&attr=0x12d7f&val=${IP_ADDRESS}&parentmh=${parent_container_mh}$&relationid=0x00010002"

curl -k -s --netrc-file $ochash -H "Content-Type: application/xml" -X POST "$URL"