External Resource IDs Source Output Scripts

Last updated on 20 March, 2023

The ERI source output is a type of PropertySource, used for assigning external resource IDs (ERIs) to resources for topology mapping. For more information on PropertySources that assign ERIs, see Topology Mapping Overview.

LogicMonitor supports embedded scripting throughout our product using the Groovy programming language. Groovy can be used in DataSources for Scripted Active Discovery, Scripted Data Collection, and Complex Datapoint Post-Processing; in Scripted EventSources; ConfigSources; and Netscan Policies.

Embedded PowerShell is supported specifically for Scripted Active Discovery, Scripted Data Collection, Scripted Eventsources, and ConfigSources.

ERI Source Output Scripts Format

Following is the format of the PropertySources scripts output:

{
  "rawERIs": [
    {
      "category": "net.l2",
      "priority": 1,
      "type": "Router",
      "value": "a4:93:4c:08:00:02,a4:93:4c:09:00:02,a4:93:4c:0a:00:02,a4:93:4c:0b:00:02,
a4:93:4c:0c:00:02,a4:93:4c:0d:00:02,a4:93:4c:0e:00:02,a4:93:4c:0f:00:02,
a4:93:4c:01:00:02,a4:93:4c:02:00:02,a4:93:4c:03:00:02,
a4:93:4c:04:00:02,a4:93:4c:05:00:02,a4:93:4c:06:00:02,
a4:93:4c:07:00:02,a4:93:4c:10:00:02"
    }
  ]
}

Where:

  • Category – The category defines the type of device or technology for which the ERI keys are generated.
    For example, “net.2” is the category.
  • Priority – The ERI values with the highest assigned priority number (that is, the ERIs at the top of the list) are the ones that take precedence and are used to generate the full ERI used for mapping the to or from relationships through the TopologySources.
    For example, “1” is the priority.
  • Type – Displays the external resource type (ERT). While an ERI specifies the unique identifier of a resource or vertex, the external resource type (ERT) specifies its type.
    The value assigned to an ERT determines the technology-specific icon used to represent the resource or vertex on rendered topology maps.
    For example, ”switch” or “router” is the resource type.
  • Value – Displays the external resource ID (ERI). An ERI contains a set of keys that, in combination, serve to uniquely identify a resource. For example, “a4:93:4c:08:00:02,a4:93:4c:09:00:02,a4:93:4c:0a:00:02,..and so on” are the multiple ERI values.