techdays seminar – 23 октября

23 октября 2009 года в московском офисе Microsoft прошел семинар Techdays, мои заметки по данному мероприятию.

23 октября 2009 года в московском офисе Microsoft прошел семинар Techdays, мои заметки по данному мероприятию.
В случае когда пользователь удален из Active Directory, и его мейлбокс не появляется в EMC (консоли Exchange), все не так страшно – все восстановимо и даже не из резервных копий. Ниже ссылки.
Can’t see Deleted Mailbox in Disconnected Mailbox under Recipient Configuration - http://exchangeshare.wordpress.com/
How do I restore a deleted Exchange 2007 user? or A funny thing happened on the way to a reconnect? - http://blog.pennic.com/?p=4
Восстановление отдельного почтового ящика в Exchange Server 2003 - http://support.microsoft.com/
О powershell командлете Clean-MailboxDatabase - http://technet.microsoft.com/ru-ru/library/bb124076.aspx
Запуск настройки почты в outlook на 64битных (64bit) платформах на которых не появилась иконка Почта (mail) в панели управления:
control mlcfg32.cpl
если не запускается, то ищем файл mlcfg32.cpl и открываем его с помощью control.exe для 32-х систем.
cls
$1 = Get-DynamicDistributionGroup -Identity «имя динамической группы»
Get-Recipient -Filter $1.RecipientFilter -OrganizationalUnit «domain.intranet/OUname» | ft name, PrimarySmtpAddress

преподаватель: Дмитрий Иванов, Центр: Звезды и С
Цель: Научится устанавливать System Center Operations Manager 2007 и управлять его серверами и вспомогательными ролями System Center Operations Manager 2007 – инструмент для контроля за работой приложений и средство анализа их работы. Продукт позволяет отслеживать работу множества компьютеров в сети, контролируя стабильность и работоспособность многих приложений, включая, к примеру, такие продукты самой корпорации Microsoft, как Active Directory, Microsoft SQL Server, Microsoft Exchange Server.
OpsMgr, определяет состояние сервера, если оно отличается от эталонного состояния – уведомляет оператора.
Audit collection service – сбор событий журналов и по ним формировать отчеты.
Мониторинг.
в основе OpsMgr лежит управляющая группа (создается про установке) – RMS
В удаленном не доверяемом лесу ставиться GMS (Gateway – Шлюз).
Создаем юзера в домене и добавляем его в группы на RMS (не в домене) – Users и Perfomance Monitor.
Ссылка на калькулятор для расчета размера базы под OpsMgr – OpsMgr 2007 R2 Sizing Tool - http://blogs.technet.com/momteam/archive/2009/08/12/operations-manager-2007-r2-sizing-helper.aspx
OpsMgr 2007 R2 Sizing Helper Tool.xls
Литература на System Center Operations Manager 2007 на Technet - http://technet.microsoft.com/ru-ru/library/bb310604.aspx.
Агенты для System Center Operations Manager 2007 http://technet.microsoft.com/en-us/opsmgr/cc539535.aspx
Heartbeat параметр, как часто агент или сервер уведомляет о том что он жив.
Database Grooming – сколько дней храниться инфа о закрытых алертах.
Notifications: настройка оповещений. E-mail, sms, IM.
по смс можно посмотреть Microsoft SMS Sender
Публикация OpsMgr, создать в AD контейнер, чтобы в нем управляющие сервера опубликовали информацию о себе и агенты её оттуда.
утилита MomAdAdmin.exe в корне Operations Manager
и в Regedit переключаем параметр EnableADIntegration

Путь: HKLM\System\CurrentControlSet\Services\HealthServices\Parameters\ConnectorManager
Настройка firewall на клиентских машинах:
Сервисы Ops Mgr 2007
Что писать при создании монитора по лог файлам
params/param(1)
Value: Fail
adtadmin.exe /parameter /options
The twelve parameters are:
/AddGroup – Creates a new group on the collector
/DelGroup – Deletes a group on the collector
/ListGroup – Shows the groups that reside on the collector
/UpdGroup – Used to rename a group
/ListForwarders – Used to show the forwarders that are connected to the collector
/UpdForwarder – Used to change the priority value, group and name of a forwarder
/Disconnect – Used to disconnect a forwarder or a group of forwarder from the collector
/Stats – Used to show statistical information about the forwarders
24 Module 9: Audit Collection Services
/GetDBAuth – Used to show the authentication method used by the collector in order to connect to the database
/SetDBAuth – Used to configure either Windows or SQL authentication between the collector and the database
/GetQuery – Used to show the queries currently in used to filter the events before they are saved to the database
/SetQuery – Used to configure a query that will be used to filter events before they are saved to the database
Eleven options are used to further target the command that you are issuing. Most of the options are used to define values.
/Collector:Collectorname – Used to target the command at the collector specified
/Group:GroupName – Used to target the command at a group of forwarders
/GroupID:GroupID – Used to target or change a group’s identifier within the database
/Forwarder:ForwarderName – Used to target a forwarder
/ForwarderID:ForwarderID – Used to target or change a forwarder’s identifier within the database
/ForwarderSID:ForwarderSID – Used to target the forwarder based on the forwarders Security Identifier
/Name:NewName – Used to specify a new name for a forwarder or group when used in conjunction with /Group or /Forwarder
/Value:PriorityValue – Used to assign a new priority to a forwarder or group
/GroupValue – Used to specify that the group’s priority should be used for the forwarder’s priority instead of the forwarder’s defined value
/pwd – Prompts for a password
Syslog: How to collect and monitor UNIX Syslogs in System Center Operations Manager 2007 or in System Center Essentials 2007article id: 942863
http://support.microsoft.com/kb/942863
Мониторинг сетевого оборудования CISCO с помощью Microsoft System Center Operations Manager 2007- http://blog.vpn.ru/ru/?p=34
http://blog.vpn.ru/ru/?p=34#more-34
http://mbugriy.wordpress.com/
http://forum.ru-board.com/topic.cgi?forum=8&topic=9161
Документация
Блог по SCOM на spaces.live.com
Различные how-to и guides для SCOM2007
Тема на русских forums.microsoft.com
OpsMgr.ru – о SCOM 2007 по-русски
SCOM2007 на connect.microsoft.com – этот ресурс служит для публикации найденных багов. Официально поддерживается MS. Можно найти временные решения или запостить найденные ошибки.
Необходимые полномочия для основных аккаунтов, используемых в OpsMgr 2007 – http://opsmgr.ru/Lists/Posts/Post.aspx?ID=17
Продолжение. Репортинг, DWDataReader и OpsMgrAdmins
Mastering System Center Operations Manager 2007 (ebook)
System Center Operations Manager 2007 Unleashed (Online)
Microsoft Office Visio 2007 Pro SCOM & SCCM Connectors
Записки о мониторинге инфраструктуры на русском языке- http://opsmgr.ru/default.aspx
Изменение параметров очистки в хранилище данных отчетов в Operations Manager 2007 – http://technet.microsoft.com/ru-ru/library/bb381315.aspx (How to Change Grooming Settings in the Reporting Data Warehouse in Operations Manager 2007)
GeeXboX uShare - A free UPnP A/V & DLNA Media Server for Linux – сайт проекта: http://ushare.geexbox.org/
Установка на роутере Asus Wl-500gP:
[root@router]$ ipkg install ushare
Конфиг:
# /etc/ushare.conf
# Configuration file for uShare
# uShare UPnP Friendly Name (default is ‘uShare’).
USHARE_NAME=ushare on wl-500g
# Interface to listen to (default is eth0).
# Ex : USHARE_IFACE=eth1
USHARE_IFACE=br0
# Port to listen to (default is random from IANA Dynamic Ports range)
# Ex : USHARE_PORT=49200
USHARE_PORT=49200
# Directories to be shared (space or CSV list).
# Ex: USHARE_DIR=/dir1,/dir2
USHARE_DIR=/mnt
После установки и настройки – на страничке по адресу: http://192.168.1.1:49200/web/ushare.html
будет доступен интерфейс с управлением Ushare, который позволяет обновлять шару и добавлять новые
Ну а запускал его я так:
[root@router]$ ushare -x -D
-x - это для поддержки Xbox
-D – запуск в режиме демона
Все параметры ushare:
Options:
-n, –name=NAME Set UPnP Friendly Name (default is ‘uShare’)
-i, –interface=IFACE Use IFACE Network Interface (default is ‘eth0′)
-f, –cfg=FILE Config file to be used
-p, –port=PORT Forces the HTTP server to run on PORT
-q, –telnet-port=PORT Forces the TELNET server to run on PORT
-c, –content=DIR Share the content of DIR directory (default is ‘./’)
-w, –no-web Disable the control web page (enabled
by default)
-t, –no-telnet Disable the TELNET control (enabled by default)
-o, –override-iconv-err If iconv fails parsing name, still add to media contents (hoping the renderer can handle it)
-v, –verbose Set verbose display.
-x, –xbox Use XboX 360 compliant profile
-d, –dlna Use DLNA compliant profile (PlayStation3 needs this)
-D, –daemon Run as a daemon.
-V, –version Display the version of uShare and exit
-h, –help Display this help
Ссылки:
AsusForum.NET — WL500g (http://wl500g.info/index.php)
- Russian Discussion – РУССКИЙ (RU) (http://wl500g.info/forumdisplay.php?f=86)
- – Ushare (http://wl500g.info/showthread.php?t=8367)
6425A Microsoft AD 2008 Learning (Star-s) день пятый6425A: Configuring and Troubleshooting Windows Server® 2008 Active Directory® Domain Services
Тренер: Егор Полосухин
день 5.
Мониторинг Active DirectoryReliability and Performance Monitor, есть возможность создавать алерты с уведомлением.Monitoring Active Directory - http://technet.microsoft.com/ru-ru/library/bb727046(en-us).aspxActive Directory Baseline -Deploying Active Directory for Branch Office Environments Chapter 9 – Post Deployment Monitoring of Domain Controllers - http://go.microsoft.com/fwlink/?LinkId=99516
Active Directory auditing (Аудит AD).настройка: вкл. аудит в GPO (Security Settings – Local Policies – Audit Policy)и в свойствах индивидуальных групп тоже необходимо проставить Аудит. AD DS Auditing Step-by-Step Guide (Пошаговое руководство по аудиту изменений в доменных службах Active Directory в Windows Server 2008) там же список Event’ов. - http://technet.microsoft.com/ru-ru/library/cc731607(WS.10).aspx Windows Event Collector – CMD: wecutil qc (Y)
Windows Remote Management - winrm quickconfig and Y
Вопросы архивирования, восстановления AD.работа базы AD :

Ntds.dit – Файл базы
Edb*.log – transaction log file
Edb.chk – checkpoint file
ebdres00001.jrs and ebdres00002.jrs – reserved transaction log files (используются если нет места на диске)How the Data Store Works - http://go.microsoft.com/fwlink/?LinkId=101077
Утилита для обслуживания базы AD – ntdsutil.exe- перенос файла базы- дефрагментация файла базы- делать снапшоты базы (для оффлайн просмотра)- управлять ролями FSMO
dcpromo /forceremoval – принудительное удаление AD (если недоступен GC или другие DC леса)после этого ntdsutil /metabasecleanup (для очистки AD и GC от DC и доменов не существующих)Смотреть справку к NTDSUTIL
Data Store Tools and Settings - http://go.microsoft.com/fwlink/?LinkId=101078
Каждые 12 часов происходит «очистка мусора в базе AD», в том числе и дефрагментация. для оффлайн дефрагментации базы, остановка служб AD:- загрузиться в DSRM режиме- В 2008 можно остановить службу DSntdsutil – files – d:tmp (будет создана фрагментированная копия базы)Performing offline defragmentation of the Active Directory database - http://support.microsoft.com/kb/232122
перенос файлов базы (по умолчанию c:windowsntds): - остановить службу базы - ntdsutil – files – move db to d:NTDS (для логов move db to d:NTDS ) как обезопасить DC: минимальный набор сервисов для AD DS
- Security Configurations Wizard
Security Configuration Wizard Overview - Общие сведения о мастере настройки безопасности -
http://technet.microsoft.com/ru-ru/library/cc757550(WS.10).aspx
Архивирование DC: что бэкапит System State Data:
Registry
COM+ Class Registration database
Boot files, as described earlier in this topic
Active Directory Certificate Services database
AD DS database
SYSVOL directory
Cluster service information
Microsoft Internet Information Services (IIS) metadirectory
System files that are under Windows Resource Protection
утилита - Windows Server Backup :The system volume: This hosts the boot files, which consists of the Bootmgr file and the Boot Configuration Data (BCD) store.
The boot volume: This hosts the Windows operating system and the Registry.
The volume that hosts the SYSVOL tree.
The volume that hosts the AD DS database (Ntds.dit).
The volume that hosts the AD DS database log files.
Step-by-Step Guide for Windows Server 2008 Active Directory Domain Services Backup and Recovery - http://go.microsoft.com/fwlink/?LinkId=101087Пошаговое руководство по архивации и восстановлению данных в доменных службах Active Directory - http://technet.microsoft.com/ru-ru/library/cc771290(WS.10).aspx Wbadmin (командная строка)WBAdmin Start Systemstatebackup –backuptarget:E: Восстановление DC:Windows RE (Recovery Enviroment) – начать установку с носителя Windows, войти в консоль восстановления. Рекомендуемая книжка: Active Directory Disaster Recovery, Expert guidance on planning and implementing Active Directory disaster recovery plans, Florian Rommel.
Рекомендуемая стратегия восстановления: поднять в виртуалке дополнительный домен контроллер в отдельном сайте с расписанием репликачии побольше. тем самым удалив кого-то на DC, мы на отдельном сайте можем поднять номер версии для объекта тем самым он перезапишеться на основном DC. Вариант восстановления - normal restore (не позволяет восстановить удаленные объекты):- загрузка в DSRM (F8) или перед перезагрузкой bcdedit /set safeboot dsrepairвходим под учеткой DSRM (отдельный пароль для восстановления AD)- WBackup (из ночной базы)- Репликацией приходят изменения.
Вариант восстановления – Authoritative restore:- загрузка в DSRM (F8) или перед перезагрузкой bcdedit /set safeboot dsrepairвходим под учеткой DSRM (отдельный пароль для восстановления AD)- WBackup (из ночной базы)- для увеличения номера версии объекта в базе, ntdsutil:authoritative restore - restore subtree DistinguishedName- Adrestore (снимаем пометку Tomb stone), теряет членство в группах и т.п. Использование моментальных снимков (database snapshots)ntdsutil – snapshop c:snap1просмотр снимка при помощи утилиты Dsamain, будет доступен при помощи стандартных средств работы с AD на отдельно выбранном порту.Database Mounting Tool - http://go.microsoft.com/fwlink/?LinkId=101089Доменные службы Active Directory: средство подключения баз данных - http://technet.microsoft.com/ru-ru/library/cc753246(WS.10).aspx
AD DS troubleshooting- event log- System Center Operations Manager 2007
Overview of Active Directory Troubleshooting - http://go.microsoft.com/fwlink/?LinkId=101093
| Problem | Troubleshooting Guidelines |
| Physical network issues |
|
| Name resolution issues |
|
| Login issues |
|
| Unavailable server or service |
|
| Resource Access Control List restrictions |
|
| Configuration issues |
|
| Group Policy |
|
Windows Server 2003 Active Directory Branch Office Guide - http://go.microsoft.com/fwlink/?LinkId=101095
Analyzing performance data – Анализ данных о производительности - http://technet.microsoft.com/ru-ru/library/cc784871(WS.10).aspx
Проблемы с разрешением DNS (Diagnosing Name Resolution Problems) - http://technet.microsoft.com/ru-ru/library/cc959340(en-us).aspx тестирование DNS соединений : NetDiagсброс DNS cache: ipconfig /flushdns
просмотр DNS кэш: ipconfig /displaydns, на сервере в консоли.
проверка регистрации A записи в DNS: dcdiag /test:registerindns /dnsdomain:<domain FQDN> /v проверка соединений DNS с DC (DNS): dcdiag /test:dnsдля регистрации SRV записей нужно перегрузить сервис netlogon на DC
Проблемы зональное передачи: Troubleshooting zone problems – Устранение неполадок зон - http://technet.microsoft.com/ru-ru/library/cc737346(WS.10).aspx
Проблемы с репликацией.порты используемые при репликации AD:
| LDAP | udp 389
tcp 389 |
| LDAP (SSL) | udp 636
tcp 636 |
| Kerberos | udp 88
tcp 88 |
| DNS | udp 53
tcp 53 |
| SMB over IP | udp 445
tcp 445 |
| Global Catalog Server | tcp 3269
tcp 3268 |
Troubleshooting Active Directory Replication Problems - http://technet.microsoft.com/ru-ru/library/cc738415(WS.10).aspx Утилита repadmin.синтаксис: repadmin command arguments [/u:[domain]user /pw:{password|*}]repadmin /showrepsrepadmin /showvectorrepadmin /showconnrepadmin /replicaterepadmin /syncall синтаксис: dcdiag command arguments [/v /f:LogFile /ferr:ErrLog ].тесты dcdiag /test:Connectivity
Replications
NetLogons
Intersite
FSMOCheck
Services
Kccevent
Topology Sysvol релицируется старой службой FRS, средства диагностики FRS:Ntfrsutl sets servernameNtfrsutl forcerepl servername /r SetName /p DNSNameFRSDiagDfsradmin healthTroubleshooting File Replication Service - http://go.microsoft.com/fwlink/?LinkId=101112
Replication of Group Policy settings between domain controllers fails - http://go.microsoft.com/fwlink/?LinkId=101113
Решение проблем с GPO.На данный момент нет средств позволяющих проталкивать групповые политики на клиенты. как посмотреть тикеты на клиенте: утилита kerbtray, позволит понять зашел ли юзер под кешированными полномочиями. Netdiag
Ping
NSlookup
Set
Kerbtray Group Policy Troubleshooting - http://technet.microsoft.com/ru-ru/library/cc736961(WS.10).aspx
Group Policy reporting
GPResult
Gpotool
Gpupdate
Dcgpofix
GPOLogView
Group Policy Management ScriptsGPMonitor.exe
Links:
GPO в системноми реестре
HKLMSoftwarePolicies
HKLMSoftwareMicrosoftWindowsCurrentVersionPolicies
HKCUSoftwarePolicies
HKCUSoftwareMicrosoftWindowsCurrentVersionPolicies
Fixing Administrative Template policy setting problems - http://technet.microsoft.com/ru-ru/library/cc780392(WS.10).aspxTroubleshooting Group Policy application problems – Устранение неполадок, связанных с применением групповой политики - http://support.microsoft.com/kb/250842 Проблемы с запуском скриптов через GPO: режимы: – асинхронно (по умолчанию – startup) - синхронно (по умолчанию – logon) Информация о скриптах режит в реестре на клиентских машинах:
HKCUSoftwarePoliciesMicrosoftWindowsSystemScripts (User Scripts)
HKLMSoftwarePoliciesMicrosoftWindowsSystemScripts (Machine Scripts)
Fixing Scripts policy settings problems - http://technet.microsoft.com/ru-ru/library/cc781809(WS.10).aspx
Location of ADM (Administrative Template) Files in Windows - http://support.microsoft.com/kb/228460
How to create a Central Store for Group Policy Administrative Templates in Windows Vista - http://support.microsoft.com/kb/929841




Use the Start /w Ocsetup DNS-Server-Core-Role to install the DNS server role.
Configure the DNS server to support all domain-wide and forest-wide zones.
Dnscmd /enlistdirectorypartition DomainDnsZones.woodgrovebank.com
Dnscmd /enlistdirectorypartition ForestDnsZones.woodgrovebank.com