Versions Compared

Key

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

...

There are several use tools and functions available with NMIS to help troubleshoot what is happening with device communication as well as when you are developing new models.  This WIKI provides details about what those tools are and how to use them.

In NMIS8 the model tool was called model_discovery.pl, but it did more than that, so it was renamed in NMIS9 to model_tool.pl (/usr/local/nmis9/admin/model_tool.pl)

This document will refer to using the modelling tool in NMIS9, along with some other useful tools in NMIS8 which still work, but are a little redundant with the new an improved model_tool.pl

NMIS to Device Communications

...

Model Debug for an Update

NMIS 9: 

Using the syntax below will result in a file created /tmp/update-PID-DATE.log

Code Block
/usr/local/nmis9/bin/nmis-cli act=schedule job.priority=1 job.verbosity=3 job.output=/tmp/update job.force=true job.type=update job.node=NMIS_NODE_NAME 

NMIS 8: 

Code Block
/usr/local/nmis8/bin/nmis.pl type=update node=NMIS_NODE_NAME model=true force=true

Model Debug for a Collect

NMIS 9: 

for a Collect

NMIS 9: 

Using the syntax below will result in a file created /tmp/collect-PID-DATE.log

Code Block
/usr/local/nmis9/bin/nmis-cli act=schedule job.priority=1 job.verbosity=3 job.output=/tmp/collect job.force=true job.type=collect job.node=NMIS_NODE_NAME 

...

The model discovery tool is new and is there to make things easier.  It supports several useful functions when development new models or working with existing ones.

model_discovery.pl was pl was released in NMIS8.7.0G and NMIS 9.2.2 but was an early version, check with Opmantek Support or grab a more recent version from GitHub:model_discovery.pl

...

For example where ASGARD is the name of your node in NMIS.

Code Block
/usr/local/nmis8nmis9/admin/model_discoverytool.pl node=ASGARDasgard model=CiscoRouter-auto common_exclude="Windows|^tcp"

...

What existing modelling is there which could be useful. For example where ASGARD is the name of your node in NMIS.

Code Block
/usr/local/nmis8nmis9/admin/model_discoverytool.pl node=ASGARDasgard file=/tmp/ASGARD.txt errors=false

...

Code Block
/usr/local/nmis8/admin/model_discoverytool.pl check=true

Debug is optional and debug=3 will reveal lots of cool information if you like data modelling.  You should check keeping an eye on these errors, examples below.

...

Code Block
/usr/local/nmis8/admin/model_discoverytool.pl models_dir=models-installdefault make_schema=1 check=true 


Dealing with Many Nodes and Many Models

...

Code Block
/usr/local/nmis9/admin/model_discoverytool.pl nodes=true

Released in NMIS 9.2.4.

...