.\/lnms device:add<\/strong><\/code> command to add the hosts to LibreNMS server.<\/li>\n<\/ul>\n\n\n\nYou can see how to use this command by reading the help page.<\/p>\n\n\n\n
.\/lnms device:add --help<\/code><\/pre>\n\n\n\n\nDescription:\n Add a new device\n\nUsage:\n device:add [options] [--] \n\nArguments:\n device spec Hostname or IP to add\n\nOptions:\n -1, --v1 Use SNMP v1\n -2, --v2c Use SNMP v2c\n -3, --v3 Use SNMP v3\n -c, --community=COMMUNITY SNMP v1 or v2 community\n -r, --port=PORT SNMP transport port [default: 161]\n -t, --transport=TRANSPORT Transport to connect to the device [udp, udp6, tcp, tcp6] [default: \"udp\"]\n -d, --display-name=DISPLAY-NAME A string to display as the name of this device, defaults to hostname.\n May be a simple template using replacements: {{ $hostname }}, {{ $sysName }}, {{ $sysName_fallback }}, {{ $ip }}\n -u, --security-name=SECURITY-NAME SNMPv3 security username [default: \"root\"]\n -A, --auth-password=AUTH-PASSWORD SNMPv3 authentication password\n -a, --auth-protocol=AUTH-PROTOCOL SNMPv3 authentication protocol [SHA, SHA-224, SHA-256, SHA-384, SHA-512, MD5] [default: \"MD5\"]\n -X, --privacy-password=PRIVACY-PASSWORD SNMPv3 privacy password\n -x, --privacy-protocol=PRIVACY-PROTOCOL SNMPv3 privacy protocol [AES, AES-192, AES-256, AES-256-C, DES] [default: \"AES\"]\n -f, --force Just add the device, do not make any safety checks\n -b, --ping-fallback Add the device as ping only if it does not respond to SNMP\n -g, --poller-group=POLLER-GROUP commands.device:add.options.poller-group [default: 0]\n -p, --port-association-mode=PORT-ASSOCIATION-MODE Sets how ports are mapped. ifName is suggested for Linux\/Unix [ifIndex, ifName, ifDescr, ifAlias] [default: \"ifIndex\"]\n -P, --ping-only Add a ping only device\n -o, --os=OS Ping only: specify OS\n -w, --hardware=HARDWARE Ping only: specify hardware\n -s, --sysName=SYSNAME Ping only: specify sysName\n -h, --help Display help for the given command. When no command is given display help for the list command\n -q, --quiet Do not output any message\n -V, --version Display this application version\n --ansi|--no-ansi Force (or disable --no-ansi) ANSI output\n -n, --no-interaction Do not ask any interactive question\n --env[=ENV] The environment the command should run under\n -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n<\/code><\/pre>\n\n\n\n\nAdd SNMP v2c Host via Command Line<\/li>\n<\/ul>\n\n\n\nIf your host is using SNMP v2c, then run the command below to add it to LibreNMS server. Replace the string<\/strong> and the IP address<\/strong> accordingly.<\/p>\n\n\n\n.\/lnms device:add -2 -c Ex@mPL3 -r 161 -t udp 192.168.60.22<\/code><\/pre>\n\n\n\nSample output;<\/p>\n\n\n\n
Added device 192.168.60.22 (4)<\/code><\/pre>\n\n\n\nYou can remove the device using .\/lnms device:remove<\/code>.<\/p>\n\n\n\n.\/lnms device:remove --help<\/code><\/pre>\n\n\n\nYou can remove the device using .\/lnms device:rename<\/code>.<\/p>\n\n\n\n.\/lnms device:rename --help<\/code><\/pre>\n\n\n\n\nAdd SNMP v2 Host via Command Line<\/li>\n<\/ul>\n\n\n\nTo add SNMP v3 host via command line, run the command below;<\/p>\n\n\n\n
.\/lnms device:add -3 -u snmpadmin -A STrP@SSWRD -a SHA -X STr0ngP@SSWRD -x AES -r 161 -t udp 192.168.58.26<\/code><\/pre>\n\n\n\nReplace the username, authentication password\/protocol, privacy password\/protocol, host IP accordingly.<\/strong><\/p>\n\n\n\nYou can then go back to the dashboard to view collected details about your hosts.<\/p>\n\n\n\n
Sample memory health status.<\/p>\n\n\n\n
<\/figure><\/div><\/a><\/div>\n\n\n\nYou can also add the dashboard for various events under Overview > Dashboards<\/strong>.<\/p>\n\n\n\nThat marks the end of our tutorial on how to monitor remote hosts with LibreNMS server.<\/p>\n","protected":false},"excerpt":{"rendered":"
In this tutorial, you will learn how to add hosts to LibreNMS server for monitoring. LibreNMS is a fully featured MySQL\/PHP and SNMP based network monitoring<\/p>\n","protected":false},"author":1,"featured_media":12965,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[72,121],"tags":[5338,5286,5288,5289,5337],"class_list":["post-13027","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-monitoring","category-howtos","tag-add-hosts-for-monitoring-librenms","tag-add-hosts-to-librenms-server","tag-librenms-add-hosts-via-command-line","tag-librenms-add-hosts-via-web-ui","tag-lnms-deviceadd","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/13027"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=13027"}],"version-history":[{"count":3,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/13027\/revisions"}],"predecessor-version":[{"id":20578,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/13027\/revisions\/20578"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/12965"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=13027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=13027"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=13027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}