{"id":221,"date":"2010-06-22T15:56:51","date_gmt":"2010-06-22T12:56:51","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=221"},"modified":"2011-06-21T17:06:50","modified_gmt":"2011-06-21T14:06:50","slug":"%d0%bc%d0%be%d0%bd%d0%b8%d1%82%d0%be%d1%80%d0%b8%d0%bc-%d1%81%d0%be%d1%81%d1%82%d0%be%d1%8f%d0%bd%d0%b8%d0%b5-upsa","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=221","title":{"rendered":"\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 UPS&#8217;a"},"content":{"rendered":"<p>\u041f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0437\u0430\u0434\u0430\u0447\u0430 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u00a0<strong>UPS&#8217;a<\/strong>. \u0414\u0443\u043c\u0430\u044e \u044d\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0432\u0441\u0435\u043c.<\/p>\n<p>\u0421\u0442\u0435\u043d\u0434:\u00a0<strong>FreeBSD<\/strong> <strong>7.2<\/strong>,\u00a0<strong>Mustek UPS 800 AV<\/strong>,\u00a0<strong>Serial RS-232 cable (com-port)<\/strong>.<\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 &#8211; \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0430\u044f :). \u041f\u0440\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u0447\u0438\u0442\u0430\u0435\u043c \u0432\u043d\u0438\u0437\u0443, \u0440\u0430\u0437\u0434\u0435\u043b &#8220;\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b&#8221;.<\/p>\n<p><!--more--><\/p>\n<p><strong><span style=\"color: #ff0000;\">1) \u041f\u043e\u0434\u043a\u043e\u0442\u043e\u0432\u043a\u0430.<\/span><\/strong><\/p>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u00a0<strong>UPS<\/strong> \u0447\u0435\u0440\u0435\u0437 \u043a\u0430\u0431\u0435\u043b\u044c \u043a com-\u043f\u043e\u0440\u0442\u0443 \u043d\u0430 \u0441\u0435\u0440\u0432\u0430\u043a\u0435. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0447\u0442\u043e \u0441\u0435\u0440\u0432\u0430\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u0443\u0436\u0435 &#8220;\u043f\u0438\u0442\u0430\u0442\u044c\u0441\u044f&#8221; \u0447\u0435\u0440\u0435\u0437\u00a0<strong>UPS<\/strong>. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0432 \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u044c, (\u044f \u043d\u0435 \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0430\u043b \u0441\u0435\u0440\u0432\u0430\u043a, \u0443 \u043c\u0435\u043d\u044f \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e), \u0442\u0430\u043a \u043f\u0438\u0448\u0443\u0442 \u0432 \u0441\u0435\u0442\u0438.<\/p>\n<p><strong><span style=\"color: #ff0000;\">2) \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 soft&#8217;a<\/span><\/strong><span style=\"color: #ff0000;\">.<\/span><\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u043e\u0444\u0442\u0430 \u0432\u044b\u0431\u0440\u0430\u043b\u00a0<strong>nut<\/strong>, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439 \u0438 \u043c\u043e\u0434\u0435\u043b\u0435\u0439.<\/p>\n<p>\u0418\u0434\u0451\u043c \u0432 \u043f\u043e\u0440\u0442\u044b \u0438 \u0441\u0442\u0430\u0432\u0438\u043c\u00a0<strong>nut<\/strong> (\u0432 \u043f\u043e\u0440\u0442\u0430\u0445 \u043c\u043d\u043e\u0433\u043e \u0432\u0441\u044f\u043a\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043f\u043e \u0438\u043c\u0435\u043d\u0438\u00a0<strong>nut<\/strong>, \u044f \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0437 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043d\u0435 \u0442\u043e\u0442, \u0438\u0437\u00a0<strong>\/usr\/ports\/misc<\/strong> \ud83d\ude42 )<\/p>\n<p><code>#cd \/usr\/ports\/sysutils\/nut &amp;&amp; make install clean<\/code><\/p>\n<p>\u0412 \u043e\u043a\u043e\u0448\u043a\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c<\/p>\n<p><code>[X] SERIAL\u00a0 SERIAL support<br \/>\n[X] USB\u00a0\u00a0\u00a0\u00a0 USB support<br \/>\n[X] SNMP\u00a0\u00a0\u00a0 SNMP support<\/code><\/p>\n<p>\u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 &#8211; \u043f\u043e \u0436\u0435\u043b\u0430\u043d\u0438\u044e, \u0445\u043e\u0442\u044f \u0438 \u0437\u0434\u0435\u0441\u044c \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c\u00a0<strong>snmp<\/strong>, \u0435\u0441\u043b\u0438 \u0432\u044b \u0435\u0433\u043e \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u0438\u043b\u0438 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u043e\u043d\u043e \u0442\u0430\u043a\u043e\u0435.<\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f, \u0442\u044f\u043d\u0435\u0442 \u0437\u0430 \u0441\u043e\u0431\u043e\u0439 7 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 (\u043c\u043e\u0436\u0435\u0442 \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043b\u0438 \u043c\u0435\u043d\u044c\u0448\u0435, \u0441\u043c\u043e\u0442\u0440\u044f, \u0447\u0442\u043e \u0443\u0436\u0435 \u0435\u0441\u0442\u044c).<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438\u0434\u0451\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0430\u043c\u0438 (<strong>\/usr\/local\/etc\/nut<\/strong>) \u0438 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043c \u0438\u0445 \u043a \u0442\u0430\u043a\u043e\u043c\u0443 \u0432\u0438\u0434\u0443:<\/p>\n<p><code>#cat nut.conf | grep -v \"^#\"<\/code><\/p>\n<p><code>MODE = standalone<\/code><\/p>\n<p><code>#cat ups.conf | grep -v \"^#\"<\/code><\/p>\n<p><code>[mustek_ups]<br \/>\ndriver = megatec<br \/>\nport = \/dev\/cuad0<br \/>\ndesc = \"Mustek UPS\"<\/code><\/p>\n<p><code>#cat upsd.conf | grep -v \"^#\"<\/code><\/p>\n<p><code>MAXAGE 3<br \/>\nLISTEN 127.0.0.1 3493<br \/>\nMAXCONN 1024<\/code><\/p>\n<p><code>#cat upsd.users | grep -v \"^#\"<\/code><\/p>\n<p><code>[upsuser]<br \/>\npassword = upspasswd<br \/>\nupsmon master<\/code><\/p>\n<p><code>#cat upsmon.conf | grep -v \"^#\"<\/code><\/p>\n<p><code>RUN_AS_USER nutmon<br \/>\nMONITOR mustek_ups@localhost 1 upsuser upspasswd master<br \/>\nMINSUPPLIES 1<br \/>\nSHUTDOWNCMD \"\/sbin\/shutdown -p now\"<br \/>\nNOTIFYCMD \/usr\/local\/bin\/notifyme<br \/>\nPOLLFREQ 5<br \/>\nPOLLFREQALERT 5<br \/>\nHOSTSYNC 15<br \/>\nDEADTIME 15<br \/>\nNOTIFYMSG ONBATT \"Server on UPS Battery. Check power!\"<br \/>\nNOTIFYFLAG ONBATT\u00a0\u00a0\u00a0\u00a0 SYSLOG+WALL+EXEC<br \/>\nRBWARNTIME 43200<br \/>\nNOCOMMWARNTIME 300<br \/>\nFINALDELAY 5<\/code><\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043d\u0435\u00a0<strong>mustek<\/strong>, \u0442\u043e \u0443\u0437\u043d\u0430\u0442\u044c, \u043a\u0430\u043a\u043e\u0439 \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u00a0<strong>ups.conf<\/strong> \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0444\u0430\u0439\u043b\u00a0<strong>driver.list<\/strong>.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0430\u0440\u0443 \u0441\u043b\u043e\u0432 \u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0430\u0445. \u0412 \u043f\u0430\u043f\u043a\u0435 \u0435\u0441\u0442\u044c\u00a0<strong>sample<\/strong>-\u043a\u043e\u043d\u0444\u0438\u0433\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0435\u0441\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432. \u0412 \u0442\u0435\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0430\u0445, \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0441\u043b\u0435\u0434\u0435\u044e\u0449\u0435\u0435: \u043f\u0440\u0438 \u043f\u0440\u043e\u043f\u0430\u0434\u0430\u043d\u0438\u0438 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u0441\u043b\u0430\u0442\u044c \u043c\u0435\u0441\u0430\u0433\u0438 \u043d\u0430 \u043c\u044b\u043b\u043e, \u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u043b\u043e\u0433\u0438 (\u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \u0443\u043f\u0441\u0430 \u0438\u00a0<strong>messages<\/strong>, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0441\u043b\u0430\u0442\u044c \u0431\u0440\u043e\u0434\u043a\u0430\u0441\u0442\u043e\u043c \u0432\u0441\u0435\u043c \u0437\u0430\u043b\u043e\u0433\u0438\u043d\u0435\u043d\u044b\u043c \u044e\u0437\u0435\u0440\u0430\u043c \u043d\u0430 \u0441\u0435\u0440\u0432\u0430\u043a \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u044c). \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e &#8211; \u0447\u0438\u0442\u0430\u0435\u043c \u0441\u043f\u0440\u0430\u0432\u043a\u0443 \u0438 \u043f\u0440\u0430\u0432\u0438\u043c \u043f\u043e\u0434 \u0441\u0432\u043e\u0438 \u043d\u0443\u0436\u0434\u044b.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u044e\u0437\u0435\u0440\u0430\u00a0<strong>nutmon<\/strong> (\u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u044e\u0437\u0435\u0440\u0430 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c\u00a0<strong>nut<\/strong>: \u0435\u0441\u0442\u044c \u043e\u0434\u0438\u043d \u043f\u0440\u043e\u0446\u0435\u0441 \u043e\u0442 \u0440\u0443\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0442\u043e\u043c \u0441\u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c\u00a0<strong>shutdown<\/strong>, \u0430 \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 &#8211; \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043e\u0442\u00a0<strong>nutmon<\/strong>):<\/p>\n<p><code>#pw useradd -n nutmon -s \/sbin\/nologin -d \/nonexistant<\/code><\/p>\n<p>\u0412\u043e\u0442 \u0441\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 (\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043f\u0438\u0441\u0430\u043d \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435\u00a0<strong>upsmon.conf<\/strong>, \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435\u00a0<strong>NOTIFYCMD<\/strong>) (\u043d\u0435 \u0437\u0430\u0431\u0435\u0434\u044c\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u043c:\u00a0<strong>chmod +x notifyme<\/strong>):<\/p>\n<p><code>#cat \/usr\/local\/bin\/notifyme<br \/>\n#!\/bin\/sh<\/code><\/p>\n<p><code>echo 'Power Down on host 10.0.3.33' | mail -s 'Mustek PowerMust 800 USB' root@domain.com<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0432\u00a0<strong>\/etc\/rc.conf<\/strong>:<\/p>\n<p><code>nut_enable=\"YES\"<br \/>\nnut_upslog_enable=\"YES\"<br \/>\nnut_upsmon_enable=\"YES\"<\/code><\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u0434\u0435\u043c\u043e\u043d\u043e\u0432 \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043b\u043e\u0433\u0438:<\/p>\n<p><code>#tail -f \/var\/log\/ups.log<br \/>\n20091019 120052 NA NA NA [NA] NA NA<br \/>\n20091019 120552 NA NA NA [NA] NA NA<br \/>\n20091019 121052 NA NA NA [NA] NA NA<br \/>\n20091019 121014 NA NA NA [NA] NA NA<\/code><\/p>\n<p><code>Broadcast Message from skeletor@srv-test<br \/>\n(no tty) at 12:12 EEST...<\/code><\/p>\n<p><code>Communications with UPS mustek_ups@localhost lost<\/code><\/p>\n<p><code>Broadcast Message from skeletor@srv-test<br \/>\n(no tty) at 12:12 EEST...<\/code><\/p>\n<p><code>Communications with UPS mustek_ups@localhost established<\/code><\/p>\n<p><code>Broadcast Message from skeletor@srv-test<br \/>\n(no tty) at 12:13 EEST...<\/code><\/p>\n<p><code>Server on UPS Battery. Check power!<\/code><\/p>\n<p><code>Broadcast Message from skeletor@srv-test<br \/>\n(no tty) at 12:14 EEST...<\/code><\/p>\n<p><code>UPS mustek_ups@localhost on line power<\/code><\/p>\n<p><code>20091019 121514 NA NA NA [NA] NA NA<br \/>\n20091019 122014 NA NA NA [NA] NA NA<\/code><\/p>\n<p>\u0410 \u0432\u043e\u0442 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432\u00a0<strong>\/var\/log\/messages<\/strong>:<\/p>\n<p><code>Broadcast Message from skeletor@srv-test<br \/>\n(no tty) at 12:12 EEST...<\/code><\/p>\n<p><code>Communications with UPS mustek_ups@localhost lost<\/code><\/p>\n<p><code>Oct 19 12:12:06 srv-test upsd[38248]: UPS data is no longer stale<br \/>\nOct 19 12:12:11 srv-test upsmon[38446]: Communications with UPS mustek_ups@localhost established<\/code><\/p>\n<p><code>Broadcast Message from skeletor@srv-test<br \/>\n(no tty) at 12:12 EEST...<\/code><\/p>\n<p><code>Communications with UPS mustek_ups@localhost established<\/code><\/p>\n<p><code>Oct 19 12:13:11 srv-test upsmon[38446]: Server on UPS Battery. Check power!<\/code><\/p>\n<p><code>Broadcast Message from skeletor@srv-test<br \/>\n(no tty) at 12:13 EEST...<br \/>\n<\/code><br \/>\n<code>Server on UPS Battery. Check power!<\/code><\/p>\n<p><code>Oct 19 12:14:41 srv-test upsmon[38446]: UPS mustek_ups@localhost on line power<\/code><\/p>\n<p><code>Broadcast Message from skeletor@srv-test<br \/>\n(no tty) at 12:14 EEST...<\/code><\/p>\n<p><code>UPS mustek_ups@localhost on line power<\/code><\/p>\n<p>\u0412\u0438\u0434\u043d\u043e, \u0433\u0434\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u043b\u043e\u0441\u044c \u043f\u0438\u0442\u0430\u043d\u0438\u0435, \u0430 \u0433\u0434\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u043b\u043e\u0441\u044c.<\/p>\n<p><strong><em><span style=\"color: #ff6600;\">\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/span><\/em><\/strong><\/p>\n<p>\u0427\u0442\u043e \u0431\u044b \u043d\u0435 \u0431\u044b\u043b\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0432\u0438\u0434\u0430<strong> [NA] [NA]<\/strong> \u0432 <strong>\/etc\/rc.conf<\/strong> \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0442\u0430\u043a\u043e\u0435:<\/p>\n<p><code>nut_upslog_ups=\"mustek_ups@localhost\"<\/code><\/p>\n<p><strong><span style=\"color: #ff6600;\"><em><span style=\"color: #ff6600;\">\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b.<\/span><\/em><\/span><\/strong><\/p>\n<p>\u041f\u0440\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438\u00a0<strong>APC Smart UPS<\/strong>, \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u043e, \u0447\u0442\u043e \u0423\u041f\u0421 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u043b\u0441\u044f \u043f\u0440\u0438\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u043a\u0430\u0431\u0435\u043b\u044f \u0432 com-\u043f\u043e\u0440\u0442. \u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0447\u0435\u0440\u0435\u0437\u00a0<strong>USB<\/strong>, \u043d\u043e \u0442\u0443\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b: \u043d\u0435 \u0445\u043e\u0447\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c. \u041f\u043e\u043b\u0430\u0437\u0438\u043b \u0432 \u0438\u043d\u0435\u0442\u0435, \u043f\u043e\u0447\u0438\u0442\u0430\u043b, \u0447\u0442\u043e \u0434\u0440\u043e\u0432\u0430 \u0434\u043b\u044f\u00a0<strong>USB<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043a\u043e\u043c\u043f\u0438\u043b\u043b\u0435\u043d\u044b \u0432 \u044f\u0434\u0440\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043a\u0440\u0438\u0432\u043e\u0432\u0430\u0442\u044b, \u043f\u0440\u0438\u0447\u0451\u043c \u043d\u0435 \u0432\u0441\u0435, \u0430 \u0442\u043e\u043b\u044c\u043a\u043e\u00a0<strong>&#8220;Human Interface Devices&#8221;<\/strong>. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u044f: \u043f\u0435\u0440\u0435\u0441\u043e\u0431\u0440\u0430\u0442\u044c \u044f\u0434\u0440\u043e \u0431\u0435\u0437 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043e\u043f\u0446\u0438\u0438<\/p>\n<p><code>device\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 uhid<\/code><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043f\u0435\u0440\u0435\u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u044f\u0434\u0440\u043e, \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b: \u0443 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u0440\u043e\u0434\u043d\u043e\u0439 &#8220;\u043a\u043e\u043c\u043e\u0432\u0441\u043a\u0438\u0439&#8221; \u043a\u0430\u0431\u0435\u043b\u044c, \u043c\u043e\u0436\u0435\u0442 \u0441 \u043d\u0438\u043c \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0418 \u0442\u0430\u043a\u0438-\u0434\u0430! \u0417\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e. \u0412\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043a\u0430\u043f\u0440\u0438\u0437\u043d\u044b\u0439\u00a0<strong>APC<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0437\u0430\u0434\u0430\u0447\u0430 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u00a0UPS&#8217;a. \u0414\u0443\u043c\u0430\u044e \u044d\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0432\u0441\u0435\u043c. \u0421\u0442\u0435\u043d\u0434:\u00a0FreeBSD 7.2,\u00a0Mustek UPS 800 AV,\u00a0Serial RS-232 cable (com-port). \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 &#8211; \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0430\u044f :). \u041f\u0440\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u0447\u0438\u0442\u0430\u0435\u043c \u0432\u043d\u0438\u0437\u0443, \u0440\u0430\u0437\u0434\u0435\u043b &#8220;\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b&#8221;.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-221","post","type-post","status-publish","format-standard","hentry","category-freebsd"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=221"}],"version-history":[{"count":6,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/221\/revisions"}],"predecessor-version":[{"id":511,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/221\/revisions\/511"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}