You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Since opCharts 4.1.0, opEvents 3.1.0, opHA 3.1.0 and opConfig 4.1.0 version, the .nmis configuration files will be replaced by .json files. 

The installer will perform all the conversion, and it will be merging as always the old configuration items with new configuration items. 

IMPORTANT When migrate to one of these products versions, an upgrade of all products will be required. 

New opcommon-cli tool

A new tool is available to convert .nmis files to .json files if needed. 

It has the following actions: 

  • convert_json_file: Will convert .nmis file into a json file. It has 3 options: 
    • backup: t/f: True by default. Will move the .nmis file to the archive_converted_files directory. 
    • replace_qr: t/f: True by default. Will replace the qr// by "" reading the file content as a string. Please note, if the file has non quoted qr, the conversion to json will fail, with a message: 

      Error converting json file: encountered object '(?^:Category:\((\d+)\); User:([\w\\ ]{0,256}); (.+)$)', but neither allow_blessed ...

    • replace_nmis: t/f: True by default. Will replace the ".nmis" by ".json" reading the file content as a string. 
  • convert_dir_file: Will scan a directory and convert nmis files to json files, using backup, replace_qr and replace_nmis to true but for EventActions will do an exception. This file has quoted qr so it won't need to be converted. 
  • No labels