Versions Compared

Key

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

...

Transform FunctionEffect
trim_whitespaceRemoves leading and trailing whitespace from the field.

 

Transform Example

The following tables show the node structure generated from a device that selected and a set of transform rules applied. These documents have been simplified to make the changes easy to understand.

Open-AudIT DeviceIntegration RulesResulting NMIS node
Code Block
languagejs
{   
	"name": "dbdev",
	"sysName": "postgres-dev-01",
    "ip_address":"192.168.88.51",
    "os" : "Debian GNU/Linux 9.4 (stretch)"
}
Code Block
languageperl
'nmis' => {
	'create' => {
		'name' => ['$DEVICE.sysName'],
		'active' => ['true'],
		'host' => ['$DEVICE.ip_address'],
		'notes' => [],
	}
}
Code Block
languagejs
{
	"name": "postgres-dev-01",
	"active": "true",
	"host": "192.168.88.51",
	"notes": ""
}

 

 

Usage

To run the integration, simply invoke the executable and pass it a configuration file as described in the previous section. You can also invoke the tool by itself, which will look for a configuration file at conf/nmisIntegration.nmis by default.

...