Skip to end of banner
Go to start of banner

The NMIS Shell

Skip to end of metadata
Go to start of metadata

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

Compare with Current View Page History

Version 1 Next »

Tired of typing long command lines when troubleshooting devices.  Introducing the NMIS Shell.

Installation

You will need to have NMIS 9.4.0 or greater.

Run the following command, the target needs to be in your PATH, so you could link it to somewhere else.

ln -s /usr/local/nmis9/bin/nmis.sh /usr/local/bin/nmis

Usage

Run a Collect with Debug3

Now you can use a much simplified syntax to collect things when the support team ask.  For example:

nmis NODENAME collect debug3

This will schedule an NMIS collect on the node named NODENAME and create a debug file in /tmp/NODENAME-timestamp.pid.log, e.g. /tmp/server1-1670882070.75145.log

The equivalent command is:

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



  • No labels