{"id":1014,"date":"2011-04-27T01:05:23","date_gmt":"2011-04-26T16:05:23","guid":{"rendered":"http:\/\/blog.isnext.net\/issy\/?p=1014"},"modified":"2011-04-27T01:07:09","modified_gmt":"2011-04-26T16:07:09","slug":"centos5%e3%81%a7upscp750swlt-jp%e3%82%92%e4%bd%bf%e3%81%86%e3%83%a1%e3%83%a2","status":"publish","type":"post","link":"https:\/\/blog.isnext.net\/issy\/archives\/1014","title":{"rendered":"CentOS5\u3067UPS(CP750SWLT JP)\u3092\u4f7f\u3046\u30e1\u30e2"},"content":{"rendered":"<p><strong>\u25a0CentOS5\u3067UPS(CP750SWLT JP)\u3092\u4f7f\u3046\u30e1\u30e2<\/strong><br \/>\n\u3000\u5148\u65e5\u8cfc\u5165\u3057\u305f<a href=\"http:\/\/www.cyberpower.jp\/products\/ups_systems\/cr\/cr750.htm\">CyberPower\u793e CP750SWLT JP<\/a>\u3092\u5f53\u521d\u60f3\u5b9a\u306eCentOS5.6\u3067\u7a3c\u50cd\u4e2d\u306e\u30b5\u30fc\u30d0\u306b\u8a2d\u7f6e\u3057\u305f\u306e\u3067\u4f5c\u696d\u306e\u30e1\u30e2\u3002UPS\u8a2d\u7f6e\u306e\u30e1\u30e2\u306f<a href=\"https:\/\/blog.isnext.net\/issy\/archives\/988\">MacOSX\u7528\u306e\u8a18\u4e8b<\/a>\u3092\u53c2\u7167\u3002<\/p>\n<p><strong>\u25a0Linux\u7528\u76e3\u8996\u30bd\u30d5\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/strong><br \/>\n\u3000\u4ee5\u4e0b\u306eURL\u304b\u3089\u5bfe\u5fdc\u76e3\u8996\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<br \/>\n\u3000<a href=\"http:\/\/www.cyberpower.jp\/products\/software\/pp_linux.htm\">http:\/\/www.cyberpower.jp\/products\/software\/pp_linux.htm<\/a><\/p>\n<p>\u3000\u4eca\u56de\u306fCentOS 64bit\u306a\u306e\u3067PowerPanel\u00ae for Linux .rpm 1.2 (Linux 64 bit)\u3092\u4f7f\u7528\u3059\u308b\u3002<br \/>\n\u3000\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306e\u30ea\u30f3\u30af\u306fWindows\u7cfb\u306b\u3042\u308a\u304c\u3061\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7684\u306b\u3061\u3087\u3063\u3068\u5927\u4e08\u592b\u304b\u3068\u7591\u3044\u305f\u304f\u306a\u308b\u611f\u3058\u306a\u306e\u3060\u304c\u305d\u3053\u306f\u30b9\u30eb\u30fc\u3057\u3066\u304a\u304f\u3002wget\u3067\u306f\u53d6\u5f97\u3067\u304d\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u30d6\u30e9\u30a6\u30b6\u7b49\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304a\u304f\u3002<\/p>\n<p>\u3000UPS\u3068\u30b5\u30fc\u30d0\u672c\u4f53\u3092USB\u30b1\u30fc\u30d6\u30eb\u3067\u63a5\u7d9a\u3057\u3066\u304a\u304f<\/p>\n<p><strong>\u25a0\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><br \/>\n\u3000rpm\u3067\u30b7\u30f3\u30d7\u30eb\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3046\u3060\u3051\u3067OK<br \/>\n\u3000# rpm -ivh PPL-1.2-0.x86_64.rpm<\/p>\n<p><strong>\u25a0\u4f7f\u3044\u65b9<\/strong><br \/>\n\uff11\uff09\u52d5\u4f5c\u72b6\u614b\u306e\u78ba\u8a8d<br \/>\n\u3000# \/usr\/sbin\/pwrstat -status<\/p>\n<p>\u3000\u51fa\u529b\u30b5\u30f3\u30d7\u30eb<br \/>\n\u3000[code]The UPS information shows as following:<\/p>\n<p>\tProperties:<br \/>\n\t\tModel Name&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. CP750SWLT JP<br \/>\n\t\tFirmware Number&#8230;&#8230;&#8230;&#8230;.. CREA104-3I1<br \/>\n\t\tRating Voltage&#8230;&#8230;&#8230;&#8230;&#8230; 100 V<br \/>\n\t\tRating Power&#8230;&#8230;&#8230;&#8230;&#8230;.. 525 Watt<\/p>\n<p>\tCurrent UPS status:<br \/>\n\t\tState&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; Normal<br \/>\n\t\tPower Supply by&#8230;&#8230;&#8230;&#8230;.. Utility Power<br \/>\n\t\tUtility Voltage&#8230;&#8230;&#8230;&#8230;.. 101 V<br \/>\n\t\tOutput Voltage&#8230;&#8230;&#8230;&#8230;&#8230; 101 V<br \/>\n\t\tBattery Capacity&#8230;&#8230;&#8230;&#8230;. 100 %<br \/>\n\t\tRemaining Runtime&#8230;&#8230;&#8230;&#8230; 46 min.<br \/>\n\t\tLoad&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. 73 Watt(14 %)<br \/>\n\t\tLine Interaction&#8230;&#8230;&#8230;&#8230;. None<br \/>\n\t\tTest Result&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; Passed at 2011\/04\/24 05:17:02<br \/>\n\t\tLast Power Event&#8230;&#8230;&#8230;&#8230;. Blackout at 2011\/04\/24 05:19:55[\/code]<\/p>\n<p>\uff12\uff09\u8a2d\u5b9a\u306e\u78ba\u8a8d<br \/>\n\u3000# \/usr\/sbin\/pwrstat -Config<\/p>\n<p>\u3000\u51fa\u529b\u30b5\u30f3\u30d7\u30eb<br \/>\n\u3000[code]Daemon Configuration:<\/p>\n<p>\u3000Alarm &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. On<\/p>\n<p>\u3000Action for Power Failure:<\/p>\n<p>\tDelay time since Power failure &#8230;&#8230;&#8230;&#8230;. 60 sec.<br \/>\n\tRun script command &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. On<br \/>\n\tPath of script command &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; \/etc\/pwrstatd-powerfail.sh<br \/>\n\tDuration of command running &#8230;&#8230;&#8230;&#8230;&#8230;. 0 sec.<br \/>\n\tEnable shutdown system &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; On<\/p>\n<p>\u3000Action for Battery Low:<\/p>\n<p>\tDelay time since Battery Low &#8230;&#8230;&#8230;&#8230;&#8230; 5 sec.<br \/>\n\tRun script command &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. On<br \/>\n\tPath of command &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. \/etc\/pwrstatd-lowbatt.sh<br \/>\n\tDuration of command running &#8230;&#8230;&#8230;&#8230;&#8230;. 0 sec.<br \/>\n\tEnable shutdown system &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; On[\/code]<\/p>\n<p>\uff13\uff09\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240<br \/>\n\u3000\/etc\/pwrstatd.conf<\/p>\n<p>\uff14\uff09\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240<br \/>\n\u3000\/var\/log\/pwrstatd.log<\/p>\n<p>\uff15\uff09\u30a2\u30e9\u30fc\u30e0\u306eon\/off<br \/>\n\u3000# pwrstat -alarm on<br \/>\n\u3000# pwrstat -alarm off<\/p>\n<p>\uff16\uff09\u30a2\u30e9\u30fc\u30e0\u306e\u4e00\u6642\u505c\u6b62\uff08\u6b21\u56de\u30a4\u30d9\u30f3\u30c8\u3067\u306f\u9cf4\u52d5\u3059\u308b\uff09<br \/>\n\u3000# pwrstat -mute<\/p>\n<p>\uff17\uff09\u30d0\u30c3\u30c6\u30ea\u30fc\u30c6\u30b9\u30c8\u306e\u5b9f\u884c<br \/>\n\u3000# pwrstat -test<\/p>\n<p>\uff18\uff09\u96fb\u6e90\u906e\u65ad\u6642\u306e\u30ed\u30b0\u30b5\u30f3\u30d7\u30eb<br \/>\n\u30002011\/04\/24 05:20:52 AM  The UPS will be turned off at 10 min., 0 sec. later.<br \/>\n\u30002011\/04\/24 05:20:52 AM  Begin to shutdown PC immediately!<br \/>\n\u30002011\/04\/24 05:21:02 AM  Daemon stops its service.<\/p>\n<p>\uff19\uff09\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u306e\u8a2d\u5b9a\u5909\u66f4\u30b5\u30f3\u30d7\u30eb<br \/>\n\u3000# pwrstat -pwrfail -delay 60 -active on -cmd \/etc\/pwrstatd-powerfail.sh -duration 1 -shutdown on<\/p>\n<p>10\uff09pwrstatd-powerfail.sh\u3067\u8a2d\u5b9a\u3067\u304d\u308b\u3053\u3068<br \/>\n\u3000\u6a19\u6e96\u3067\u306f\u30e1\u30fc\u30eb\u9001\u4fe1\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5909\u66f4\u3002<\/p>\n<p>\u3000# Enable to send e-mail<br \/>\n\u3000ENABLE_EMAIL=no<\/p>\n<p>\u3000# Change your name at this itme.<br \/>\n\u3000RECEIPT_NAME=&#8221;user name&#8221;<\/p>\n<p>\u3000# Change mail receiver address at this itme.<br \/>\n\u3000RECEIPT_ADDRESS=user_name@company.com<\/p>\n<p>\u3000# Change mail sender address at this itme.<br \/>\n\u3000SENDER_ADDRESS=user_name@company.com<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u25a0CentOS5\u3067UPS(CP750SWLT JP)\u3092\u4f7f\u3046\u30e1\u30e2 \u3000\u5148\u65e5\u8cfc\u5165\u3057\u305fCyberPower\u793e CP750SWLT JP\u3092\u5f53\u521d\u60f3\u5b9a\u306eCentOS5.6\u3067\u7a3c\u50cd\u4e2d\u306e\u30b5\u30fc\u30d0\u306b\u8a2d\u7f6e\u3057\u305f\u306e\u3067\u4f5c\u696d\u306e\u30e1\u30e2\u3002UPS\u8a2d\u7f6e\u306e\u30e1\u30e2\u306fMa &hellip; <a href=\"https:\/\/blog.isnext.net\/issy\/archives\/1014\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;CentOS5\u3067UPS(CP750SWLT JP)\u3092\u4f7f\u3046\u30e1\u30e2&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[20,116],"class_list":["post-1014","post","type-post","status-publish","format-standard","hentry","category-linux","tag-centos","tag-ups"],"_links":{"self":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/1014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/comments?post=1014"}],"version-history":[{"count":3,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/1014\/revisions"}],"predecessor-version":[{"id":1017,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/1014\/revisions\/1017"}],"wp:attachment":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/media?parent=1014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/categories?post=1014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/tags?post=1014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}