{"id":1836,"date":"2019-08-06T13:28:13","date_gmt":"2019-08-06T04:28:13","guid":{"rendered":"https:\/\/knowhow.hirohiro716.com\/?p=1836"},"modified":"2022-05-03T13:51:16","modified_gmt":"2022-05-03T04:51:16","slug":"centos7%ef%bc%8bsmart-ups750%e3%81%a7%e5%81%9c%e9%9b%bb%e6%99%82%e3%81%ae%e8%87%aa%e5%8b%95%e3%82%b7%e3%83%a3%e3%83%83%e3%83%88%e3%83%80%e3%82%a6%e3%83%b3%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/weblog.hirohiro716.com\/?p=1836","title":{"rendered":"CentOS7\uff0bSmart-UPS750\u3067\u505c\u96fb\u6642\u306e\u81ea\u52d5\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u8a2d\u5b9a"},"content":{"rendered":"<h3>\u74b0\u5883<\/h3>\n<pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\r\n\u30fb CentOS7 \u00d7 2\u53f0\r\n\u30fb APC Smart-UPS 750 LCD 100V SMT750J E \u00d7 1\u53f0\r\n\u30fb USB\u30b1\u30fc\u30d6\u30eb\u3067\u63a5\u7d9a\r\n<\/pre>\n<h3>\u30d7\u30e9\u30a4\u30de\u30ea\u30fc\u8a2d\u5b9a<\/h3>\n<p>UPS\u3092USB\u3067\u63a5\u7d9a\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u306bapcupsd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# yum install epel-release\r\n# yum install apcupsd\r\n<\/pre>\n<p>\u8a8d\u8b58\u3055\u308c\u3066\u3044\u308b\u30c7\u30d0\u30a4\u30b9\u3092\u78ba\u8a8d\u3059\u308b\u3002<br \/>\n\u203bhiddev0\u301c15<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ dmesg\r\n<\/pre>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u4e0b\u8a18\u306e\u7b87\u6240\u3092\u7de8\u96c6\u3059\u308b\u3002DEVICE\u306e\u756a\u53f7\u306f\u524d\u306e\u624b\u9806\u3067\u78ba\u8a8d\u3057\u305f\u756a\u53f7\u306b\u3002<\/p>\n<pre class=\"brush: plain; title: \/etc\/apcupsd\/apcupsd.conf; notranslate\" title=\"\/etc\/apcupsd\/apcupsd.conf\">\r\nUPSCABLE usb\r\nUPSTYPE usb\r\nDEVICE \/dev\/usb\/hiddev0\u301c15\r\nNISIP 0.0.0.0\r\nTIMEOUT 90\r\n<\/pre>\n<p>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306b\u4f8b\u5916\u3092\u767b\u9332\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# firewall-cmd --permanent --add-port=3551\/tcp\r\n# firewall-cmd --reload\r\n<\/pre>\n<p>\u30b5\u30fc\u30d3\u30b9\u3092\u6709\u52b9\u5316\u3057\u3066\u8d77\u52d5\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# systemctl enable apcupsd\r\n# systemctl start apcupsd\r\n<\/pre>\n<p>\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u3066STATUS\u304cONLINE\u3068\u306a\u3063\u3066\u3044\u308c\u3070\u6b63\u5e38\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ apcaccess\r\n<\/pre>\n<h3>\u30bb\u30ab\u30f3\u30c0\u30ea\u30fc\u8a2d\u5b9a<\/h3>\n<p>\u30bb\u30ab\u30f3\u30c0\u30ea\u30fc\u30b5\u30fc\u30d0\u30fc\u306b\u3082apcupsd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# yum install epel-release\r\n# yum install apcupsd\r\n<\/pre>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u4e0b\u8a18\u306e\u7b87\u6240\u3092\u7de8\u96c6\u3059\u308b\u3002DEVICE\u306b\u306f\u30d7\u30e9\u30a4\u30de\u30ea\u30fc\u306eIP\u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u756a\u53f7\u3092\u6307\u5b9a\u3002<\/p>\n<pre class=\"brush: plain; title: \/etc\/apcupsd\/apcupsd.conf; notranslate\" title=\"\/etc\/apcupsd\/apcupsd.conf\">\r\nUPSCABLE ether\r\nUPSTYPE net\r\nDEVICE 192.168.0.10:3551\r\nTIMEOUT 60\r\n<\/pre>\n<p>\u30b5\u30fc\u30d3\u30b9\u3092\u6709\u52b9\u5316\u3057\u3066\u8d77\u52d5\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# systemctl enable apcupsd\r\n# systemctl start apcupsd\r\n<\/pre>\n<p>\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u3066STATUS\u304cONLINE\u3068\u306a\u3063\u3066\u3044\u308c\u3070\u6b63\u5e38\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ apcaccess\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u74b0\u5883 \u30fb CentOS7 \u00d7 2\u53f0 \u30fb APC Smart-UPS 750 LCD 100V SMT750J E \u00d7 1\u53f0 \u30fb USB\u30b1\u30fc\u30d6\u30eb\u3067\u63a5\u7d9a \u30d7\u30e9\u30a4\u30de\u30ea\u30fc\u8a2d\u5b9a UPS\u3092USB\u3067\u63a5\u7d9a\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u306bapcupsd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-1836","post","type-post","status-publish","format-standard","hentry","category-centos"],"views":2939,"_links":{"self":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts\/1836","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1836"}],"version-history":[{"count":5,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts\/1836\/revisions"}],"predecessor-version":[{"id":2125,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts\/1836\/revisions\/2125"}],"wp:attachment":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1836"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1836"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}