Notifications

54 views

Description

Overview


While working with Discovery and Discovery schedules, there is an opportunity to select a specific MID server to execute discovery on a specific device, but, working with discovery on Cloud Resources (AWS/Azure.. Etc) we do not have the option to select any specific MID server.

This article will demonstrate on the Background code /logic on how the Discovery of Cloud resources chooses the MID server. 

The "capiSvrScript.findMatchingMid()"


  • capiSvrScript.findMatchingMid() is a java scripted API.
  • In this method, the function gets all matching MIDs based on capabilities and then we get active MID, again, based on capabilities, target, and other parameters. 
  • After that, we call the override MID (Override the MID Server selection filter)
  • The javascript at platform level cannot be modified. 

 

Additional Information


It might be necessary to have the flexibility to select the MID server for Cloud discovery or Cloud operations, as of now, according to capiSvrScript.findMatchingMid() API it is not possible, we using override ScriptInclude to customize. This can be achieved by modifying the 'overrideMid()' method in 'CAPIMidSelector' script include.

Refer: Mid Server Selection For Cloud Management(CMPv2)

Article Information

Last Updated:2020-05-07 12:51:57
Published:2019-04-20