Archive for March, 2010

SCCM 2007 – Entendendo a descoberta de atributos do Active directory

Saturday, March 20th, 2010

Ao fazer a descoberta de recursos do Active Directory, a opção “Active directory attribute” pode ser estendida para trazer mais informações. Quando esta opção é utilizada, o novo atributo fica com No na coluna System Required, conforme imagem abaixo:

Quando existe alguma adição de novos recursos, o SCCM registra essas informações nos logs, arquivos de controle e no SQL Server.

No arquivo de log <diretório de instalação>\logs\ad*.log

SMS_EXECUTIVE started SMS_AD_SYSTEM_DISCOVERY_AGENT as thread ID 3744 (0xEA0).

** Service Thread is starting **

Component setting of ACTIVE was specified in the site control file.

Removing redundant containers and validating them…

The Run Count value in the site control file is 2.

The Schedule token value in the site control file is 0001170000500008.

Optional attributes count = 2

!!!!Valid AD container 0: LDAP://OU=HEADQUARTERS,DC=DOTNETWORK,DC=INTRANET

!!!!Valid AD container 1: LDAP://OU=DOMAIN CONTROLLERS,DC=DOTNETWORK,DC=INTRANET

Current time is 20/03/2010 05:59:40 GMT Standard Time

Last Run time is 20/03/2010 05:55:42 GMT Standard Time

Next Run time is 21/03/2010 00:00:00 GMT Standard Time

The agent does not need to run now, therefore exit.

*** Shutting Down ************************

A alteração é gravada no arquivo de controle do site, em <diretório de instalação>\inboxes\sitectrl.box\sitectrl.ct0

SITE CONTROL FILE [6221][4.0]

….

BEGIN_COMPONENT

<SMS_AD_SYSTEM_DISCOVERY_AGENT>


BEGIN_PROPERTY_LIST

<AD Attributes>

<lastLogontimeStamp>

<pwdLastSet>

END_PROPERTY_LIST


END_COMPONENT

Após essas alterações, quando a descoberta de recursos ocorre novamente, seja através da seleção da opção Run discovery as soon as possible na aba Pooling Schedule ou quando agendado, o SCCM registra:

No log <diretório de instalação>\logs\ad*.log


Starting the data discovery.

….

System SCCM01 is accessible. IP address is 10.0.0.3.


System SCCM01. AD Site Name Headquarters. Subnet 10.0.0.0/24


DDR was written for system ‘SCCM01′ – C:\Program Files\Microsoft Configuration Manager\inboxes\auth\ddm.box\ads5j61j.DDR at 3/20/2010 6:14:27.


AD Discovery under container LDAP://OU=HEADQUARTERS,DC=DOTNETWORK,DC=INTRANET found 7 objects


*** Shutting Down ************************

No arquivo .ddr criado em <diretório de instalação>\inboxes\auth\ddm.box\*.ddr


BEGIN_PROPERTY

<8><NetBIOS Name><11><32><SCCM01>

END_PROPERTY


BEGIN_PROPERTY

<0><pwdLastSet><20><32><129131299021562500>

END_PROPERTY


AGENTINFO<SMS_AD_SYSTEM_DISCOVERY_AGENT><001><03/20/2010 06:14:27>


No Log <diretório de instalação>\logs\smsdbmon.log pode-se ver a inserção do novo atributo no banco de dados

RCV: INSERT on DiscPropertyDefs for DiscProps_Add_SMSProv [5 pwdLastSet ][12345655-0E7C-48B1-89E5-0F2C917B95B0]

SND: Sent 00000016DiscPropertyDefs0006insert000150010pwdLastSet0000 [12345655-0E7C-48B1-89E5-0F2C917B95B0]

E no log <diretório de instalação>\logs\smsprov.log pode-se ver a mesma inserção mais detalhada

[BDC][Sat 03/20/2010 06:16:30]:ReadFromSQLNamedPipe – Received Connect, examining data…

[BDC][Sat 03/20/2010 06:16:30]:ReadSQLNotification – buffer=:00000016DiscPropertyDefs0006insert000150010pwdLastSet0000

[BDC][Sat 03/20/2010 06:16:30]:ReadSQLNotification – table name:DiscPropertyDefs

[BDC][Sat 03/20/2010 06:16:30]:ReadSQLNotification – action:insert

[BDC][Sat 03/20/2010 06:16:30]:ReadSQLNotification – Key Value:5

[BDC][Sat 03/20/2010 06:16:30]:ReadSQLNotification – Key Value:pwdLastSet

[BDC][Sat 03/20/2010 06:16:30]:CSspClassManager::PushNotifyAction, addr = 29321280

[BDC][Sat 03/20/2010 06:16:30]:ReadFromSQLNamedPipe – Waiting on connect from SQL Monitor

[DB8][Sat 03/20/2010 06:16:30]:CSspNotificationThread WaitForSingleObject – Got Notify Event

[DB8][Sat 03/20/2010 06:16:30]:CSspClassManager::PopNotifyAction

[DB8][Sat 03/20/2010 06:16:30]:Action addr = 29321280

[DB8][Sat 03/20/2010 06:16:30]:CSspNotificationThread Calling Do action

[DB8][Sat 03/20/2010 06:16:30]:CSspNotifyAction :: DoAction

[DB8][Sat 03/20/2010 06:16:30]:CSspClassManager::ProcessSQLNotification…

[DB8][Sat 03/20/2010 06:16:30]:ProcessSQLNotification…calling Resource Manager Refreshj

[DB8][Sat 03/20/2010 06:16:30]:UpdateArchitectureGroup: ArchKey=5

[DB8][Sat 03/20/2010 06:16:30]:UpdateInventoryGroup: PropertyName=pwdLastSet

[DB8][Sat 03/20/2010 06:16:30]:Dynamic : SMS_R_System (SMS_Resource),addr=0×1b2ec68

[DB8][Sat 03/20/2010 06:16:30]:RegisterExtensionClass , using NULL wbem ctx ptr

[DB8][Sat 03/20/2010 06:16:30]:CSspClassManager::PopNotifyAction

[DB8][Sat 03/20/2010 06:16:30]:CSspNotificationThread::Run, waiting on NotifyEvent..

Depois de finalizar o discovery, o mesmo pode ser validado no SQL Server da seguinte forma:

  1. Verificando se o atributo foi inserido no banco de dados: select * from DiscPropertyDefs where PropertyName like ‘%pwdLastSet%’


  1. Verificando qual tabela esta sendo utilizada: select disa.* from DiscoveryArchitectures disA, DiscPropertyDefs disP where disP.PropertyName like ‘%pwdLastSet%’ and disa.DiscArchKey = disp.DiscArchKey


  1. Verificando se o atributo foi adicionado a tabela relacionada: sp_help System_DISC


  1. Verificando se os dados foram inseridos: select name0, pwdLastSet0 from System_DISC


  1. Verificando se o atributo pode ser visualizado em relatórios: select name0, pwdLastSet0 from v_R_System


  1. Por fim, verificando se o atributo pode ser visualizado em queries/collections dentro do SCCM: select SMS_R_System.Name, SMS_R_System.pwdLastSet from SMS_R_System


Nota: Alguns atributos do Active Directory, como pwdLastset, lastlogontimeStamp, são gravados como números inteiros ao invés de data/hora. Para solucionar esse problema basta fazer a conversão. No SQL Server, utilize: CAST((s.lastLogonTimestamp0 / 864000000000.0 – 109207) AS DATETIME)

Guia v6.0

Thursday, March 18th, 2010

Essa é apenas um post rápido..

Sei que ultimamente tenho deixado o blog meio de “lado”, mas é por uma boa causa…

A versão 6.0 do guia esta quase pronta… na verdade esta em fase de revisão ortografica e tecnica. Se tudo ocorrer bem, em algumas semanas estará pronta para download…fique ligado para maiores informações

Os tópicos cobertos nessa versão são:

• Backup
• Movendo o Banco de Dados SCCM para outro Servidor
• Movendo o Banco de Dados WSUS para outro Servidor
• Instalando Windows User State Migration Tool (USMT)
• Criando o Pacote Windows User State Migration Tool (USMT)
• Instalando o State Migration Point
• Management Point
• Verificando se o State Migration point foi instalado com sucesso
• Troubleshooting Distribuição de Software
• Troubleshooting inventário de hardware
• Troubleshooting inventário de software
• Capturando uma Imagem de Sistema Operacional já existente
• Troubleshooting Captura de Imagens
• Troubleshooting Task Sequences
• Troubleshooting WinPE
• Configurando Site Systems em NLB
• Configurando o Management Point em Network Load Balance
• Configurando o Software Update Point em Network Load Balance
• Asset Intelligence
• Instalando um Branch Distribution point
• Troubleshooting software update
• Network Access Protection
• Recomendações de Segurança
• Ferramentas extras para SCCM
• Troubleshooting Acesso Remoto

Guias SCCM disponíveis para download

Thursday, March 4th, 2010

Acabei de ficar sabendo que existem alguns guias de SCCM disponíveis para download. Vale a pena dar 1 olhada

System Center Configuration Manager 2007 Deployment Guide
This guidance provides information on how to design and deploy a Configuration Manager infrastructure within a healthcare organization. It allows the healthcare organization to be confident that the Configuration Manager infrastructure being designed and deployed is using current best practice.


System Center Configuration Manager 2007 Operating System Deployment Guide
This guidance helps healthcare organizations when implementing and using the operating system deployment feature of Configuration Manager. This guidance provides the information required to quickly become familiar with the operating system deployment feature and understand the appropriate decisions that need to be made in order to deploy and use the solution. It also provides step-by-step guidance showing how to install and configure the required components, and also how to use the most common features.

System Center Configuration Manager 2007 Software Distribution Guide
This guidance provides the information required to quickly become familiar with the software distribution feature and understand the appropriate decisions that need to be made in order to deploy and use the solution. It also provides step-by-step guidance showing how to create the objects required within Configuration Manager to perform the software distribution.
System Center Configuration Manager Software Update Management Guide
This guidance provides the information required to quickly become familiar with the software update feature, and understand the appropriate decisions that need to be made in order to deploy and use the solution. It also provides step-by-step guidance showing how to install and configure the required components, and how to use the most common features.