{"id":199066,"date":"2013-10-29T13:36:03","date_gmt":"2013-10-29T09:36:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=199066"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=199066","title":{"rendered":"<span class=\"post_title\">\u0423\u043a\u0440\u0430\u0448\u0435\u043d\u0438\u0435 \u041c\u0430\u0440\u0438\u0438-301\u041c\u0422\u041c<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041f\u043e\u043f\u0430\u043b \u0432 \u0440\u0443\u043a\u0438 \u0434\u0435\u0432\u0430\u0439\u0441 \u041c\u0430\u0440\u0438\u044f-301\u041c\u0422\u041c\u2026 \u042d\u0442\u043e \u0443\u043a\u0440\u0430\u0438\u043d\u0441\u043a\u0438\u0439 \u0444\u0438\u0441\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u2014 \u043f\u0440\u0438\u043d\u0442\u0438\u0435\u0440 \u043a\u0430\u0441\u0441\u043e\u0432\u044b\u0445 \u0447\u0435\u043a\u043e\u0432.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/4c7\/745\/20f\/4c774520f5fdca7ae69af5981fde96ef.jpg\" alt=\"image\"\/><\/p>\n<p>  \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0441\u0435\u0433\u043e \u0434\u0435\u0432\u0430\u0439\u0441\u0430 \u043e\u0442\u043a\u0440\u044b\u0442 \u0438 \u043b\u044e\u0431\u0435\u0437\u043d\u043e \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u043c <br \/>  \u0414\u0440\u0430\u0439\u0432\u0435\u0440\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0435\u0432\u0430\u0439\u0441\u043e\u043c \u044f \u043d\u0430\u0448\u0435\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043b\u0430\u0442\u043d\u044b\u0435 \u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u0442\u0430\u0440\u0438\u043d\u043d\u044b\u0435. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u0438 \u043f\u043e\u0434\u0432\u0438\u0433\u043b\u043e \u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u0441\u0442\u0430\u0442\u044c\u0438.<\/p>\n<p>  \u0412 \u043d\u0430\u043b\u0438\u0447\u0438\u0438: \u0441\u0442\u0430\u0440\u0435\u043d\u044c\u043a\u0438\u0439 \u043d\u0435\u0442\u0431\u0443\u043a \u0441 COM \u043f\u043e\u0440\u0442\u043e\u043c. \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b putty \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b \u0441\u0432\u044f\u0437\u044c. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e\u0442\u0430 paryty: Even; stopbit:2; spped:57600 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0434\u0432\u0435 \u0431\u0443\u043a\u0432\u044b \u00abU\u00bb \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u00abREADY\u00bb. \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043f\u043e\u0440\u0442 \u0436\u0438\u0432. \u041d\u0430 \u043d\u0435\u0442\u0431\u0443\u043a\u0435 \u043e\u0442 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u043e\u043f\u044b\u0442\u043e\u0432 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d <a href=\"http:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=10019\">mscomctl.ocx<\/a>. \u042d\u0442\u043e\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430 \u0432\u043f\u043e\u043b\u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0447\u0442\u043e\u0431 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0434\u043b\u044f \u041c\u0430\u0440\u0438\u0438.<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u0412 \u043e\u0431\u0449\u0435\u043c \u0432\u0438\u0434\u0435 vbscript \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u041c\u0430\u0440\u0438\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"vbscript\">dim MSComm1 dim txt  function fillcmd(txtma)   ret = chr(253) & txtma & chr(len(txtma)+1) & chr(254)     fillcmd = ret  end function             function sendCmd(cmdTxt)   ret = &quot;&quot;   txt.writeline &quot;cmd=&quot;+txtcmd   MSComm1.Output  = fillcmd(txtcmd)   WScript.Sleep(100)   ret = MSComm1.Input   txt.writeline &quot;answ=&quot;+ret   sendCmd = ret end function  function initMaria()   txt.writeline &quot;init&quot;   MSComm1.Output=&quot;U&quot;    WScript.Sleep(1)   MSComm1.Output=&quot;U&quot;    WScript.Sleep(20)   rez = MSComm1.Input   txt.writeline &quot;answ=&quot;+rez   initMaria = rez end function  function initComm()   Set MSComm1=CreateObject(&quot;MSCOMMLib.MSComm&quot;)   MSComm1.Settings = &quot;57600,e,8,2&quot;   MSComm1.CommPort = 2   MSComm1.InBufferCount = 0   MSComm1.PortOpen = True   MSComm1.DTREnable = True    set fso = CreateObject(&quot;Scripting.FileSystemObject&quot;)   set txt = fso.CreateTextFile(&quot;maria.log&quot;)    initComm = &quot;Ready&quot; end function  sub closePort()   MSComm1.DTREnable = False   MSComm1.PortOpen = False   Set MSComm1 = Nothing   txt.close   Set txt = Nothing end sub  res = initComm() res = initMaria()  'get maria configurarion txtcmd=&quot;CONF&quot;  res = sendCmd(txtcmd)   closePort() <\/code><\/pre>\n<p>  \u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<br \/>  initComm() \u2014 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u0440\u0442 \u0438 \u043b\u043e\u0433 \u0444\u0430\u0439\u043b <br \/>  fillcmd(txtma) \u043e\u0431\u0440\u0430\u043c\u043b\u044f\u0435\u0442 <\/p>\n<p>  \u041f\u0435\u0447\u0430\u0442\u044c \u0447\u0435\u043a\u0430:  <\/p>\n<pre><code class=\"vbscript\">res = initComm() res = initMaria()  'user login txtcmd=&quot;UPAS111111111112345&quot;  res = sendCmd(txtcmd)   'cancel check txtcmd=&quot;CANC&quot;  res = sendCmd(txtcmd)   'open check txtcmd=&quot;PREP0&quot;  res = sendCmd(txtcmd)   'add line txtcmd=&quot;FISC&quot;&&quot;\u0430\u0440\u0442         &quot;&&quot;000003000&quot;&&quot;000001000&quot;&&quot;00003&quot;&&quot;10&quot;&_ &quot;\u041002000&quot;&&quot;000000&quot;&&quot;000000&quot;&&quot;000000&quot;&&quot;000000&quot;&&quot;000000&quot;&&quot;000000&quot;&&quot;000000&quot;&&quot;0001&quot; '+&quot;&'&quot;             &quot;&&quot;         &quot;&&quot;\u0434\u043e\u043f&quot; res = sendCmd(txtcmd)   'close check txtcmd=&quot;COMP&quot;&&quot;0000003000&quot;&&quot;0000000000&quot;&&quot;0000000000&quot;&&quot;0000000000&quot;&&quot;0000000000&quot;&&quot;0000003000&quot;   res = sendCmd(txtcmd)   closePort()  <\/code><\/pre>\n<p>  \u0422\u0430\u043a\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0432\u043f\u043e\u043b\u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0447\u0442\u043e\u0431 \u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u0447\u0435\u043a\u0438, \u043e\u0442\u0447\u0435\u0442\u044b \u0438\u0437 1\u0421, ACESS, EXCEL <br \/>  \u0414\u0443\u043c\u0430\u044e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c nativ-API \u043d\u0430 \u0437\u0430\u043c\u0435\u043d\u0443 \u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 OLE32\u2026    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/199066\/\"> http:\/\/habrahabr.ru\/post\/199066\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041f\u043e\u043f\u0430\u043b \u0432 \u0440\u0443\u043a\u0438 \u0434\u0435\u0432\u0430\u0439\u0441 \u041c\u0430\u0440\u0438\u044f-301\u041c\u0422\u041c\u2026 \u042d\u0442\u043e \u0443\u043a\u0440\u0430\u0438\u043d\u0441\u043a\u0438\u0439 \u0444\u0438\u0441\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u2014 \u043f\u0440\u0438\u043d\u0442\u0438\u0435\u0440 \u043a\u0430\u0441\u0441\u043e\u0432\u044b\u0445 \u0447\u0435\u043a\u043e\u0432.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/4c7\/745\/20f\/4c774520f5fdca7ae69af5981fde96ef.jpg\" alt=\"image\"\/><\/p>\n<p>  \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0441\u0435\u0433\u043e \u0434\u0435\u0432\u0430\u0439\u0441\u0430 \u043e\u0442\u043a\u0440\u044b\u0442 \u0438 \u043b\u044e\u0431\u0435\u0437\u043d\u043e \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u043c <br \/>  \u0414\u0440\u0430\u0439\u0432\u0435\u0440\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0435\u0432\u0430\u0439\u0441\u043e\u043c \u044f \u043d\u0430\u0448\u0435\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043b\u0430\u0442\u043d\u044b\u0435 \u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u0442\u0430\u0440\u0438\u043d\u043d\u044b\u0435. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u0438 \u043f\u043e\u0434\u0432\u0438\u0433\u043b\u043e \u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u0441\u0442\u0430\u0442\u044c\u0438.<\/p>\n<p>  \u0412 \u043d\u0430\u043b\u0438\u0447\u0438\u0438: \u0441\u0442\u0430\u0440\u0435\u043d\u044c\u043a\u0438\u0439 \u043d\u0435\u0442\u0431\u0443\u043a \u0441 COM \u043f\u043e\u0440\u0442\u043e\u043c. \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b putty \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b \u0441\u0432\u044f\u0437\u044c. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e\u0442\u0430 paryty: Even; stopbit:2; spped:57600 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0434\u0432\u0435 \u0431\u0443\u043a\u0432\u044b \u00abU\u00bb \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u00abREADY\u00bb. \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043f\u043e\u0440\u0442 \u0436\u0438\u0432. \u041d\u0430 \u043d\u0435\u0442\u0431\u0443\u043a\u0435 \u043e\u0442 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u043e\u043f\u044b\u0442\u043e\u0432 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d <a href=\"http:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=10019\">mscomctl.ocx<\/a>. \u042d\u0442\u043e\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430 \u0432\u043f\u043e\u043b\u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0447\u0442\u043e\u0431 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0434\u043b\u044f \u041c\u0430\u0440\u0438\u0438.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-199066","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/199066","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=199066"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/199066\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=199066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=199066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=199066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}