User Tools

Site Tools


api:export:externalsystemdummy

ExportAPI: Destination Dummy

This is a dummy for an external system and prints only some information about exported objects. You can use it for testing your exporter-configuration.xml.

Configuration

short information
class name ExternalSystemDummy
needed destination parameternone
needed variablesnone

destination parameters

No destination parameters are needed. If you define parameters, the key-value pairs are printed out.

variables

No variables are needed. If you define variables with the name dummy1, dummy2, dummy3 or dummy4, the value is printed out for each object.

Examples

example of export task configuration:

<task name="example">
              <sources>
                      <source objecttype="router" status="A" fieldname="manufacturer" fieldvalue="Cisco" />
                      <source objecttype="switch" status="A" />
              </sources>
              <destination class="ExternalSystemDummy">
                      <parameter key="testparameter1" value="value1" />
                      <parameter key="testparameter2" value="valu2" />
              </destination>
              <variables>
                      <variable name="dummy1">
                              <value objecttype="router" fieldname="hostname" />
                              <value objecttype="switch" fieldname="management-ip" />
                      </variable>
                      <variable name="dummy2" default-value="0.0.0.0">
                              <value objecttype="router" fieldname="management-ip" />
                              <value objecttype="switch" fieldname="management-ip" />
                      </variable>
              </variables>
</task>

minimal configuration example:

<task name="example">
              <sources>
                      <source objecttype="router" status="A" fieldname="manufacturer" fieldvalue="Cisco" />
                      <source objecttype="switch" status="A" />
              </sources>
              <destination class="ExternalSystemDummy" />
</task>

Example output

Export API Demo
Dummy for external system
prints only information about exported objects

External System: Dummy
Defined Parameters:
key testparameter1:                     value value1
key testparameter2:                     value valu2

Start of dummy export
exporting object 4      of type router  and status A. values of variables dummy1-4: router4, 10.0.0.4, null, null.
exporting object 14     of type router  and status A. values of variables dummy1-4: router14, 10.0.0.4, null, null.                                                                                             
exporting object 29     of type switch  and status A. values of variables dummy1-4: 10.1.1.1, 10.1.1.1, null, null.                                                                                             
End of dummy export                                                                                     
api/export/externalsystemdummy.txt · Last modified: 2017/07/24 11:43 (external edit)