buy propecia propecia

Comments

Thu 03.27.08: Number of Outbound SMTP connections

I need to find out how to get a list of all of the Outbound SMTP connections that our Exchange server has done over a time period for load issues. To do this, I decided to use LogParser.

LogParser 2.2 can be found here:
www.microsoft.com



First you need to go into the SMTP properties and make sure that you are logging the following advanced log fields: cs-username, and cs-method. I turn on all logging so that I can run statistics on some of the stuff after I import the data.

To get just a list of all of the connections to outbound SMTP hosts, I used the following Log Parser command line:

logparser "SELECT * FROM \\pr-ex1\c$\WINDOWS\system32\LogFiles\SMTPSVC1\ex*.log WHERE cs-username LIKE 'OutboundConnectionCommand' AND cs-method = 'QUIT'" -o:CSV > SMTP_Outbound.CSV


This will look at all the log files found on a server named pr-ex1 and only return the ones that have OutboundConnectionCommand in the cs-username field and QUIT in the cs-method field.

Basically it will return a result when it closed the connection with the remote SMTP server. It will save it as file called SMTP_Outbound.CSV in CSV format (comma delimited) in directory you are running logparser from.

Item Rating Information....

item rate
Total Votes: 12 - Rating: 1.00

Please rate this item:

Comments made

To get it so that it shows you the number of emails, change the QUIT to RCPT as in the following line:

logparser "SELECT * FROM \\pr-ex1\c$\WINDOWS\system32\LogFiles\SMTPSVC1\ex*.log WHERE cs-username LIKE 'OutboundConnectionCommand' AND cs-method = 'RCPT'" -o:CSV > SMTP_Outbound-email.CSV
Thu 03.27.08 10:57:53
To view the number of Inbound connections:

logparser "SELECT * FROM \\pr-ex1\c$\WINDOWS\system32\LogFiles\SMTPSVC1\ex*.log WHERE cs-username NOT LIKE 'OutboundConnectionCommand' AND cs-method = 'QUIT'" -o:CSV > c:\temp\SMTP_Outbound.CSV
Mon 06.02.08 16:03:07

Add comment

:

:
:



Disclaimer: We hope that the information on these pages is valuable to you. Your use of the information contained in these pages, however, is at your sole risk. All information on these pages is provided "as -is", without any warranty, whether express or implied, of its accuracy, completeness, fitness for a particular purpose, title or non-infringement, and none of the third-party products or information mentioned in the work are authored, recommended, supported or guaranteed by site owners or operators. Further, the site owners and operators shall not be liable for any damages you may sustain by using this information, whether direct, indirect, special, incidental or consequential, even if it has been advised of the possibility of such damages.
 

Warning: main(/home/prosphot/public_html/smog/track/write_logs.php) [function.main]: failed to open stream: No such file or directory in /home/prosphot/public_html/blog/skins/leaf/footer.php on line 3

Warning: main(/home/prosphot/public_html/smog/track/write_logs.php) [function.main]: failed to open stream: No such file or directory in /home/prosphot/public_html/blog/skins/leaf/footer.php on line 3

Warning: main() [function.include]: Failed opening '/home/prosphot/public_html/smog/track/write_logs.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/prosphot/public_html/blog/skins/leaf/footer.php on line 3
cialis compare levitra viagra discount cialis canada best cialis price viagra cialis cialis generic levitra viagra cialis free sample cialis prescription cialis versus viagra cialis no prescription cialis tablet generic cialis cialis without prescription cialis drug buy cheap cialis online buy cialis generic buy discount cialis buy tadalafil cialis discount cialis cialis price prescription cialis cialis side effects buy cialis in the uk cheapest cialis generic cialis purchase cialis discount generic cialis cialis tadalafil cialis buy cheap cialis purchase cialis cialis levitra viagra comparison buying generic cialis cialis viagra cheapest cialis price viagra cialis levitra cialis vs viagra buy cialis generic online cialis uk cialis online cialis levitra viagra cialis mail order cialis sample canada cialis cialis levitra cialis sale usa