Getting Started With the CLI Utility


Install the opennms project globally, using npm.

  1. install Node.js (Node.js comes with npm)

  2. run npm install -g opennms

  3. run opennms --help for a list of available commands


Before you can query your OpenNMS server, you must first configure the command-line tool to know where to find it.


opennms connect --username <your-username> --password <your-password> https://your-opennms-server/opennms

This will store a configuration file that the opennms command will read automatically when you run it.