{"id":3787,"date":"2020-12-22T20:32:23","date_gmt":"2020-12-23T02:32:23","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=3787"},"modified":"2020-12-22T20:34:05","modified_gmt":"2020-12-23T02:34:05","slug":"show-down-devices-from-ssh-librenms","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/show-down-devices-from-ssh-librenms\/","title":{"rendered":"Show Down Devices From SSH &#8211; LibreNMS"},"content":{"rendered":"\n<p>Fortunately, it is super easy to get a list of down devices in LibreNMS.  All we need to do is a dump of the devices from MySQL.<\/p>\n\n\n\n<p>You can use the following command to print which devices are down.  Should be the same devices that show down on your dashboard.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mysql -u librenms -p librenms -e 'use librenms ; select hostname,sysName,status from devices where status=0'<\/pre>\n\n\n\n<p><em>Tip: You can change 0 to 1 to see all up devices.<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-20.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1005\" height=\"203\" src=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-20.png\" alt=\"\" class=\"wp-image-3792\" srcset=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-20.png 1005w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-20-300x61.png 300w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-20-768x155.png 768w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-20-1000x203.png 1000w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/12\/image-20-500x101.png 500w\" sizes=\"auto, (max-width: 1005px) 100vw, 1005px\" \/><\/a><figcaption>Show down devices via SSH in LibreNMS<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Fortunately, it is super easy to get a list of down devices in LibreNMS. All we need to do is a dump of the devices from MySQL. You can use the following command to print which devices are down. Should &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/show-down-devices-from-ssh-librenms\/\">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],"tags":[1148,1149,353,136],"class_list":["post-3787","post","type-post","status-publish","format-standard","hentry","category-librenms","tag-down-devices","tag-dump","tag-librenms","tag-mysql-2"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3787","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=3787"}],"version-history":[{"count":2,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3787\/revisions"}],"predecessor-version":[{"id":3795,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3787\/revisions\/3795"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=3787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=3787"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=3787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}