4 de junho de 2008

Exchange 2007 Content Agent Log Message Tracker GUI

Andava para escrever há séculos sobre este fantástico script que o Glen Scales escreveu, parece que é desta! Este pedaço de código em PowerShell, Exchange 2007 Content Agent Log Message Tracker Gui, permite facilmente pesquisar os logs relativos ao Content Filtering Agent.

Embora seja possível manuasear os logs dos agentes antispam utilizando apenas PowerShell puro e duro, tal como o Bharat tão bem explica neste post Exchange Server 2007: Managing And Filtering Anti-Spam Agent Logs, para todos aqueles que não gostam da linha de comandos, este script pode ser uma bóia de salvação.

Este é o aspecto do GUI (clique para aumentar):

De acordo com as palavras do Glen, aqui fica fica uma breve introdução às potencialidades do script:

  • There are textboxes to allows you to search based on the from and/or To address.
  • There is a drop down list to allow you to select a SCL level to look at so you can choose to filter by only messages that have been assigned a specific SCL value.
  • The Extra sections has the aggregate options. Currently it has four aggregate option it can aggregate:
    • By SCL this shows you by SCL Value how many messages where received between the dates specified
    • By Receiver will show you grouped by receiver how many messages have been received for each SCL value
    • By Sender will show you grouped by Sender(P1) how many messages have been received for each SCL value
    • By Date will show you by Date how many messages have been received for each SCL value.

Se quiserem criar um shortcut para lançar o script, e partindo do princípio que este foi gravado na pasta "%ProgramFiles%\Microsoft\Exchange Server\Scripts\", esta é a linha de comando necessária:

%windir%\system32\windowspowershell\v1.0\powershell.exe -PSConsoleFile "C:\Program Files\Microsoft\Exchange Server\bin\exshell.psc1" -command ". 'C:\Program Files\Microsoft\Exchange Server\Scripts\cagentTracker.ps1'"

Se os resultados obtidos com esta ferramenta não forem suficientes, fiquem sabendo que o Exchange inclui, out-of-the-box, alguns scripts de PowerShell que constroem alguns relatórios bem interessantes. Mais uma vez o Bharat fez um excelente trabalho em descrevê-los: Keeping tabs on Antispam filters: A few handy scripts in Exchange Server 2007.

Sem comentários: