Instalando o Exchange Server 2003 - Parte 3

Por Adriano Machado

5 - Executando o comando "DCDIAG"

5.1 - Agora vamos executar o comando descrito na 4º etapa que é de rodar o comando "DCDIAG" para verificar a conectividade com alguns recursos e a resolução de nomes DNS.

5.2 - Clique em "Start", clique em "Run" ou aperte a tecla "Win + R", aparecerá à janela abaixo.

Cc668507.ExchangeServer2003_301(pt-br,TechNet.10).jpg

5.3 - Em "Run" digite "CMD" no campo "Open" e clique em "OK" como a imagem abaixo.

Cc668507.ExchangeServer2003_302(pt-br,TechNet.10).jpg

5.4 - Vai aparecer uma janela de prompt como mostra a figura abaixo, digite "CD\" para ir à para a raiz "C:\"

PS: Em alguns casos você terá que acessar a pasta padrão da instalação do Support Tools, já em outros casos não é necessário como o Windows Server 2003, já em instalações com o Windows 2000 já vi casos que para rodar os comandos dcdiag e netdiag era necessário acessar o diretório e de instalação.

Cc668507.ExchangeServer2003_303(pt-br,TechNet.10).jpg

5.5 - Logo em seguida digite "CD PR" e aperte a tecla "TAB" à primeira nomenclatura com inicio "PR" caso não tenha nenhuma outra pasta em sua raiz que inicie com "PR" aparecerá seu prompt ficará como a imagem abaixo, clique em "ENTER".

Cc668507.ExchangeServer2003_304(pt-br,TechNet.10).jpg

5.6 - Em seguida digite "CD SUPP" o mesmo comentário dado acima é valido para este caso também para a nomenclatura de nomes. A janela do prompt ficara idêntica à janela abaixo. Em seguida pressione "ENTER"

Cc668507.ExchangeServer2003_305(pt-br,TechNet.10).jpg

5.7 - Certifique-se que agora você está dentro da pasta "c:\program Files\Support Tools" como ilustra a imagem abaixo.
PS: Está sendo considerado o caso de a instalação o "Windows Support Tools" ter sido instalado na raiz em seu diretório padrão.

Cc668507.ExchangeServer2003_306(pt-br,TechNet.10).jpg

5.8 - No prompt de comando digite o comando "DCDIAG" e pressione "ENTER"

Cc668507.ExchangeServer2003_307(pt-br,TechNet.10).jpg

5.9 - Serão iniciados os testes para verificar a conectividade e resolução de nomes DNS.

Cc668507.ExchangeServer2003_308(pt-br,TechNet.10).jpg

5.10 - Logo após a verificação em seu termino você terá um resumo na tela do prompt. Eu particularmente não gosto de ler log em tela de prompt, eu utilizo o comando com mais outro recurso para que possa ser gerado o mesmo log em TXT como mostrarei abaixo. Vou aproveitar a oportunidade para mostrar outro tipo de acesso ao Support Tools.

5.11 - Clique em "START" clique em "PROGRAMS" clique em "WINDOWS SUPPORT TOOLS" e clique em "COMMAND PROMPT"

Cc668507.ExchangeServer2003_309(pt-br,TechNet.10).jpg

5.12 - Abrira a janela abaixo

Cc668507.ExchangeServer2003_306(pt-br,TechNet.10).jpg

5.13 - Digite o seguinte comando "DCDIAG >DCDIAG.TXT" e tecle "ENTER".

Cc668507.ExchangeServer2003_310(pt-br,TechNet.10).jpg

5.14 - Aguarde alguns segundos, e quando aparecer a tela abaixo significa que o log foi gerado no local especificado pelo comando.

Cc668507.ExchangeServer2003_311(pt-br,TechNet.10).jpg

5.15 - Ai você se pergunta "Onde esse log desta demonstração está sendo gerado". Pois bem com esse comando ele está sendo gerando na raiz. Como ilustra a imagem abaixo.

Cc668507.ExchangeServer2003_312(pt-br,TechNet.10).jpg

5.16 - Abaixo um exemplo do log do comando "DCDIAG".

Domain Controller Diagnosis

Performing initial setup:
   Done gathering initial info.

Doing initial required tests
   
   Testing server: Default-First-Site-Name\SRVEXCH
      Starting test: Connectivity
         ......................... SRVEXCH passed test Connectivity

Doing primary tests
   
   Testing server: Default-First-Site-Name\SRVEXCH
      Starting test: Replications
         ......................... SRVEXCH passed test Replications
      Starting test: NCSecDesc
         ......................... SRVEXCH passed test NCSecDesc
      Starting test: NetLogons
         ......................... SRVEXCH passed test NetLogons
      Starting test: Advertising
         ......................... SRVEXCH passed test Advertising
      Starting test: KnowsOfRoleHolders
         ......................... SRVEXCH passed test KnowsOfRoleHolders
      Starting test: RidManager
         ......................... SRVEXCH passed test RidManager
      Starting test: MachineAccount
         ......................... SRVEXCH passed test MachineAccount
      Starting test: Services
         ......................... SRVEXCH passed test Services
      Starting test: ObjectsReplicated
         ......................... SRVEXCH passed test ObjectsReplicated
      Starting test: frssysvol
         ......................... SRVEXCH passed test frssysvol
      Starting test: frsevent
         ......................... SRVEXCH passed test frsevent
      Starting test: kccevent
         ......................... SRVEXCH passed test kccevent
      Starting test: systemlog
         ......................... SRVEXCH passed test systemlog
      Starting test: VerifyReferences
         ......................... SRVEXCH passed test VerifyReferences
   
   Running partition tests on : ForestDnsZones
      Starting test: CrossRefValidation
         ......................... ForestDnsZones passed test CrossRefValidation
      Starting test: CheckSDRefDom
         ......................... ForestDnsZones passed test CheckSDRefDom
   
   Running partition tests on : DomainDnsZones
      Starting test: CrossRefValidation
         ......................... DomainDnsZones passed test CrossRefValidation
      Starting test: CheckSDRefDom
         ......................... DomainDnsZones passed test CheckSDRefDom
   
   Running partition tests on : Schema
      Starting test: CrossRefValidation
         ......................... Schema passed test CrossRefValidation
      Starting test: CheckSDRefDom
         ......................... Schema passed test CheckSDRefDom
   
   Running partition tests on : Configuration
      Starting test: CrossRefValidation
         ......................... Configuration passed test CrossRefValidation
      Starting test: CheckSDRefDom
         ......................... Configuration passed test CheckSDRefDom
   
   Running partition tests on : tech-it
      Starting test: CrossRefValidation
         ......................... tech-it passed test CrossRefValidation
      Starting test: CheckSDRefDom
         ......................... tech-it passed test CheckSDRefDom
   
   Running enterprise tests on : tech-it.com.br
      Starting test: Intersite
         ......................... tech-it.com.br passed test Intersite
      Starting test: FsmoCheck
         ......................... tech-it.com.br passed test FsmoCheck

5.17 - Lembrando que pode ser mudado o lugar de armazenamento do log.

PS: Para tal basta colocar o caminho especifico logo após o sinal de maior ">". Por exemplo, em minha raiz existe uma pasta chamada "Exch" para que eu possa armazenar o log do comando "dcdiag" neste local eu preciso executar o seguinte comando "dcdiag >c:\exch\nome_do_arquivo.txt"

Para um maior detalhe sobre o comando "DCDIAG" é altamente aconselhável a leitura da documentação abaixo.

Dcdiag Overview

https://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/TechRef/1d4ce93c-54f2-4069-a708-251509c38837.mspx

6 - Executando o comando "NETDIAG"

6.1 - em "START" clique em "PROGRAMS" clique em "WINDOWS SUPPORT TOOLS" e clique em "COMMAND PROMPT"

Cc668507.ExchangeServer2003_309(pt-br,TechNet.10).jpg

6.2 - Abrira a janela abaixo

Cc668507.ExchangeServer2003_306(pt-br,TechNet.10).jpg

6.3 - Digite o seguinte comando "NETDIAG>NETDIAG.TXT" e tecle "ENTER".

Cc668507.ExchangeServer2003_310(pt-br,TechNet.10).jpg

6.4 - Já o comando "NETDIAG" demora alguns segundos a mais que o "DCDIAG". Mas quando aparecer a tela abaixo significa que o log foi gerado no local especificado pelo comando.

Cc668507.ExchangeServer2003_311(pt-br,TechNet.10).jpg

6.5 - Já nesta imagem abaixo veja que aparece quero fazer um comentário. Veja que aparece a seguinte mensagem em destaque.

Cc668507.ExchangeServer2003_315(pt-br,TechNet.10).jpg

6.6 - Ai você ta louco de vontade de perguntar; "Sim e ai", e ai pessoal uma dica importante.
É muito comum em alguns servidores que não tem um bom hardware ou que tenham uma carga muito grande com um baixo desempenho esse comando não chegar a ser completado, ele trava e não completa, mas em quase a totalidade dos casos que presenciei eu reparei que existiam grande erros nestes servidores. Caso você tenha algum problema com este comando eu recomendo que primeiramente vá ao "Event Viewer" e localize erros relacionados a sua estrutura.

6.7 - Abaixo um exemplo do log do comando "NETDIAG"

    Computer Name: SRVEXCH
    DNS Host Name: srvexch.tech-it.com.br
    System info : Windows 2000 Server (Build 3790)
    Processor : x86 Family 6 Model 8 Stepping 1, AuthenticAMD
    List of installed hotfixes : 
        KB824151
        KB840987
        KB871250
        KB890046
        KB893066
        KB893756
        KB893803v2
        KB896358
        KB896422
        KB896423
        KB896424
        KB896428
        KB896688
        KB899587
        KB899588
        KB899589
        KB899591
        KB900725
        KB901017
        KB901214
        KB902400
        KB904706
        KB905414
        KB905495
        Q147222


Netcard queries test . . . . . . . : Passed

Per interface results:

    Adapter : Local Area Connection

        Netcard queries test . . . : Passed


        Host Name. . . . . . . . . : srvexch
        IP Address . . . . . . . . : 192.168.1.210
        Subnet Mask. . . . . . . . : 255.255.255.0
        Default Gateway. . . . . . : 192.168.1.1
        Dns Servers. . . . . . . . : 192.168.1.210


        AutoConfiguration results. . . . . . : Passed

        Default gateway test . . . : Passed

        NetBT name test. . . . . . : Passed
        [WARNING] At least one of the <00> 'WorkStation Service', <03> 'Messenger Service', <20> 'WINS' names is missing.

        WINS service test. . . . . : Skipped
            There are no WINS servers configured for this interface.

Global results:

Domain membership test . . . . . . : Passed

NetBT transports test. . . . . . . : Passed
    List of NetBt transports currently configured:
        NetBT_Tcpip_{EC4321DD-78BE-4737-B06B-A88C04191E9A}
    1 NetBt transport currently configured.

Autonet address test . . . . . . . : Passed

IP loopback ping test. . . . . . .  : Passed

Default gateway test . . . . . . . : Passed

NetBT name test. . . . . . . . . . . : Passed
    [WARNING] You don't have a single interface with the <00> 'WorkStation Service', 
    <03> 'Messenger Service', <20> 'WINS' names defined.

Winsock test . . . . . . . . . . . . .  : Passed

DNS test . . . . . . . . . . . . . . . .  : Passed
    PASS - All the DNS entries for DC are registered on DNS server '192.168.1.210'.

Redir and Browser test . . . . . . : Passed
    List of NetBt transports currently bound to the Redir
        NetBT_Tcpip_{EC4321DD-78BE-4737-B06B-A88C04191E9A}
    The redir is bound to 1 NetBt transport.

    List of NetBt transports currently bound to the browser
        NetBT_Tcpip_{EC4321DD-78BE-4737-B06B-A88C04191E9A}
    The browser is bound to 1 NetBt transport.

DC discovery test. . . . . . . . . . : Passed

DC list test . . . . . . . . . . . . . .  : Passed

Trust relationship test. . . . . . : Skipped

Kerberos test. . . . . . . . . . . .  : Passed

LDAP test. . . . . . . . . . . . . . .  : Passed

Bindings test. . . . . . . . . . . . . : Passed

WAN configuration test . . . . .: Skipped
    No active remote access connections.

Modem diagnostics test . . . . : Passed

IP Security test . . . . . . . . . . .: Skipped

    Note: run "netsh ipsec dynamic show /?" for more detailed information

The command completed successfully

6.8 - Pessoal, caso um dia ao executar vocês venha a se deparar com o problema da imagem abaixo

Cc668507.ExchangeServer2003_316(pt-br,TechNet.10).jpg

6.9 - Ela se dá em maquina com o Windows XP SP2 com o "Windows Support Tools" para resolver este problema "Recomendo desinstalar o "Windows Support Tools" do Windows 2003" e instalar o "Windows Support Tools" do Windows XP.

Para maiores informações sobre o comando "NETDIAG" é altamente aconselhável a leitura da documentação abaixo.

Netdiag Overview
https://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/TechRef/cf4926db-87ea-4f7a-9806-0b54e1c00a77.mspx

"Para continuar este artigo leia; Guia - Instalando passo a passo o Exchange Server 2003 - Parte 4"

Bom pessoal até a próxima.

Abraço a Todos

Adriano Machado ®
Microsoft TechNet Mesa de Brasília
www.tech-it.com.br