Accessing the Karaf shell

OpenNMS embeds Karaf, which provides an SSH shell that can be used for interacting with the system. We take advantage of this shell to provide a number of utilities with functions that range from configuration validation, ad-hoc polling, performance testing, etc…

By default, the shell is bound to port 8101 on the loopback address of the OpenNMS server. It uses the same authentication subsystem as the OpenNMS Web UI and only allows users with the ADMIN role to log-in.

From the OpenNMS server run ssh -p 8101 admin@localhost and use the password from the admin user when prompted.

1 Like

As of Horizon 23.0.2 (see PR #2245), you can now run $OPENNMS_HOME/bin/opennms ssh to get the shell prompt.

Moved to Karaf CLI Cheatsheet