<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://it-arts.net/index.php?action=history&amp;feed=atom&amp;title=LibreNMS_-_LNMS_Command_Line_Utility</id>
	<title>LibreNMS - LNMS Command Line Utility - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://it-arts.net/index.php?action=history&amp;feed=atom&amp;title=LibreNMS_-_LNMS_Command_Line_Utility"/>
	<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=LibreNMS_-_LNMS_Command_Line_Utility&amp;action=history"/>
	<updated>2026-05-02T18:45:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://it-arts.net/index.php?title=LibreNMS_-_LNMS_Command_Line_Utility&amp;diff=1048&amp;oldid=prev</id>
		<title>Admin: Text replacement - &quot;Category:Wiki&quot; to &quot;Category:Wiki

&#039;&#039;&#039;&#039;&#039;[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]&#039;&#039;&#039;&#039;&#039;
&quot;</title>
		<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=LibreNMS_-_LNMS_Command_Line_Utility&amp;diff=1048&amp;oldid=prev"/>
		<updated>2026-01-17T08:35:09Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;&lt;a href=&quot;/index.php/Category:Wiki&quot; title=&quot;Category:Wiki&quot;&gt;Category:Wiki&lt;/a&gt;&amp;quot; to &amp;quot;&lt;a href=&quot;/index.php/Category:Wiki&quot; title=&quot;Category:Wiki&quot;&gt;Category:Wiki&lt;/a&gt;  &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; &amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:35, 17 January 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Wiki]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Wiki]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&#039;&#039;[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]&#039;&#039;&#039;&#039;&#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Overview ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Overview ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://it-arts.net/index.php?title=LibreNMS_-_LNMS_Command_Line_Utility&amp;diff=497&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;Category:Wiki  == Overview == `lnms` is a command-line interface to interact with LibreNMS. The command is a wrapper around the core application, providing functionality to automate or quickly perform common tasks without the need for the web interface.  This command is typically used on systems running LibreNMS where administrators may need to troubleshoot, configure, or automate tasks in a Linux environment.  == Basic Command Syntax == The basic syntax for using th...&quot;</title>
		<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=LibreNMS_-_LNMS_Command_Line_Utility&amp;diff=497&amp;oldid=prev"/>
		<updated>2025-12-14T07:50:43Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php/Category:Wiki&quot; title=&quot;Category:Wiki&quot;&gt;Category:Wiki&lt;/a&gt;  == Overview == `lnms` is a command-line interface to interact with LibreNMS. The command is a wrapper around the core application, providing functionality to automate or quickly perform common tasks without the need for the web interface.  This command is typically used on systems running LibreNMS where administrators may need to troubleshoot, configure, or automate tasks in a Linux environment.  == Basic Command Syntax == The basic syntax for using th...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Wiki]]&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
`lnms` is a command-line interface to interact with LibreNMS. The command is a wrapper around the core application, providing functionality to automate or quickly perform common tasks without the need for the web interface.&lt;br /&gt;
&lt;br /&gt;
This command is typically used on systems running LibreNMS where administrators may need to troubleshoot, configure, or automate tasks in a Linux environment.&lt;br /&gt;
&lt;br /&gt;
== Basic Command Syntax ==&lt;br /&gt;
The basic syntax for using the `lnms` command is:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms &amp;lt;command&amp;gt; [options] [arguments]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where `&amp;lt;command&amp;gt;` is one of the subcommands (e.g., `device`, `alert`, `user`) and the options/arguments modify the behavior of the command.&lt;br /&gt;
&lt;br /&gt;
== Common Commands ==&lt;br /&gt;
&lt;br /&gt;
=== Device Management ===&lt;br /&gt;
The `device` subcommand is used to manage devices within LibreNMS.&lt;br /&gt;
&lt;br /&gt;
==== List Devices ====&lt;br /&gt;
To list all devices in the LibreNMS database:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms device list&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will return a list of all devices, including their names, IPs, and status.&lt;br /&gt;
&lt;br /&gt;
==== Add a Device ====&lt;br /&gt;
To add a device to LibreNMS, use the `add` subcommand with the device IP or hostname:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms device add &amp;lt;hostname_or_ip&amp;gt; --community &amp;lt;community_string&amp;gt; --snmp-version &amp;lt;version&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms device add 192.168.1.1 --community public --snmp-version v2c&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This command adds the device with IP `192.168.1.1` using the `public` SNMP community string and SNMP version 2c.&lt;br /&gt;
&lt;br /&gt;
==== Remove a Device ====&lt;br /&gt;
To remove a device from LibreNMS:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms device remove &amp;lt;device_id&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can find the device ID by running `lnms device list`.&lt;br /&gt;
&lt;br /&gt;
=== Alert Management ===&lt;br /&gt;
The `alert` subcommand allows interaction with LibreNMS alerts.&lt;br /&gt;
&lt;br /&gt;
==== List Alerts ====&lt;br /&gt;
To view the current active alerts:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms alert list&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This command displays a list of all active alerts, including their status and severity.&lt;br /&gt;
&lt;br /&gt;
==== Acknowledge an Alert ====&lt;br /&gt;
To acknowledge a specific alert:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms alert ack &amp;lt;alert_id&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will mark the alert with the given ID as acknowledged, typically meaning it has been reviewed or addressed.&lt;br /&gt;
&lt;br /&gt;
==== Clear an Alert ====&lt;br /&gt;
To clear an alert after it has been resolved:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms alert clear &amp;lt;alert_id&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms alert clear 101&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This command clears alert ID `101`.&lt;br /&gt;
&lt;br /&gt;
=== User Management ===&lt;br /&gt;
The `user` subcommand provides tools for managing users within LibreNMS.&lt;br /&gt;
&lt;br /&gt;
==== Add a User ====&lt;br /&gt;
To add a new user:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms user add &amp;lt;username&amp;gt; --password &amp;lt;password&amp;gt; --role &amp;lt;role&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms user add admin --password StrongPassword123 --role admin&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This creates a new user `admin` with the specified password and assigns the user the `admin` role.&lt;br /&gt;
&lt;br /&gt;
==== List Users ====&lt;br /&gt;
To list all users:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms user list&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will display all the users in LibreNMS, along with their roles.&lt;br /&gt;
&lt;br /&gt;
==== Remove a User ====&lt;br /&gt;
To remove a user from LibreNMS:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms user remove &amp;lt;username&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms user remove admin&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This removes the user `admin`.&lt;br /&gt;
&lt;br /&gt;
=== Service Management ===&lt;br /&gt;
The `service` subcommand manages LibreNMS services.&lt;br /&gt;
&lt;br /&gt;
==== Start a Service ====&lt;br /&gt;
To start a specific service (e.g., the poller):&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms service start &amp;lt;service_name&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms service start poller&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This starts the poller service.&lt;br /&gt;
&lt;br /&gt;
==== Stop a Service ====&lt;br /&gt;
To stop a service:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms service stop &amp;lt;service_name&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms service stop poller&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This stops the poller service.&lt;br /&gt;
&lt;br /&gt;
==== Check Service Status ====&lt;br /&gt;
To check the status of a service:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms service status &amp;lt;service_name&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms service status poller&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This displays the current status of the poller service.&lt;br /&gt;
&lt;br /&gt;
=== Configuration Management ===&lt;br /&gt;
The `config` subcommand allows managing various system configuration settings.&lt;br /&gt;
&lt;br /&gt;
==== View Current Configuration ====&lt;br /&gt;
To view the current system configuration:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms config show&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will display the current configuration settings for LibreNMS.&lt;br /&gt;
&lt;br /&gt;
==== Edit Configuration ====&lt;br /&gt;
To edit the LibreNMS configuration:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms config edit&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This opens the configuration editor, allowing you to modify settings like database connections, poller settings, and other system parameters.&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery ===&lt;br /&gt;
The `discover` subcommand is used to run network discovery.&lt;br /&gt;
&lt;br /&gt;
==== Run Discovery ====&lt;br /&gt;
To run a network discovery scan:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms discover --force&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This command forces a discovery of all devices, even if discovery is already scheduled or completed recently.&lt;br /&gt;
&lt;br /&gt;
==== Run Discovery for Specific IP Range ====&lt;br /&gt;
To run discovery for a specific IP range:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms discover --ip &amp;lt;start_ip&amp;gt; &amp;lt;end_ip&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms discover --ip 192.168.1.1 192.168.1.255&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will discover devices within the IP range `192.168.1.1` to `192.168.1.255`.&lt;br /&gt;
&lt;br /&gt;
== Advanced Features ==&lt;br /&gt;
&lt;br /&gt;
=== Data Collection ===&lt;br /&gt;
LibreNMS can be configured to collect additional data points, such as syslog entries, SNMP traps, or custom device data. To enable advanced data collection features, use the following:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms config set collect_syslog true&lt;br /&gt;
lnms config set collect_traps true&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These settings enable the collection of syslog messages and SNMP traps from devices.&lt;br /&gt;
&lt;br /&gt;
=== Poller Management ===&lt;br /&gt;
LibreNMS uses pollers to gather performance metrics and device status information. You can scale and manage pollers via the following commands:&lt;br /&gt;
&lt;br /&gt;
==== Check Poller Status ====&lt;br /&gt;
To check the status of the pollers:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms poller status&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Run a Specific Poller ====&lt;br /&gt;
To run a specific poller manually:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms poller run &amp;lt;poller_id&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
lnms poller run 1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This manually triggers poller ID `1`.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>