{"id":2485,"date":"2019-06-26T16:15:06","date_gmt":"2019-06-26T16:15:06","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=2485"},"modified":"2019-06-26T16:15:37","modified_gmt":"2019-06-26T16:15:37","slug":"librenms-dump-devices-in-mysql-database","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/librenms-dump-devices-in-mysql-database\/","title":{"rendered":"LibreNMS dump devices in MySQL database"},"content":{"rendered":"\n<p>All the devices are stored in the librenms datebase devices table.<\/p>\n\n\n\n<p>You can dump all of them with the following command from a shell prompt.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo mysql -u librenms  -p librenms -e \"select hostname,sysName from devices\"<\/pre>\n\n\n\n<p>Example output<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[jim@localhost ~]$ sudo mysql -p librenms -e \"select hostname,sysName from devices\"\n Enter password:\n +----------------------------------------+--------------------------------+\n | hostname                               | sysName                        |\n +----------------------------------------+--------------------------------+\n | 192.168.1.1                            | linksys                        |\n | 192.168.1.9                            | wifi-unifi                     |\n +----------------------------------------+--------------------------------+<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>All the devices are stored in the librenms datebase devices table. You can dump all of them with the following command from a shell prompt. sudo mysql -u librenms -p librenms -e &#8220;select hostname,sysName from devices&#8221; Example output [jim@localhost ~]$ &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/librenms-dump-devices-in-mysql-database\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[352,1],"tags":[138,353,134,136],"class_list":["post-2485","post","type-post","status-publish","format-standard","hentry","category-librenms","category-uncategorized","tag-database","tag-librenms","tag-monitoring","tag-mysql-2"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=2485"}],"version-history":[{"count":2,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2485\/revisions"}],"predecessor-version":[{"id":2487,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2485\/revisions\/2487"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=2485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=2485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=2485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}