Delete SMTP Protocol Logs operation


The Delete SMTP Protocol Logs wrapper deletes the protocol logs (.log files) for the SMTP Virtual Server.

The following table describes the input parameters for the Delete SMTP Protocol Logs wrapper.

 Input parameters for the Delete SMTP Protocol Logs wrapper

The following figure shows a XML sample of an adapter request for the Delete SMTP Protocol Logs wrapper.

XML sample of an adapter request for the Delete SMTP Protocol Logs wrapper

<microsoft-exchange-request>
<command>
  <command-name>Delete-SMTPProtocolLogs</command-name>
   <parameters>
    <parameter>
     <name>SMTPVirtualServerName</name>
     <value>SMTPKamal</value>
    </parameter>
   </parameters>
  </command>
</microsoft-exchange-request>

The following figure illustrates the adapter response for the Delete SMTP Protocol Logs wrapper.

XML sample of the adapter response for the Delete SMTP Protocol Logs wrapper

<microsoft-exchange-response>
<metadata>
  <status>success</status>
</metadata>
  <commands-output>
   <command-output>
     <metadata>
       <command>cscript "C:\Program Files\BMC Software\AO\CDP_75FCS
  \server\grids\KGrid\library\adapters\bmc-adapter-microsoft-exchange
 -v2003-actor_7.6.00.00-SNAPSHOT\scripts\deleteSMTPProtocolLogs.vbs"  
 "SMTPKamal"</command>
         <line-count>13</line-count>
         <execution-milliseconds>4688</execution-milliseconds>
         <exit-code>0</exit-code>
         <status>success</status>
       </metadata>
       <output>
         <line index = "1">Attempting to connect to remote host...</line>
         <line index = "2">Initialising rctrlx server component...</line>
         <line index = "3">Executing remote application: cmd /c cscript
 "%windir%\deleteSMTPProtocolLogs.vbs" "SMTPKamal"</line>
         <line index = "4">Remote application process ID: 6608</line>
         <line index = "5">Microsoft (R) Windows Script Host
 Version 5.6</line>
         <line index = "6">Copyright (C) Microsoft Corporation 1996-2001.
 All rights reserved.</line>
         <line index = "7">SMTP Server : SMTPKamal</line>
         <line index = "8">Logging Type : Microsoft IIS Log File Format</line>
         <line index = "9">Log File Directory :
 C:\WINDOWS\System32\LogFiles\SMTPSVC2</line>
         <line index = "10">Number of Log files in Directory : 1</line>
         <line index = "11">Deleting SMTP protocol log files...</line>
         <line index = "12">-----------------------------------</line>
         <line index = "13">Remote application exited with code: 0</line>
      </output>
    </command-output>
  </commands-output>
</microsoft-exchange-response>

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*