{"id":198,"date":"2010-01-24T01:53:47","date_gmt":"2010-01-23T21:53:47","guid":{"rendered":"http:\/\/www.microsoft-way.ru\/?p=198"},"modified":"2010-01-24T01:53:47","modified_gmt":"2010-01-23T21:53:47","slug":"uchet-ispolzovaniya-obshhix-printerov","status":"publish","type":"post","link":"https:\/\/microsoft-way.ru\/?p=198","title":{"rendered":"\u0423\u0447\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u0449\u0438\u0445 \u043f\u0440\u0438\u043d\u0442\u0435\u0440\u043e\u0432"},"content":{"rendered":"<p>\u041d\u0435 \u0441\u0435\u043a\u0440\u0435\u0442, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u043e\u0431\u043e\u0440\u043e\u0442\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438, \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435 \u0431\u0443\u043c\u0430\u0433\u0438. \u0414\u0430\u0436\u0435 \u0438\u0437\u0432\u0435\u0447\u043d\u044b\u0435 \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u044b, \u043f\u0435\u0447\u0430\u0442\u0430\u044e\u0449\u0438\u0435 \u0437\u0430 \u0441\u0447\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u043e\u0434\u0430\u0442\u0435\u043b\u044f \u0441\u0432\u043e\u0438 \u0431\u0435\u0441\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0440\u0435\u0444\u0435\u0440\u0430\u0442\u044b \u043e \u0432\u043b\u0438\u044f\u043d\u0438\u0438 \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0442\u043e\u043a\u0430 \u043b\u0443\u043d\u043d\u043e\u0433\u043e \u0441\u0432\u0435\u0442\u0430 \u043d\u0430 \u0438\u0437\u043d\u043e\u0441 \u0440\u0435\u043b\u044c\u0441, \u0432\u043e\u0432\u0441\u0435 \u043d\u0435 \u0442\u0430\u043a \u0443\u0436 \u0438 \u043c\u043d\u043e\u0433\u043e \u0438\u0437\u0432\u043e\u0434\u044f\u0442 \u0431\u0443\u043c\u0430\u0433\u0438. \u0413\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0431\u0443\u043c\u0430\u0433\u0438 \u0438 \u0442\u043e\u043d\u0435\u0440\u0430 \u0440\u0430\u0441\u0445\u043e\u0434\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u0440\u0438\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f \u0448\u0440\u0435\u0434\u0435\u0440\u043e\u0432 \u0438\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u043e\u0431\u043e\u0440\u043e\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043c\u043d\u043e\u0433\u043e\u043a\u0440\u0430\u0442\u043d\u043e \u0431\u0435\u0437\u0434\u0443\u043c\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u043e\u043f\u0438\u044e \u043c\u043d\u043e\u0433\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 \u043e\u0434\u043d\u043e\u0433\u043e \u0438 \u0442\u043e\u0433\u043e \u0436\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430.<\/p>\n<p>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u0434\u043e\u0440\u043e\u0433\u0438\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0443\u0447\u0435\u0442\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u044f \u0440\u0430\u0441\u0445\u043e\u0434\u043d\u044b\u0445 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u043e\u0432. \u041d\u043e \u0434\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u043c\u0443 \u0441\u0447\u0435\u0442\u0443, \u043e\u043d\u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0438\u0437\u043b\u0438\u0448\u043d\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u043c\u0438. \u041a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0435 \u0438\u043c\u0435\u0442\u044c \u043f\u043e\u043b\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e \u0432\u0441\u0435\u0445 \u0440\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u0430\u043d\u043d\u044b\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0430 \u043b\u0438\u0448\u044c \u0432\u0438\u0434\u0435\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043e\u0442\u043f\u0435\u0447\u0430\u0442\u043a\u043e\u0432 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u043f\u0440\u0438\u043d\u0442\u0435\u0440\u0435 \u0441 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c.<\/p>\n<p><!--more-->\u0418 \u0441\u043d\u043e\u0432\u0430 \u043d\u0430\u043c \u043d\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e LogParser (\u0440\u0430\u043d\u0435\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0435\u043d\u043d\u043e\u0435 <a href=\"http:\/\/www.microsoft-way.ru\/analiz-logov-exchange-2007\/\">\u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043b\u043e\u0433\u043e\u0432 Exhange2007<\/a>), \u043d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0435 \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043b\u043e\u0433\u043e\u0432 \u043f\u0440\u0438\u043d\u0442-\u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<p>\u0418\u0442\u0430\u043a, \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 csv \u0444\u0430\u0439\u043b, \u0433\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0437\u0430 \u0441\u0435\u0433\u043e\u0434\u043d\u044f\u0448\u043d\u0438\u0439 \u0434\u0435\u043d\u044c \u043e \u0442\u043e\u043c, \u043a\u043e\u0433\u0434\u0430, \u043a\u0442\u043e, \u043d\u0430 \u043a\u0430\u043a\u043e\u043c \u043f\u0440\u0438\u043d\u0442\u0435\u0440\u0435 \u0438 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0440\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u0430\u043b. \u0414\u0430 \u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0430 \u043f\u0435\u0447\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u043b\u0438\u0448\u043d\u0438\u043c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442.<br \/>\n\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043a \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c:<br \/>\n1.<span style=\"color: #0000ff;\"> LogParser.exe<\/span> <span style=\"color: #808080;\">&#8212; \u0431\u0435\u0437 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432<\/span><br \/>\n2. <span style=\"color: #0000ff;\">file:parsprn.sql<\/span> <span style=\"color: #808080;\"> &#8212; \u0444\u0430\u0439\u043b, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0437\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 SQL \u0437\u0430\u043f\u0440\u043e\u0441<\/span><br \/>\n3. <span style=\"color: #0000ff;\">-i:EVT<\/span> <span style=\"color: #808080;\">&#8212; \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c, \u0447\u0442\u043e \u0432\u0432\u043e\u0434 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u0437\u044f\u0442\u044c \u0438\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u0430 \u043f\u0440\u0438\u043d\u0442-\u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/span><br \/>\n4.<span style=\"color: #0000ff;\"> -o:CSV<\/span> <span style=\"color: #808080;\">&#8212; \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u044b\u0432\u043e\u0434\u0430<\/span><\/p>\n<p>\u041d\u043e \u043f\u0440\u0435\u0436\u0434\u0435, \u0447\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443, \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0430\u043c \u0444\u0430\u0439\u043b \u0437\u0430\u043f\u0440\u043e\u0441\u0430 parsprn.sql:<br \/>\n<span style=\"color: #0000ff;\">select<br \/>\nTimeGenerated AS LogonDate,<br \/>\nEXTRACT_TOKEN(Strings, -6, &#8216;|&#8217;) AS docname, <span style=\"color: #808080;\">&#8212; \u0438\u0437 \u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432 \u0438\u043c\u0435\u043d\u0438 \u0444\u0430\u0439\u043b\u0430 \u043c\u043e\u0433\u0443\u0442 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0442\u044c\u0441\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u044b |, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e &#171;\u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e&#187; \u0444\u043e\u0440\u043c\u0443 \u0437\u0430\u043f\u0438\u0441\u0438.<\/span><br \/>\nEXTRACT_TOKEN(Strings, -5, &#8216;|&#8217;) AS username,<br \/>\nEXTRACT_TOKEN(Strings, -4, &#8216;|&#8217;) AS prndevice,<br \/>\nEXTRACT_TOKEN(Strings, -2, &#8216;|&#8217;) AS bytesize,<br \/>\nEXTRACT_TOKEN(Strings, -1, &#8216;|&#8217;) AS pgsize<br \/>\ninto v:\\parsprn.csv<br \/>\nfrom SYSTEM <span style=\"color: #808080;\">&#8212; \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c, \u0438\u0437 \u043a\u0430\u043a\u043e\u0433\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u0430 \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u0434\u0430\u043d\u043d\u044b\u0435<\/span><br \/>\nwhere<br \/>\nTO_TIMESTAMP(TO_STRING(TimeGenerated, &#8216;yyyy-MM-dd&#8217;),&#8217;yyyy-MM-dd&#8217;)  = TO_TIMESTAMP(TO_STRING(SYSTEM_TIMESTAMP(),&#8217;yyyy-MM-dd&#8217;),&#8217;yyyy-MM-dd&#8217;) <span style=\"color: #808080;\">&#8212; \u043d\u0430 \u043a\u0430\u043a\u043e\u043c-\u0442\u043e \u044d\u0442\u0430\u043f\u0435 \u0431\u044b\u043b\u0430 \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0430 \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u0430\u044f \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043d\u044f\u0442\u0438\u044f &#171;\u0441\u0435\u0433\u043e\u0434\u043d\u044f&#187;, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u0434\u0435\u0436\u043d\u0435\u0435 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438<\/span><br \/>\nand EventID IN (10)<\/span><\/p>\n<p>\u041e\u0442\u0447\u0435\u0442 \u0434\u043b\u044f \u0446\u0435\u043b\u0435\u0439 \u0430\u0440\u0445\u0438\u0432\u043d\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043c\u044b \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438. \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u043d\u0430\u0447\u0430\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b, \u043f\u0440\u0438\u0435\u043c\u043b\u0435\u043c\u044b\u0435 \u0434\u043b\u044f \u0432\u043e\u0441\u043f\u0440\u0438\u044f\u0442\u0438\u044f \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e\u043c.<br \/>\n\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c, \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u043d\u0435 \u0443\u0445\u043e\u0434\u0438\u0442\u044c \u0434\u0430\u043b\u0435\u043a\u043e \u043e\u0442 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0435\u0433\u043e \u043e\u0442\u0447\u0435\u0442\u0430 \u0432 \u0432\u0438\u0434\u0435 csv \u0444\u0430\u0439\u043b\u0430, \u043d\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0432 \u043d\u0435\u0433\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u0438\u043c\u0435\u0432\u0448\u0438\u0435 \u043c\u0435\u0441\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0434\u043d\u044f. \u041e\u0447\u0435\u043d\u044c, \u043a\u0441\u0442\u0430\u0442\u0438, \u0437\u0430\u0431\u0430\u0432\u043d\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u0440\u0435\u0430\u043a\u0446\u0438\u044e, \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044e\u0449\u0435\u0433\u043e \u0447\u0442\u043e \u043c\u0435\u0441\u044f\u0447\u043d\u044b\u0439 \u043e\u0442\u0447\u0435\u0442 \u0434\u043b\u044f \u0432\u0430\u0441 \u043e\u043d \u0433\u0435\u0440\u043e\u0438\u0447\u0435\u0441\u043a\u0438  \u0433\u043e\u0442\u043e\u0432\u0438\u043b \u0432\u0447\u0435\u0440\u0430 \u0430\u0436 \u0434\u043e 11 \u0432\u0435\u0447\u0435\u0440\u0430, \u043a\u043e\u0433\u0434\u0430 \u044d\u0442\u043e\u043c\u0443 &#171;\u0433\u0435\u0440\u043e\u044e&#187; \u0437\u0430\u0434\u0430\u0435\u0448\u044c \u0432\u043e\u043f\u0440\u043e\u0441, \u043a\u0430\u043a \u0436\u0435 \u0442\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e \u043e\u043d \u0440\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u0430\u043b \u0432 18:23? \ud83d\ude42<br \/>\n\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u044b\u0445 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0444\u0430\u0439\u043b\u0430 SQL \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043d\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442, \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u043e\u0442\u0431\u043e\u0440\u0430:<br \/>\n<span style=\"color: #0000ff;\">and TO_TIMESTAMP(TO_STRING(TimeGenerated, &#8216;h&#8217;),&#8217;h&#8217;)  &gt; TO_TIMESTAMP(TO_STRING(&#8217;17&#8217;),&#8217;h&#8217;)<\/span><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438, \u0442\u0430\u043a \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0436\u0435 \u043e\u0442\u043f\u0435\u0447\u0430\u0442\u043a\u043e\u0432 \u0441\u0443\u043c\u043c\u0430\u0440\u043d\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437 \u043f\u0440\u0438\u043d\u0442\u0435\u0440\u043e\u0432. \u0414\u0430\u043d\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f, \u043a\u0441\u0442\u0430\u0442\u0438, \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0441\u043b\u0443\u0436\u0438\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0432 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043c\u043e\u0434\u0435\u0440\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f. \u0412\u043e\u0432\u0441\u0435 \u043d\u0435 \u0444\u0430\u043a\u0442, \u0447\u0442\u043e \u0442\u043e\u043c\u0443 \u0438\u043b\u0438 \u0438\u043d\u043e\u043c\u0443 \u0434\u0435\u043f\u0430\u0440\u0442\u0430\u043c\u0435\u043d\u0442\u0443 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u0435\u043d \u0430\u043f\u0433\u0440\u0435\u0439\u0434 \u043c\u043d\u043e\u0433\u043e\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u0430 \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0435\u0448\u0435\u0432\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u0430.<br \/>\n\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<br \/>\n<span style=\"color: #0000ff;\">LogParser file:parsprnpcountd.sql -i:EVT -o:CHART -chartType:barstacked -chartTitle:&#187;printers by pages&#187; -groupSize:1024&#215;1600<br \/>\nparsprnpcountd.sql<\/span><\/p>\n<p>\u0424\u0430\u0439\u043b \u0436\u0435 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e SQL \u0437\u0430\u043f\u0440\u043e\u0441\u0430, \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<br \/>\n<span style=\"color: #0000ff;\">select<br \/>\nEXTRACT_TOKEN(Strings,-4, &#8216;|&#8217;) AS prndevice,<br \/>\nsum(TO_INT(EXTRACT_TOKEN(Strings,-1, &#8216;|&#8217;))) AS pgcount<br \/>\ninto v:\\pages_per_device.gif<br \/>\nfrom SYSTEM<br \/>\nwhere<br \/>\nTO_TIMESTAMP(TO_STRING(TimeGenerated, &#8216;yyyy-MM-dd&#8217;),&#8217;yyyy-MM-dd&#8217;)  = TO_TIMESTAMP(TO_STRING(SYSTEM_TIMESTAMP(),&#8217;yyyy-MM-dd&#8217;),&#8217;yyyy-MM-dd&#8217;)<br \/>\nand EventID IN (10)<br \/>\ngroup by prndevice<br \/>\norder by pgcount desc<\/span><\/p>\n<p>\u041d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0432\u043f\u043e\u043b\u043d\u0435 \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0445\u043e\u0442\u0435\u043b\u0438 \u0432\u044b\u044f\u0441\u043d\u0438\u0442\u044c:<br \/>\n<a href=\"http:\/\/www.microsoft-way.ru\/wp-content\/uploads\/2010\/01\/pages_per_device.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-199\" title=\"pages_per_device\" src=\"http:\/\/www.microsoft-way.ru\/wp-content\/uploads\/2010\/01\/pages_per_device-655x1024.gif\" alt=\"pages_per_device\" width=\"524\" height=\"813\" \/><\/a><\/p>\n<p>\u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0432\u044b\u0432\u0435\u0441\u0442\u0438 25 &#171;\u0440\u0435\u043a\u043e\u0440\u0434\u0441\u043c\u0435\u043d\u043e\u0432&#187; \u043f\u043e \u0440\u0430\u0441\u0445\u043e\u0434\u0443 \u0431\u0443\u043c\u0430\u0433\u0438. \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<br \/>\n<span style=\"color: #0000ff;\">LogParser file:parsprnpcountopu.sql -i:EVT -o:CHART -chartType:barstacked -chartTitle:&#187;top 25 users by pages&#187; -groupSize:1024&#215;800<\/span><\/p>\n<p>\u0421\u0430\u043c \u0436\u0435 \u0444\u0430\u0439\u043b \u0437\u0430\u043f\u0440\u043e\u0441\u0430 parsprnpcountopu.sql \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<br \/>\n<span style=\"color: #0000ff;\">select<br \/>\ntop 25 EXTRACT_TOKEN(Strings,-5, &#8216;|&#8217;) AS username, <span style=\"color: #808080;\">&#8212; \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0435\u0441\u043b\u0438 \u0438\u0437 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0443\u0431\u0440\u0430\u0442\u044c &#171;top 25&#187;, \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043e\u0442\u0447\u0435\u0442, \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0438\u0439 \u0432\u0441\u0435\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439<\/span><br \/>\nsum(TO_INT(EXTRACT_TOKEN(Strings,-1, &#8216;|&#8217;))) AS pgcount<br \/>\ninto v:\\top_users_by_pages.gif<br \/>\nfrom SYSTEM<br \/>\nwhere<br \/>\nTO_TIMESTAMP(TO_STRING(TimeGenerated, &#8216;yyyy-MM-dd&#8217;),&#8217;yyyy-MM-dd&#8217;)  = TO_TIMESTAMP(TO_STRING(SYSTEM_TIMESTAMP(),&#8217;yyyy-MM-dd&#8217;),&#8217;yyyy-MM-dd&#8217;)<br \/>\nand EventID IN (10)<br \/>\ngroup by username<br \/>\norder by pgcount desc<\/span><\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u044b\u0439 \u0432\u0438\u0434 \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0435\u0433\u043e\u0441\u044f \u043e\u0442\u0447\u0435\u0442\u0430 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u043e\u0432:<br \/>\n<a href=\"http:\/\/www.microsoft-way.ru\/wp-content\/uploads\/2010\/01\/top_users_by_pages.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-200\" title=\"top_users_by_pages\" src=\"http:\/\/www.microsoft-way.ru\/wp-content\/uploads\/2010\/01\/top_users_by_pages.gif\" alt=\"top_users_by_pages\" width=\"519\" height=\"407\" \/><\/a><\/p>\n<p>\u0420\u043e\u0432\u043d\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0435 \u043e\u0442\u0447\u0435\u0442\u044b \u043c\u043e\u0436\u043d\u043e, \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438 \u0437\u0430 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u0412\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0442 \u0431\u0443\u0439\u043d\u043e\u0441\u0442\u0438 \u0444\u0430\u043d\u0442\u0430\u0437\u0438\u0438. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0437\u0430\u043f\u0440\u043e\u0441 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043e\u0442\u043f\u0435\u0447\u0430\u0442\u043a\u043e\u0432 \u043f\u043e \u0434\u043d\u044f\u043c \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<br \/>\n<span style=\"color: #0000ff;\">select<br \/>\nTO_STRING(TimeGenerated,  &#8216;dd&#8217;) as day,<br \/>\nsum(TO_INT(EXTRACT_TOKEN(Strings,-1, &#8216;|&#8217;))) AS pgcount<br \/>\ninto v:\\pages_per_day_month.gif<br \/>\nfrom SYSTEM<br \/>\nwhere<br \/>\nTO_TIMESTAMP(TO_STRING(TimeGenerated, &#8216;yyyy-MM&#8217;),&#8217;yyyy-MM&#8217;)  = TO_TIMESTAMP(TO_STRING(SYSTEM_TIMESTAMP(),&#8217;yyyy-MM&#8217;),&#8217;yyyy-MM&#8217;)<br \/>\nand EventID IN (10)<br \/>\ngroup by day<br \/>\norder by day<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0435 \u0441\u0435\u043a\u0440\u0435\u0442, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u043e\u0431\u043e\u0440\u043e\u0442\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438, \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435 \u0431\u0443\u043c\u0430\u0433\u0438. \u0414\u0430\u0436\u0435 \u0438\u0437\u0432\u0435\u0447\u043d\u044b\u0435 \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u044b, \u043f\u0435\u0447\u0430\u0442\u0430\u044e\u0449\u0438\u0435 \u0437\u0430 \u0441\u0447\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u043e\u0434\u0430\u0442\u0435\u043b\u044f \u0441\u0432\u043e\u0438 \u0431\u0435\u0441\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0440\u0435\u0444\u0435\u0440\u0430\u0442\u044b \u043e \u0432\u043b\u0438\u044f\u043d\u0438\u0438 \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0442\u043e\u043a\u0430 \u043b\u0443\u043d\u043d\u043e\u0433\u043e \u0441\u0432\u0435\u0442\u0430 \u043d\u0430 \u0438\u0437\u043d\u043e\u0441 \u0440\u0435\u043b\u044c\u0441, \u0432\u043e\u0432\u0441\u0435 \u043d\u0435 \u0442\u0430\u043a \u0443\u0436 \u0438 \u043c\u043d\u043e\u0433\u043e \u0438\u0437\u0432\u043e\u0434\u044f\u0442 \u0431\u0443\u043c\u0430\u0433\u0438. \u0413\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0431\u0443\u043c\u0430\u0433\u0438 \u0438 \u0442\u043e\u043d\u0435\u0440\u0430 \u0440\u0430\u0441\u0445\u043e\u0434\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u0440\u0438\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f \u0448\u0440\u0435\u0434\u0435\u0440\u043e\u0432 \u0438\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77],"tags":[78,84],"class_list":["post-198","post","type-post","status-publish","format-standard","hentry","category-uchet-rasxodov","tag-uchet-rasxodnyx-materialov","tag-uchet-rasxodov"],"_links":{"self":[{"href":"https:\/\/microsoft-way.ru\/index.php?rest_route=\/wp\/v2\/posts\/198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoft-way.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoft-way.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoft-way.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoft-way.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=198"}],"version-history":[{"count":3,"href":"https:\/\/microsoft-way.ru\/index.php?rest_route=\/wp\/v2\/posts\/198\/revisions"}],"predecessor-version":[{"id":214,"href":"https:\/\/microsoft-way.ru\/index.php?rest_route=\/wp\/v2\/posts\/198\/revisions\/214"}],"wp:attachment":[{"href":"https:\/\/microsoft-way.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoft-way.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoft-way.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}