Manage Your Shop with Policy Based Management & Central Management Server

Similar documents
Author: Ryan J Adams. Overview. Policy Based Management. Terminology

Pro SQL Server 2008 Pol icy-based. Management. Ken Simmons. Colin Stasiuk. Jorge Segarra. Apress8

Evaluate your Daily Checklist against 100+ instances of SQL Server while you get a cup of coffee

MIRRORING: START TO FINISH. Ryan Adams Blog - Twitter

Author: Ryan J Adams. Overview. Central Management Server. Security. Advantages

SQL Server 2008 Administration

6231A - Maintaining a Microsoft SQL Server 2008 Database

MOC Administering Microsoft SQL Server 2014 Databases

Administering a SQL Database Infrastructure

Administering a SQL Database Infrastructure 20764; 5 Days; Instructor-led

Database Maintenance Guide

How to Copy A SQL Database SQL Server Express (Making a History Company)

Administering a SQL Database Infrastructure (MS )

General DBA Best Practices

50238: Introduction to SQL Server 2008 Administration

Administering Microsoft SQL Server 2012 Databases

Administering Microsoft SQL Server Databases

Designing Database Solutions for Microsoft SQL Server 2012 MOC 20465

Basic knowledge of the Microsoft Windows operating system and its core functionality Working knowledge of Transact-SQL and relational databases

MS SQL Server Backup - User Guide

MSSQL quick start guide

SQL Server 2014

MS 20465: Designing Database Solutions for Microsoft SQL Server 2012

SQL Server for Database Administrators Course Syllabus

Module 07. Log Shipping

$99.95 per user. SQL Server 2008/R2 Database Administration CourseId: 157 Skill level: Run Time: 47+ hours (272 videos)

SQL Server 2008 Designing, Optimizing, and Maintaining a Database Session 1

Microsoft Administering a SQL Database Infrastructure

Microsoft SQL Server 2012 Administration. Real-World Skills for MCSA Certification and Beyond (Exams , , and )

Microsoft SQL Server Best Practice Policies

WordPress Security Scan Configuration

Designing Database Solutions for Microsoft SQL Server 2012

MS Administering Microsoft SQL Server Databases

Avatier Identity Management Suite

1 of 10 1/31/2014 4:08 PM

What is the BI DBA? Jorge Segarra Sr. DBA Consultant, SQL Server MVP

Before attending this course, participants should have:

Administering Microsoft SQL Server Databases

Microsoft SQL Database Administrator Certification

ClockWork Enterprise 5

NNT CIS Microsoft SQL Server 2008R2 Database Engine Level 1 Benchmark Report 0514a

MOC 20462C: Administering Microsoft SQL Server Databases

Below are the some of the new features of SQL Server that has been discussed in this course

Setup and configuration for Intelicode. SQL Server Express

Acunetix Web Vulnerability Scanner. Getting Started. By Acunetix Ltd.

Course Outline:

Remote Backup Software

Course 20462C: Administering Microsoft SQL Server Databases

Administering a Microsoft SQL Server 2000 Database

EZManage SQL Pro. Quick guide for installation and implementation

Administering Microsoft SQL Server Databases MOC 20462

Administering Microsoft SQL Server Databases

Administering Microsoft SQL Server Databases

Administering Microsoft SQL Server Databases

How To Export Data From Exchange To A Mailbox On A Pc Or Macintosh (For Free) With A Gpl Or Ipa (For A Free) Or Ipo (For Cheap) With An Outlook 2003 Or Outlook 2007 (For An Ub

DigiVault Online Backup Manager. Microsoft SQL Server Backup/Restore Guide

ADMINISTERING MICROSOFT SQL SERVER DATABASES

Administering Microsoft SQL Server Databases

XML Export Interface. IPS Light. 2 April Contact

Video Administration Backup and Restore Procedures

Netwrix Auditor for Active Directory

HELP DOCUMENTATION E-SSOM BACKUP AND RESTORE GUIDE

Alert Notification of Critical Results (ANCR) Public Domain Deployment Instructions

Explain how to prepare the hardware and other resources necessary to install SQL Server. Install SQL Server. Manage and configure SQL Server.

Securing Data on Microsoft SQL Server 2012

Linko Software Express Edition Typical Installation Guide

Administering Microsoft SQL Server Databases 20462C; 5 days

Designing, Optimizing and Maintaining a Database Administrative Solution for Microsoft SQL Server 2008

Microsoft SQL Server Beginner course content (3-day)

Administering Microsoft SQL Server 2012 Databases

Upon completion of the program, students are given a full support to take and pass Microsoft certification examinations.

Administering Microsoft SQL Server 2014 Databases

Administering a Microsoft SQL Server 2000 Database

MS-10775: Administering Microsoft SQL Server 2012 Databases. Course Objectives. Required Exam(s) Price. Duration. Methods of Delivery.

Netwrix Auditor for Exchange

Integrating SQL LiteSpeed in Your Existing Backup Infrastructure

Data Execution Prevention DEP should NOT be turned on for all programs as this can cause access violations when running EXO

MCTS Microsoft SQL Server 2005 Implementation & Maintenance

10775A Administering Microsoft SQL Server 2012 Databases

Getting to Know the SQL Server Management Studio

Course: Administering Microsoft SQL Server Databases Overview

Backup/Restore Microsoft SQL Server 7.0 / 2000 / 2005 / 2008

Philadelphia Area SharePoint User Group June 27th, Ken Choyce RJB Technical Consulting, Inc.

MS-55096: Securing Data on Microsoft SQL Server 2012

ExecuTrain Course Outline MOC 6231B: Maintaining a Microsoft SQL Server 2008 R2 Database

MS Design, Optimize and Maintain Database for Microsoft SQL Server 2008

10775 Administering Microsoft SQL Server Databases

Maintaining a Microsoft SQL Server 2008 Database

Administering Microsoft SQL Server Databases

Published. Technical Bulletin: Use and Configuration of Quanterix Database Backup Scripts 1. PURPOSE 2. REFERENCES 3.

Designing and Deploying Messaging Solutions with Microsoft Exchange Server 2010 Service Pack B; 5 days, Instructor-led

Administering Microsoft SQL Server Databases

TECHNICAL NOTE. The following information is provided as a service to our users, customers, and distributors.

20462C: Administering Microsoft SQL Server Databases

QUANTIFY INSTALLATION GUIDE

6231B: Maintaining a Microsoft SQL Server 2008 R2 Database

A Tutorial on SQL Server CMPT 354 Fall 2007

Remote Backup Software User Manual V 2.0

Microsoft SQL Server 2008 Administrator's Pocket Consultant

DESLock+ Basic Setup Guide Version 1.20, rev: June 9th 2014

Transcription:

Manage Your Shop with Policy Based Management & Central Management Server Ryan Adams Blog - http://ryanjadams.com Twitter - @ryanjadams Email ryan@ryanjadams.com

Objectives CMS Configuration CMS Import and Export Policy Creation Policy Evaluation Alerts Reporting

Central Management Server CMS stores connection information for all your SQL servers in one central location. It s just like registered servers but is housed in MSDB

Requirements Must be on a SQL 2008 Instance All editions are supported including Express You can register SQL 2000 and 2005 instances Security managed by two MSDB database roles ServerGroupAdministratorRole Allows management and configuration of the CMS ServerGroupReaderRole Allows connect and read to the CMS

Advantages Connection repository that all your admins can use Allows you to run a query against multiple servers simultaneously Allows you to group servers logically. Examples are by function, geographic location, or version Allows you to evaluate PBM policies against groups of servers

Disadvantages The CMS server cannot be a part of its own group Workaround is to use 127.0.0.1 or an FQDN Registered servers can only use Windows authentication. Why is this a disadvantage?

Import and Export Import your locally registered servers Export servers from your CMS groups Exports are stored in XML format Exporting Local Connections Windows Authentication Username and password are not exported SQL Authentication Username exported, and password exported as hashed

DEMO Jump In!!

Policy Based Management Gives us centralized management of our SQL Servers Allows us to evaluate, configure, and enforce standards across the enterprise.

Requirements SQL Server 2008 Standard, Enterprise, or Developer You can evaluate policies against SQL 2000 and 2005 instances, but SQL 2008 is required for the policy server MSDB

Terminology Facet Condition Policy Target Server Restriction Category

Creating Policies Manual Policy Creation GUI Create a check condition Create a policy Define check condition created in previous step Define target condition Define evaluation mode Define server restriction condition T-SQL dbo.sp_syspolicy_add_condition dbo.sp_syspolicy_add_object_set dbo.sp_syspolicy_add_target_set dbo.sp_syspolicy_add_target_set_level dbo.sp_syspolicy_add_policy

Creating Policies Import Import policies exported from other servers Import Microsoft best practice policies %installdir%\100\tools\policies\databaseengine\1033 Option Replace duplicates with items imported Option Policy state Preserve state Enabled *** Disabled ***

Policy Evaluation Evaluation Modes On Demand On Schedule On Change: Log Only On Change: Prevent

Policy Evaluation Methods Evaluate a single policy against a single instance Evaluate multiple policies against a single instance Evaluate a single policy against multiple instances Evaluate multiple policies against multiple instances

DEMO Jump In!!

Alerts Requirements Database Mail Operators Enable alert system notifications in SQL Agent Policy must be enabled to raise an alert PBM Error Numbers On Change: Prevent (automatic) 34050 On Change: Prevent (on demand) 34051 On Change: Log Only 34053 On Schedule 34052

Reporting Enterprise Policy Management Framework is an open source reporting project for PBM available on CodePlex.com Requirements SQL 2008 SP1 CU3 PBM CMS PowerShell Management Database SQL Reporting Services Setup SQL script to create the database PowerShell script to evaluate policies against CMS BIDS reporting project

DEMO Jump In!!

Use Cases Disable Auto Shrink Authentication Mode SQL Password Expiration SQL Password Policy Guest Permissions Last Backup Time Auto Grow Auto Create Statistics Auto Update Statistics Enforce Naming Convention DB Compatibility Level Recovery Model Encryption Is Trustworthy Login Auditing Enable Database Mail Disable SQL Mail Backup Compression SQL Agent Running Transaction Log Backups Agent Jobs Notify on Failure Disable xp_cmdshell Monitor SQL Agent Jobs

Summary CMS Configuration CMS Import and Export Policy Creation Policy Evaluation Alerts Reporting

Resources Pro SQL Server 2008 Policy-Based Management Ken Simmons Twitter @KenSimmons Web CyberSQL.blogspot.com Colin Stasiuk Twitter - @BenchmarkIT Web BenchmarkITConsulting.com Jorge Segarra Twitter - @SQLChicken Web SQLChicken.com Slides http://www.ryanjadams.com/presentations Speaker Rate http://speakerrate.com/ryanjadams Ryan Adams Blog - http://ryanjadams.com Twitter - @ryanjadams Email ryan@ryanjadams.com QUESTIONS?