{"id":156597,"date":"2012-10-29T18:27:03","date_gmt":"2012-10-29T14:27:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=156597"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=156597","title":{"rendered":"<span class=\"post_title\">\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 Windows \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 PowerShell \u0438 Python<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" src=\"http:\/\/www.superiormessagecenter.com\/images\/Man%20on%20Laptop.jpg\" alt=\"image\"\/><\/p>\n<p>  \u041f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f:<br \/>  \u0421\u0430\u043c \u044f \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0432 \u0442\u0435\u0445\u043e\u0442\u0434\u0435\u043b\u0435 \u043e\u0434\u043d\u043e\u0439 \u0431\u0440\u043e\u043a\u0435\u0440\u0441\u043a\u043e\u0439 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0432 \u0422\u043e\u0440\u043e\u043d\u0442\u043e, \u041a\u0430\u043d\u0430\u0434\u0435. \u0422\u0430\u043a \u0436\u0435 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u043e\u0444\u0438\u0441 \u0432 \u041a\u0430\u043b\u0433\u0430\u0440\u0438. \u041a\u0430\u043a-\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u043f\u043b\u0430\u043d\u043e\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f Windows \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u043d\u0430 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435 \u0432 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c \u043e\u0444\u0438\u0441\u0435 \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0441\u044f W32Time \u0441\u0435\u0440\u0432\u0438\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441 \u0432\u043d\u0435\u0448\u043d\u0438\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u043e\u043a\u043e\u043b\u043e \u043d\u0435\u0434\u0435\u043b\u0438 \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441\u0431\u0438\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430 20 \u0441\u0435\u043a\u0443\u043d\u0434. \u041d\u0430\u0448\u0438 \u0440\u0430\u0431\u043e\u0447\u0438\u0435 \u0441\u0442\u0430\u043d\u0446\u0438\u0438 \u043d\u0430 \u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u0438 \u0432\u0440\u0435\u043c\u044f \u0441 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430. \u0421\u0430\u043c\u0438 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c. \u0412 \u0442\u043e\u0440\u0433\u0430\u0445 \u0432\u0440\u0435\u043c\u044f \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u043e, \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043c\u043e\u0436\u0435\u0442 \u0440\u0435\u0448\u0438\u0442\u044c \u043c\u043d\u043e\u0433\u043e\u0435. \u041f\u0435\u0440\u0432\u044b\u043c\u0438 \u0440\u0430\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u0438 \u043d\u0430\u0448\u0438 \u0431\u0440\u043e\u043a\u0435\u0440\u044b. \u041d\u0430\u0448 \u043e\u0442\u0434\u0435\u043b \u0442\u0435\u0445\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043f\u043e \u0441\u0443\u0442\u0438 \u0438\u0437 3 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0437\u0430 \u044d\u0442\u043e \u0440\u0430\u0441\u043f\u0435\u043a\u043b\u0438. \u041d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u0441\u0440\u043e\u0447\u043d\u043e \u0447\u0442\u043e-\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c. \u0420\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0431\u044b\u043b\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0433\u0440\u0443\u043f\u043f\u043e\u0432\u043e\u0439 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0442\u0441\u044b\u043b\u0430\u043b\u0430 \u0432\u0441\u0435 \u043c\u0430\u0448\u0438\u043d\u044b \u043a \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u043c\u0443 NTP \u0441\u0435\u0440\u0432\u0435\u0440\u0443, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u043c\u0443 \u043d\u0430 CentOS. \u0415\u0449\u0435 \u0431\u044b\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 DC Barracuda Agent, \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u043c \u0437\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0434\u043e\u043c\u0435\u043d\u0430 \u0441 \u043d\u0430\u0448\u0438\u043c \u0412\u0435\u0431 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u043c, \u0438 \u0435\u0449\u0435 \u043f\u0430\u0440\u043e\u0447\u043a\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043f\u0440\u0438\u0447\u0438\u043d\u044f\u043b\u0430 \u043d\u0430\u043c \u043f\u043e\u0440\u043e\u0439 \u0431\u0435\u0441\u043f\u043e\u043a\u043e\u0439\u0441\u0442\u0432\u043e. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u0440\u0435\u0448\u0438\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u043f\u0430\u0440\u0443 \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438. \u042f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0433\u0443\u0433\u043b\u0438\u043b \u0438 \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0439, \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0438\u0441\u043a\u0438\u0445 \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043d\u043e \u0442\u0430\u043a \u043a\u0430\u043a \u044f \u0445\u043e\u0442\u0435\u043b \u043d\u0430\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u043a\u0430\u043a\u043e\u043c\u0443-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432\u043e\u043c\u0443 \u044f\u0437\u044b\u043a\u0443, \u0442\u043e \u0432\u044b\u0437\u0432\u0430\u043b\u0441\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 \u041f\u0438\u0442\u043e\u043d\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0430\u0448\u0435\u0433\u043e \u043c\u0435\u0441\u0442\u043d\u043e\u0433\u043e \u043b\u0438\u043d\u0443\u043a\u0441-\u0433\u0443\u0440\u0443. \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435 \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u0440\u043e\u0441\u043b\u043e \u0432 \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0432\u0441\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b, \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044f \u0438\u0445 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0436\u0435\u043b\u0430\u0435\u043c\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u043d\u0430\u0434\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b.<\/p>\n<p>  \u0420\u0435\u0448\u0435\u043d\u0438\u0435:<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 Windows \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u044f \u0441\u043e\u0437\u0434\u0430\u043b PowerShell \u0441\u043a\u0440\u0438\u043f\u0442 \u0442\u0430\u043a\u043e\u0433\u043e \u0432\u0438\u0434\u0430:  <\/p>\n<pre><code class=\"vbscript\">echo &quot;Servername&quot; &gt; C:\\Software\\Services\\Servername.txt get-date &gt;&gt; C:\\Software\\Services\\Servername.txt Get-Service -ComputerName Servername | Format-Table -Property status, name &gt;&gt; C:\\Software\\Services\\Servername.txt <\/code><\/pre>\n<p>  \u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0442\u0430\u043a\u0438\u0445 \u043a\u0443\u0441\u043a\u043e\u0432 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c 10 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/p>\n<p>  \u0412 Task Scheduler \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0431\u0430\u0442\u043d\u0438\u043a (\u043c\u043d\u0435 \u044d\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u043b\u043e\u0441\u044c \u043b\u0435\u0433\u0447\u0435, \u0447\u0435\u043c \u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0437\u0430\u043f\u0443\u0441\u0438\u0442\u044c \u043e\u0442\u0442\u0443\u0434\u0430 PowerShell \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e):<\/p>\n<pre><code class=\"bash\">powershell.exe C:\\Software\\Services\\cal01script.ps1 <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c \u044f \u043f\u043e\u043b\u0443\u0447\u0430\u043b \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435:<\/p>\n<pre><code class=\"bash\">Servername  Friday, October 26, 2012 1:24:03 PM                                   Status Name                                                                     ------ ----                                                                    Stopped Acronis VSS Provider                                                    Running AcronisAgent                                                            Running AcronisFS                                                               Running AcronisPXE                                                              Running AcrSch2Svc                                                              Running ADWS                                                                    Running AeLookupSvc                                                             Stopped ALG                                                                     Stopped AppIDSvc                                                                Running Appinfo                                                                 Running AppMgmt                                                                 Stopped aspnet_state                                                            Stopped AudioEndpointBuilder                                                    Stopped AudioSrv                                                                Running Barracuda DC Agent                                                      Running BFE                                                                     Stopped BITS                                                                    Stopped Browser                                                                 Running CertPropSvc                                                                   Running WinRM                                                                   Stopped wmiApSrv                                                                Stopped WPDBusEnum                                                              Running wuauserv                                                                Stopped wudfsvc     <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c\u0430\u044f \u0433\u043b\u0430\u0432\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c. \u041d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u0441 CentOS \u043d\u0430 \u0431\u043e\u0440\u0442\u0443 \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u0435\u0439 \u0441\u043a\u0440\u0438\u043f\u0442:<\/p>\n<pre><code class=\"python\">import sys import smtplib import string from sys import argv import os, time import optparse import glob  # function message that defines the email we get about the status def message(subjectMessage,msg):   SUBJECT = subjectMessage   FROM = &quot;address@domain.com&quot;   TO = 'address@domain.com'   BODY =  string.join((   &quot;From: %s&quot; % FROM,   &quot;To: %s&quot; % TO,   &quot;Subject: %s&quot; % SUBJECT ,   &quot;&quot;,   msg   ), &quot;\\r\\n&quot;)     s = smtplib.SMTP('mail.domain.com')   #s.set_debuglevel(True)   s.sendmail(FROM, TO, BODY)   s.quit()   sys.exit(0)  def processing(runningServicesFileName,desiredServicesFileName):    try:     desiredServicesFile=open(desiredServicesFileName,'r')   except (IOError,NameError,TypeError):     print &quot;The list with the desired state of services either does not exist or the name has been typed incorrectly. Please check it again.&quot;     sys.exit(0)    try:     runningServicesFile=open(runningServicesFileName,'r')   except (IOError,NameError,TypeError):     print &quot;The dump with services either does not exist or the name has been typed incorrectly. Please check it again.&quot;     sys.exit(0)   #Defining variables   readtxt = desiredServicesFile.readlines()   desiredServices = []   nLines = 0   nRunning = 0   nDesiredServices = len(readtxt)   faultyServices = []   missingServices = []   currentServices = []   serverName = ''   dumpdate=''   errorCount=0  # Trimming file in order to get a list of desired services. Just readlines did not work putting \\n in the end of each line   for line in readtxt:     line = line.rstrip()     desiredServices.append(line)     # Finding the number of currently running services and those that failed to start   for line in runningServicesFile:     nLines+=1   # 1 is the line where I append the name of each server     if nLines==1:       serverName = line.rstrip()   # 3 is the line in the dump that contains date     if nLines==3:       dumpdate=line.rstrip()   # 7 is the first line that contains valueable date. It is just the way we get these dumps from Microsoft servers.     if nLines&lt;7:       continue   # The last line in these dumps seems to have a blank character that we have to ignore while iterating.     if len(line)&lt;3:       break     line = line.rstrip();     serviceStatusPair = line.split(None,1)     currentServices.append(serviceStatusPair[1])     if serviceStatusPair[1] in desiredServices and serviceStatusPair[0] == 'Running':       nRunning+=1     if serviceStatusPair[1] in desiredServices and serviceStatusPair[0] != 'Running':       faultyServices.append(serviceStatusPair[1])    if nLines==0:     statusText='Dumps are empty on %s' % (serverName)     detailsText='Dumps are empty'    # Checking if there are any missing services   for i in range(nDesiredServices):     if desiredServices[i] not in currentServices:        missingServices.append(desiredServices[i])   # Sending the email with results   if nRunning == nDesiredServices:     statusText='%s: OK' % (serverName)     detailsText='%s: OK\\nEverything works correctly\\nLast dump of running services was taken at:\\n%s\\nThe list of desired services:\\n%s\\n' % (serverName,dumpdate,'\\n'.join(desiredServices))   else:     statusText='%s: Errors' % (serverName)     detailsText='%s: Errors\\n%s out of %s services are running.\\nServices failed to start:%s\\nMissing services:%s\\nLast dump of the running services was taken at:\\n%s\\n' % (serverName,nRunning,nDesiredServices,faultyServices,missingServices,dumpdate)     errorCount=errorCount+1   return (statusText,detailsText,errorCount) # Defining switches that can be passed to the script usage = &quot;type -h or --help for help&quot; parser = optparse.OptionParser(usage,add_help_option=False) parser.add_option(&quot;-h&quot;,&quot;--help&quot;,action=&quot;store_true&quot;, dest=&quot;help&quot;,default=False, help=&quot;this is help&quot;) parser.add_option(&quot;-d&quot;,&quot;--desired&quot;,action=&quot;store&quot;, dest=&quot;desiredServicesFileName&quot;, help=&quot;list of desired services&quot;) parser.add_option(&quot;-r&quot;,&quot;--running&quot;,action=&quot;store&quot;, dest=&quot;runningServicesFileName&quot;, help=&quot;dump of currently running services&quot;) parser.add_option(&quot;-c&quot;,&quot;--config&quot;,action=&quot;store&quot;, dest=&quot;configServicesDirectoryName&quot;, help=&quot;directory with desired services lists&quot;) (opts, args) = parser.parse_args() # Outputting a help message and exiting in case -h switch was passed if opts.help:   print &quot;&quot;&quot;   This script checks all services on selected Windows machines and sends out a report.    checkServices.py [argument 1] [\/argument 2] [\/argument 3]    Arguments:      Description:    -c, --config - specifies the location of the directory with desired list of services and finds dumps automatically    -d, --desired - specifies the location of the file with the desired list of services.    -r, --running - specifies the location of the file with a dump of running services.   &quot;&quot;&quot;   sys.exit(0)  statusMessage = [] detailsMessage = [] body = [] errorCheck=0 directory='%s\/*' % opts.configServicesDirectoryName  if opts.configServicesDirectoryName:   check=glob.glob(directory)   check.sort()   if len(check)==0:     message('Server status check:Error','The directory has not been found. Please check its location and spelling.')     sys.exit(0)   for i in check:     desiredServicesFileName=i     runningServicesFileName=i.replace('desiredServices', 'runningServices')     #print runningServicesFileName     status,details,errors=processing(runningServicesFileName,desiredServicesFileName)     errorCheck=errorCheck+errors     statusMessage.append(status)     detailsMessage.append(details)   body='%s\\n\\n%s' % ('\\n'.join(statusMessage),'\\n'.join(detailsMessage))    if errorCheck==0:     message('Server status check:OK',body)   else:     message('Server status check:Errors',body)   if opts.desiredServicesFileName or opts.desiredServicesFileName:   status,details,errors=processing(opts.runningServicesFileName,opts.desiredServicesFileName)   message(status,details) <\/code><\/pre>\n<p>  \u0424\u0430\u0439\u043b\u044b \u0434\u0430\u043c\u043f\u043e\u0432 \u0438 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u0441 \u0436\u0435\u043b\u0430\u0435\u043c\u044b\u043c\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043c\u0435\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u0438\u043c\u0435\u043d\u0430. \u0421\u043f\u0438\u0441\u043e\u043a \u0441 \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043c\u044b \u0441\u043b\u0435\u0434\u0438\u043c (desiredServices) \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0433\u043e \u0432\u0438\u0434\u0430:<\/p>\n<pre><code class=\"bash\">Acronis VSS Provider AcronisAgent AcronisFS     AcrSch2Svc       <\/code><\/pre>\n<p>  \u0421\u043a\u0440\u0438\u043f\u0442 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441\u044b, \u0430 \u043f\u043e\u0442\u043e\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u044d\u0442\u043e \u0432 \u043e\u0434\u043d\u043e email \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0431\u0443\u0434\u0435\u0442 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0432\u0441\u0435 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0432 \u0442\u0435\u043c\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0438\u043b\u0438, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438, \u0430 \u0432 \u0442\u0435\u043b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0440\u0430\u0441\u043a\u0440\u044b\u0432\u0430\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 \u044d\u0442\u043e \u043e\u0448\u0438\u0431\u043a\u0438. \u0414\u043b\u044f \u043d\u0430\u0441 \u043e\u0434\u043d\u043e\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432 \u0434\u0435\u043d\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0430\u043d\u043d\u0438\u043c \u0443\u0442\u0440\u043e\u043c \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u043d\u0430\u0448\u0438\u0445 Windows \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432. \u0427\u0442\u043e\u0431\u044b \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0441 Windows \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 \u043c\u0430\u0448\u0438\u043d\u0443 \u0441 \u043b\u0438\u043d\u0443\u043a\u0441\u043e\u043c, \u043c\u043e\u0439 \u043a\u043e\u043b\u043b\u0435\u0433\u0430 \u043f\u043e\u043c\u043e\u0433 \u043c\u043d\u0435 \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0431\u0430\u0448 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c:<\/p>\n<pre><code class=\"bash\">#!\/bin\/bash  mkdir runningServices smbclient --user=&quot;user%password&quot; &quot;\/\/ServerName.domain.com\/software&quot; -c &quot;lcd runningServices; prompt; cd services; mget *.txt&quot;  cd runningServices for X in `ls *.txt`; do   iconv -f utf16 -t ascii $X &gt; $X.asc   mv $X.asc $X done <\/code><\/pre>\n<p>  \u042d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0442\u0430\u043a \u0436\u0435 \u043c\u0435\u043d\u044f\u0435\u0442 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0443, \u0438\u0431\u043e \u043d\u0430 \u043c\u043e\u0435\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 Linux \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0442\u0435\u043b \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 UTF16. \u0414\u0430\u043b\u0435\u0435, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u0447\u0438\u0449\u0430\u0442\u044c \u043f\u0430\u043f\u043a\u0443 \u043e\u0442 \u0434\u0430\u043c\u043f\u043e\u0432 \u0441 \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438 \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0431\u0430\u0442\u043d\u0438\u043a \u0432 Task Scheduler \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c PowerShell \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0442\u0438\u0440\u0430\u0435\u0442 \u0434\u0430\u043c\u043f\u044b.<br \/>  \u0411\u0430\u0442\u043d\u0438\u043a:  <\/p>\n<pre><code class=\"bash\">powershell.exe C:\\Software\\Services\\delete.ps1 <\/code><\/pre>\n<p>  Poweshell \u0441\u043a\u0440\u0438\u043f\u0442:  <\/p>\n<pre><code class=\"vbscript\">remove-item C:\\Software\\Services\\ServerName.txt <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0435\u043a\u0442 \u043f\u0440\u0435\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b \u0441\u043e\u0431\u043e\u0439 2 \u0446\u0435\u043b\u0438 \u2014 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u041f\u0438\u0442\u043e\u043d\u0443. \u042d\u0442\u043e \u043c\u043e\u0439 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043e\u0441\u0442 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0443\u0436\u0435 \u043e\u0436\u0438\u0434\u0430\u044e \u043d\u0430\u043f\u043b\u044b\u0432 \u043a\u0440\u0438\u0442\u0438\u043a\u0438 \u0432 \u0441\u0432\u043e\u0439 \u0430\u0434\u0440\u0435\u0441. \u0415\u0441\u043b\u0438 \u0443 \u0412\u0430\u0441 \u0435\u0441\u0442\u044c \u043a\u0430\u043a\u0438\u0435-\u043b\u0438\u0431\u043e \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u043e \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044e \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0442\u043e \u043c\u0438\u043b\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0448\u0443, \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u0435\u0441\u044c. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u044d\u0442\u043e \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u0443-\u043d\u0438\u0431\u0443\u0434\u044c \u043d\u0443\u0436\u043d\u043e\u0439, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u0438 \u0441 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u043e email \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b. \u041c\u043e\u0436\u0435\u0442, \u0447\u0442\u043e \u043f\u043b\u043e\u0445\u043e \u0438\u0441\u043a\u0430\u043b. \t\t\t \t\t\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\/156597\/\"> http:\/\/habrahabr.ru\/post\/156597\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" src=\"http:\/\/www.superiormessagecenter.com\/images\/Man%20on%20Laptop.jpg\" alt=\"image\"\/><\/p>\n<p>  \u041f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f:<br \/>  \u0421\u0430\u043c \u044f \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0432 \u0442\u0435\u0445\u043e\u0442\u0434\u0435\u043b\u0435 \u043e\u0434\u043d\u043e\u0439 \u0431\u0440\u043e\u043a\u0435\u0440\u0441\u043a\u043e\u0439 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0432 \u0422\u043e\u0440\u043e\u043d\u0442\u043e, \u041a\u0430\u043d\u0430\u0434\u0435. \u0422\u0430\u043a \u0436\u0435 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u043e\u0444\u0438\u0441 \u0432 \u041a\u0430\u043b\u0433\u0430\u0440\u0438. \u041a\u0430\u043a-\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u043f\u043b\u0430\u043d\u043e\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f Windows \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u043d\u0430 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435 \u0432 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c \u043e\u0444\u0438\u0441\u0435 \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0441\u044f W32Time \u0441\u0435\u0440\u0432\u0438\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441 \u0432\u043d\u0435\u0448\u043d\u0438\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u043e\u043a\u043e\u043b\u043e \u043d\u0435\u0434\u0435\u043b\u0438 \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441\u0431\u0438\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430 20 \u0441\u0435\u043a\u0443\u043d\u0434. \u041d\u0430\u0448\u0438 \u0440\u0430\u0431\u043e\u0447\u0438\u0435 \u0441\u0442\u0430\u043d\u0446\u0438\u0438 \u043d\u0430 \u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u0438 \u0432\u0440\u0435\u043c\u044f \u0441 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430. \u0421\u0430\u043c\u0438 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c. \u0412 \u0442\u043e\u0440\u0433\u0430\u0445 \u0432\u0440\u0435\u043c\u044f \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u043e, \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043c\u043e\u0436\u0435\u0442 \u0440\u0435\u0448\u0438\u0442\u044c \u043c\u043d\u043e\u0433\u043e\u0435. \u041f\u0435\u0440\u0432\u044b\u043c\u0438 \u0440\u0430\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u0438 \u043d\u0430\u0448\u0438 \u0431\u0440\u043e\u043a\u0435\u0440\u044b. \u041d\u0430\u0448 \u043e\u0442\u0434\u0435\u043b \u0442\u0435\u0445\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043f\u043e \u0441\u0443\u0442\u0438 \u0438\u0437 3 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0437\u0430 \u044d\u0442\u043e \u0440\u0430\u0441\u043f\u0435\u043a\u043b\u0438. \u041d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u0441\u0440\u043e\u0447\u043d\u043e \u0447\u0442\u043e-\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c. \u0420\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0431\u044b\u043b\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0433\u0440\u0443\u043f\u043f\u043e\u0432\u043e\u0439 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0442\u0441\u044b\u043b\u0430\u043b\u0430 \u0432\u0441\u0435 \u043c\u0430\u0448\u0438\u043d\u044b \u043a \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u043c\u0443 NTP \u0441\u0435\u0440\u0432\u0435\u0440\u0443, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u043c\u0443 \u043d\u0430 CentOS. \u0415\u0449\u0435 \u0431\u044b\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 DC Barracuda Agent, \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u043c \u0437\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0434\u043e\u043c\u0435\u043d\u0430 \u0441 \u043d\u0430\u0448\u0438\u043c \u0412\u0435\u0431 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u043c, \u0438 \u0435\u0449\u0435 \u043f\u0430\u0440\u043e\u0447\u043a\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043f\u0440\u0438\u0447\u0438\u043d\u044f\u043b\u0430 \u043d\u0430\u043c \u043f\u043e\u0440\u043e\u0439 \u0431\u0435\u0441\u043f\u043e\u043a\u043e\u0439\u0441\u0442\u0432\u043e. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u0440\u0435\u0448\u0438\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u043f\u0430\u0440\u0443 \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438. \u042f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0433\u0443\u0433\u043b\u0438\u043b \u0438 \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0439, \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0438\u0441\u043a\u0438\u0445 \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043d\u043e \u0442\u0430\u043a \u043a\u0430\u043a \u044f \u0445\u043e\u0442\u0435\u043b \u043d\u0430\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u043a\u0430\u043a\u043e\u043c\u0443-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432\u043e\u043c\u0443 \u044f\u0437\u044b\u043a\u0443, \u0442\u043e \u0432\u044b\u0437\u0432\u0430\u043b\u0441\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 \u041f\u0438\u0442\u043e\u043d\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0430\u0448\u0435\u0433\u043e \u043c\u0435\u0441\u0442\u043d\u043e\u0433\u043e \u043b\u0438\u043d\u0443\u043a\u0441-\u0433\u0443\u0440\u0443. \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435 \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u0440\u043e\u0441\u043b\u043e \u0432 \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0432\u0441\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b, \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044f \u0438\u0445 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0436\u0435\u043b\u0430\u0435\u043c\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u043d\u0430\u0434\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b.<\/p>\n<p>  \u0420\u0435\u0448\u0435\u043d\u0438\u0435:  <\/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-156597","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/156597","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=156597"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/156597\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=156597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=156597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=156597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}