Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Additional Steps for server holding the MySQL Database

  • copy the schema files to the conf directory 

  • Code Block
    cd /usr/local/opExport
     cp ./install/schema_set.json ./config/
     cp ./install/export-* ./config/ 

Start the server

This will need to be done on the server holding the MySQL Database as well as all the NMIS servers that will be exporting data

 

Code Block
cd /usr/local/opExport/scripts
 ./opmantek.pl prefork 

Configure the daemons that will export data

The server that holds the MySQL Database holds the master copy of the schema, in order for an NMIS server to export it's daemon requires a schema to be pushed to it.  

First, check
Check that the all the daemons are running and that you can access them with the connection key that you configured (do this for all daemons you have configured), at this point you will need to enter your license key and accept the EULA:
Code Block
http://your.server.names.or.ip:3000/opExport/?opexport_connection_key=key123

 

 

Configure the daemons that will export data

The server that holds the MySQL Database holds the master copy of the schema, in order for an NMIS server to export it's daemon requires a schema to be pushed to it.  

FirstNext, check that the MySQL server has a schema configured.  In a web browser load:

Code Block
http://your.MySQL.server.name.or.ip:3000/opExport/schemas

 

For each server you wish to have export you need to push the schema, in a web browser load:

Code Block
http://your.MySQL.server.name.or.ip:3000/opExport/schemas/push/NMIS_Server_Name?opexport_connection_key=key123

 

You can now verify that each of the NMIS servers have the schema:

Code Block
http://your.NMIS.server.name.or.ip:3000/opExport/schemas?opexport_connection_key=key123

 

Transferring Data

There are two ways to transfer, the MySQL server can "pull" the data, or the NMIS server can "push" the data.

To pull:

Code Block
http://your.MySQL.server.name.or.ip:3000/opExport/schemas/pull/NMIS_server_name?opexport_connection_key=key123

To push:

Code Block
http://your.NMIS.server.name.or.ip:3000/opExport/schemas/push/MySQL_server_name?opexport_connection_key=key123

 

Error checking

The daemon should be writing to /usr/local/opExport/log, currently that functionality is not working so it will dump everything to STDOUT.  That is where you will want to look.