Import handlers

Meridian supports a number of import handlers to facilitate provisioning nodes from an external system (foreign source) into a requisition. This is done in the provisiond-configuration.xml file by referencing a requisition’s location via a URL. Most commonly, these URLs are files on the file system (file:/opt/opennms/etc/imports/<my-requisition.xml>) created through the Requisitions UI. However, these same requisitions for adding, updating, and deleting nodes can also come from external URLs. For example, a requisition can be retrieved using the HTTP protocol.

In addition to the standard protocols supported by Java, we provide a series of custom URL handlers to help retrieve requisitions from external sources.

Generic handler

The generic handler is made available using URLs of the form: requisition://type?param=1;param=2

Using these URLs, you can invoke various handlers, both locally and via a Minion. In addition to the type-specific parameters, the following parameters are supported by all handlers:

Table 1. Common parameters
Parameter Description Required Default value


The name of the location at which the handler should run.




The maximum number of milliseconds to wait for the handler when run remotely.



See the relevant sections below for additional details on the supported types.

Use the opennms:show-import command, available via the Karaf shell, to show the results of an import without persisting or triggering the import:

opennms:show-import -l MINION http url=

File handler




Using the generic handler


HTTP handler



Using the generic handler

When using the generic handler, the URL should be "URL encoded".

Using the OpenNMS Provisioning Integration Server (PRIS)


DNS handler

The DNS handler requests a Zone Transfer (AXFR) from a DNS server. The A and AAAA records are retrieved and used to build an import requisition. This is useful for organizations that use DNS, possibly coupled with an IP management tool, as the database of record for nodes in the network. So, rather than ping sweeping the network or entering the nodes manually into the Meridian Requisition UI, you can manage nodes via one or more DNS servers.

The format of the URL for this new protocol handler is: dns://<host>[:port]/<zone>[/<foreign-source>/][?expression=<regex>]

DNS Import Examples:



This URL imports all A and AAAA records from the zone on the host my-dns-server via port 53 (default DNS port). Since the foreign source is not specified, it will be added to the default requisition.

Using a regular expression filter


This URL imports all nodes from the same server and zone, but only imports the nodes in the zone matching the regular expression ^port-.*. The matching nodes will be assigned to a requisition named 'portland'. If your expression requires URL encoding, for example you need to use a ? in the expression, it must be properly encoded.



You can use the location parameter to assign a single location to all nodes in this requisition. This would only apply if you are using Minions in your network.


By prefixing with a ~, you can specify a url-encoded regular expression to determine the location based on the host entries. The following example derives the location based on the subdomain. This example uses a URL-encoded regular expression ^(?:.\.|)(.?)\.hs-fulda\.de\.$ with exactly one capturing group containing the subdomain.


This will associate nodes for the host entries and to the location e46 while hosts like and will be assigned location g51.

You can use online tools like to encode your parameters.

DNS setup

The DNS import handler performs an AXFR zone transfer request to collect DNS resource records for use in provisioning nodes. Zone transfers are designed for zone replication between DNS servers. You may want to provide additional security mechanisms to protect your DNS infrastructure. At a minimum, you should always restrict AXFR requests to only trusted IP addresses and/or use a hidden, read-only secondary DNS server for Meridian.

One suggestion is to set up a secondary DNS server on your Meridian and configure the rest of the DNS servers to allow transfers to your Meridian server. This allows you to point the DNS import handler to localhost.

There is no encryption or authentication available for AXFR transfer requests. Transaction signatures (TSIG) to prevent IP spoofing attempts are currently not supported by Meridian.

A quick way to test if zone transfers are working is:

dig -t AXFR @<dnsServer> <zone>


The configuration of the Provisioning system allows the definition of zero or more import requisitions, each with their own cron-based schedule for automatic importing from various sources intended for integration with external URLs such as http and/or dns protocol handler. A default configuration is provided in the Meridian etc/ directory and is called: provisiond-configuration.xml. This default configuration has an example for scheduling an import from a DNS server running on the localhost requesting nodes from the zone, localhost and will be imported once per day at the stroke of midnight. Not very practical, but is a good example to get you started.

<?xml version="1.0" encoding="UTF-8"?>
<provisiond-configuration xmlns=""


  importThreads="8" scanThreads="10" rescanThreads="10" writeThreads="8" >

        Field Name     Allowed Values      Allowed Special Characters
        Seconds        0-59                , - * /
        Minutes        0-59                , - * /
        Hours          0-23                , - * /
        Day-of-month   1-31                , - * ? / L W C
        Month          1-12 or JAN-DEC     , - * /
        Day-of-Week    1-7 or SUN-SAT      , - * ? / L C #
        Year (Opt)     empty, 1970-2099    , - * /

  <requisition-def import-name="localhost" import-url-resource="dns://localhost/localhost">
    <cron-schedule>0 0 0 * * ? *</cron-schedule>

Configuration reload

It is possible to reload the provisiond configuration without having to restart Meridian by triggering the reloadDaemonConfig UEI:

/opt/opennms/bin/ --parm 'daemonName Provisiond'