ForceAnImport

From OpenNMS

To force an import outside of the current schedule in the model-importer.properties file, send an XML message to OpenNMS with the UEI "uei.opennms.org/internal/importer/reloadImport". The can be accomplished using the send-event script in the /usr/share/opennms/bin directory:


Update: --David.hustace 18:37, 5 June 2006 (CEST)

Two parameters have been added to this reloadImport event that provide the ability to override the code defaults and properties specified in model-importer.properties. These new parameters are:

  1. url
  2. foreignSource
/usr/share/opennms/bin/send-event.pl uei.opennms.org/internal/importer/reloadImport

or, an example with the new parameters:

/usr/share/opennms/bin/send-event.pl uei.opennms.org/internal/importer/reloadImport \
    --parm 'url file:/tmp/tec_dump.xml' \
    --parm 'foreignSource tec-base:'

This will cause OpenNMS to run the Importer integration code using the settings in /etc/opennms/model-importer.configuration properties file.

Categories:Tips and Tricks

Personal tools
DevJam 2008 Sponsors
DevJam 2008 Sponsor: Google
DevJam 2008 Sponsor: Netregistry
DevJam 2008 Sponsor: Papa John's
NewEdge Networks
OpenNMS takes home the gold award!
Join the Free Software Foundation
Support This Project Commercial OpenNMS Support OpenNMS Italia Get OpenNMS at SourceForge.net. Fast, secure and Free Open Source software downloads Our Network Simulator Our Java Profiler