Simplified Management using the Enterprise Policy Management Framework

Slides:



Advertisements
Similar presentations
Technology for the Audit Team Copyright © 2008 ACL Services Ltd. Peter B. Millar Director, Business Development 25 June 2008 ACL AuditExchange 2009.
Advertisements

RAC One Node – The “Always On” Single Instance Database
Implementing Tableau Server in an Enterprise Environment
UNIVERSITY OF EDUCATION BY H.M.ISHTIAQ RAFIQUE. Domain Name Structure.
Auditing Microsoft Active Directory
17 Copyright © 2005, Oracle. All rights reserved. Deploying Applications by Using Java Web Start.
SQL Server Reporting Services By Sam Nasr March 29,
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
DISTRICT AND SCHOOL ASSESSMENT & TECHNOLOGY COORDINATOR ONLINE TESTING WEBINAR FEBRUARY 7 AND 9, 2012 Washington Online Testi ng OSPI Office of Superintendent.
0 - 0.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
Addition Facts
Develop your database with Visual Studio
| Copyright © 2009 Juniper Networks, Inc. | 1 WX Client Rajoo Nagar PLM, WABU.
Configuration management
Mind Mapping Techniques to Create Proposals APMP Colorado Chapter March 6, 2012 James J. Franklin San Diego PMI Chapter PMI is a registered trade and service.
Your Data Any Place, Any Time Manageability. SQL Server 2008 Manageability Challenges Challenges face database administrators today : Managing complex.
By: Jose Chinchilla July 31, Jose Chinchilla MCITP: SQL Server 2008, Database Administrator MCTS: SQL Server 2005/2008, Business Intelligence DBA.
Pharos Uniprint 8.3 Training
1 Migrating from Access to SQL Server Simon Kingston, CSU / NPS NRGIS.
Campaign Overview Mailers Mailing Lists
1 Web-Enabled Decision Support Systems Access Introduction: Touring Access Prof. Name Position (123) University Name.
State of Connecticut Core-CT Project Query 8 hrs Updated 6/06/2006.
Joe Homnick, MCITP: Business Intelligence Developer
Microsoft Office Project and Project Server Reporting May 12 th, 2009 Chris Oxtoby, MCP – Principal Consultant, Pcubed.
AN OVERVIEW & INTRODUCTION TO USING DACPACS D ata-Tier Applications {Application and Multi-Server Management} Neil Hambly York Oct 2010.
SCAP Adoption at Microsoft
How to use the samples provided as part of the CRM Analytics Accelerator to enhance your CRM implementation Catherine Eibner – Dynamics Developer Evangelist,
Chapter 5 Test Review Sections 5-1 through 5-4.
DB Relay An Introduction. INSPIRATION Database access is WAY TOO HARD The crux.
Continued Investment in ATML
Addition 1’s to 20.
25 seconds left…...
Test B, 100 Subtraction Facts
Week 1.
We will resume in: 25 Minutes.
Use the tools support uses.
SSRS 2008 Architecture Improvements Scale-out SSRS 2008 Report Engine Scalability Improvements.
Small Business Server and Windows SharePoint Services David Overton
Kentico CMS 5.5 R2 What’s New. Highlights Intranet Solution Document management package – WebDAV support – Project & task management – Document libraries.
INTRODUCTION TO BUILDING REPORTS Reporting Services.
1 Introduction 2 SQL Server 2008 Policy-Based Management Central Management Servers Extending with Windows PowerShell.
SQL Server Management Studio Introduction
SSRS Integration with SharePoint JACOB CHANG. Jacob Chang MCSE Degree in biology and computer engineering Started as an application developer Worked with.
Chapter 10.
Module 13 Automating SQL Server 2008 R2 Management.
ArcGIS Workflow Manager An Introduction
1© Copyright 2013 EMC Corporation. All rights reserved. Dimitri Ayrapetov November 9, 2013 Introduction to Building Reports Reporting Services.
Module 19 Managing Multiple Servers. Module Overview Working with Multiple Servers Virtualizing SQL Server Deploying and Upgrading Data-Tier Applications.
We will start soon. Feel free to ask (chat window) anything you want before we start.
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
A PRIMER FOR KEEPING YOUR ENVIRONMENT IN SHAPE. SQL Server 2008 Policy Based Management By Scott Abrants.
1 Chapter Overview Preparing to Upgrade Performing a Version Upgrade from Microsoft SQL Server 7.0 Performing an Online Database Upgrade from SQL Server.
1 PUPPET AND DSC. INTRODUCTION AND USAGE IN CONTINUOUS DELIVERY PROCESS. VIKTAR VEDMICH PAVEL PESETSKIY AUGUST 1, 2015.
1 Chapter Overview Defining Operators Creating Jobs Configuring Alerts Creating a Database Maintenance Plan Creating Multiserver Jobs.
SQL Server 2008 R2 Manageability. Challenges facing database administrators today: Scaling management to multiple data centers Proactively monitoring.
Central Management Server Managing Your SQL Server Environment 1.
SQL SERVER AUDITING. Jean Joseph DBA/Consultant Contact Info: Blog:
Blog: R YOU READY FOR.
SSIS 2012: The Quiet Revolution Presented by Bryan Cafferky Business Intelligence Consultant BPC Global Solutions LLC
SQL Database Management
Policy Based Management
DEA Will Be Your New Best Friend!
Use PowerShell & dbatools to Manage your SQL Server Environment
Use PowerShell & dbatools to Manage your SQL Server Environment
Governing Your Enterprise with Policy-Based Management
Service Template Creation from the Ground Up
Presentation transcript:

Put Your feet up Simplified Management using the Enterprise Policy Management Framework martin.cairney@rightjoin.net Simplified Management using the Enterprise Policy Management Framework SQLBits 5, Celtic Manor – 22nd November 2009

Components of the Enterprise Policy Management Framework SQL Server 2008 Policy-Based Management Central Management Servers Windows PowerShell SQL Server 2008 Reporting Services Introduction

Policy-Based Management Review Central Management Servers evaluating policies categorising policies Central Management Servers configuring managing policies with CMS Extending with the Enterprise Policy Management Framework components and deployment evaluation on down-level instances large scale environments Introduction

SQL Server Policy-Based Management All SQL logins have password complexity rules enabled All databases must be backed up every day Ensure Compliance Policy Ensure Compliance Enabled = True Condition LastBackupDate >= dateadd(‘day’, -1, getdate()) Start at the bottom of the slide. A policy is based on a Facet. A facet is simply a logical group of properties that are related. For example an audit facet includes name, enabled. A server configuration facet includes all the settings available in sp_configure, including xp_cmdshell, MAXDOP. Stored procedures have many aspects to them --- schema aspects, execution aspects, etc. Each is captured by a set of properties. Which do we care to say something about? ---- The schema properties. We call each set of properties a “management facet”. What is a valid stored procedure? --- one where Name starts with “usp’. This is the Condition. What do we want to do with this Condition ---- ensure complaince with it. This is the Policy. It tells the SQLServer management runtime to apply this intent. So these are the basics of Policy-Based management. There is a management model of the system --- captured by the target types and facets. Management intent is captured by defining what an acceptable state of the system is ---- via a Condition. Finally, the Policy is the means to inform the management runtime services of what actual instances to apply the Condition to, when to apply it, and what to do if the Condition is violated. This is probably best explained interactively in the demo. Login Options Facet Database Maintenance SQL Server Policy-Based Management

SQL Server Policy-Based Management Policy Evaluation Modes On Demand On Schedule On Change – Log Only On Change – Prevent On Change – Prevent is the most restrictive as it is ony available on SQL Server 2008 and only for facets that can fire DDL triggers. On Change – Log Only is also available on SQL Server 2008 only. Event notification evaluates a policy when a relevant change is made and records this in the SQL Server Error Log and the Windows Application Log. On Schedule must be scheduled on a SQL Server 2008 instance as it relies on executing a PowerShell script. This is the core of the EPMF as the target instances can be on other servers and include downlevel versions. On Demand is the least restrictive and can be used to evaluate any policy. It allows the policy to be executed by a number of means such as Management Studio (Object Explorer or CMS), PowerShell. It fully suppprts downlevel versions – obviously depending upon the properties exposed (for example using a policy to ensure databases have PageVerify = CHECKSUM would not be valid on a SQL 2000 instance). SQL Server Policy-Based Management

SQL Server Policy-Based Management We also want to ensure that we assign a Category to each of the policies that we create. This is especially important for the EPMF as we will see later on. Assigning categories helps to organise our policies and also manage policy evaluation. For SQL Server 2008 instances where the policies are loaded locally, the policy category can be defined to MANDATE DATABASE SUBSCRIPTIONS. This impacts and controls whether an instance’s databases subscribe to this policy category. The alternate option for SQL 2008 allows individual databases to “opt-in” and can be therefore be used as an additional filter for the condition definition. SQL Server Policy-Based Management

SQL Server Policy-Based Management Effect of Database Subscriptions Target A Security Category AdventureWorks not subscribed PayrollDB subscribed (no pubs db) Security Category AdventureWorks subscribed pubs subscribed Target B RTM Target A: AdventureWorks evaluated Target B: AdventureWorks and pubs evaluated SP1 (+CU3) Target A: PayrollDB evaluated Target B: All databases checked NO Security Category AdventureWorks Pubs HRDB Here we have a Security Category defined on the source server. TARGET A also has the same Category defined locally but has different databases and subscriptions. TARGET B does not have the category defined locally. The TARGET servers evaluate the policy from the source using their own Policy Engine. The category will define which databases the policy is evaluated against. In the RTM release of SQL 2008, the evaluation was based upon what databases are in the SOURCE subscription – i.e. The local subscription was ignored. However from CU3 of SP1, the behaviour has changed to now be dependant on the subscriptions on the instance being evaluated. Where the category doesn’t exist, all databases are evaluated. Be aware of the different results you get based upon your versions of SQL 2008. We’ll show this in the demo now. SQL Server Policy-Based Management

SQL Server Policy-Based Management policies replace the Best Practices Analyser in previous releases best practice policies installed when you install an instance: <SQL_Directory>\100\Tools\Policies\DatabaseEngine\1033 Sub-directories for Database Engine, SSRS and SSAS note that all best practices policies have a Category SQL Server Policy-Based Management

Categorise and Evaluate Policies DEMO Categorise and Evaluate Policies

Central Management Servers extends Registered Server concept in SSMS shared registrations for every user that connects to the same CMS only works for instances in the same or a trusted domains can register the same instance in multiple groups registered servers stored in msdb in : dbo.sysmanagement_shared_server_groups_internal dbo.sysmanagement_shared_registered_servers_internal The next core component of the EPMF that we will look at is Central Management Servers. NOTE that even though the registrations exist for everyone that can connect to the CMS, you still need to have a valid login for each and every instance defined to be able to connect to them yourself. The details are stored in msdb in the tables: sysmanagement_shared_server_groups_internal sysmanagement_shared_registered_servers_internal NOTE that although I have selected to use the CMS approach, it will work just as well with an existing repository of servers\instance names that you have which we will see when we look at PowerShell. Central Management Servers

Central Management Servers DEMO Demo CMS and include how to execute policies against multiple instances. Central Management Servers

Windows PowerShell is the core of the EPM Framework Windows PowerShell is the core of the EPM Framework. It is built around the “Invoke-PolicyEvaluation” cmdlet included with the SQL Server 2008 installation of PowerShell. We can pass in a set of policies to be evaluated at the –Policy parameter or pipe the selected policy objects into the cmdlet. The –TargetServer parameter identifies the instance against which the policies are evaluated. The target can be SQL Server 2008 or a down-level version and this is what allows us to build the EPM Framework to cover all instances in the enterprise. Windows PowerShell

Extend to the Enterprise Components of the EPM Framework SQL Server 2008 instance to store policies SQL Server 2008 instance to act as the Central Management Server SQL Server 2008 instance to execute the PowerShell script SQL Server management database and policy history table to archive policy evaluation results SQL Server 2008 Reporting Services to render and deliver policy history reports When the Enterprise Policy Management (EPM) Framework is implemented, it requires at least one instance of SQL Server 2008. The PowerShell script runs from this instance through a SQL Server Agent job or manually through the PowerShell interface. The PowerShell script captures the policy evaluation output, and then it inserts the output into a SQL Server table. SQL Server 2008 Reporting Services reports deliver information from the centralized table. All SQL Server 2008 requirements listed can be executed from and managed on the same instance: Extend to the Enterprise

Extend to the Enterprise EPM Framework In Action policy results Central Management Server policy results policy results policy results policy results policy results Extend to the Enterprise

Extend to the Enterprise

Extend to the Enterprise DEMO Extend to the Enterprise

Extend to the Enterprise Scaling to the Enterprise Add Intelligence to Policies by placing each policy in a category and defining server restrictions for versions and editions where appropriate Define Concurrent Jobs with parameters for each Policy Category and/or Central Management Server group simple table structure in repository database so you can roll your own reports Extend to the Enterprise

Enterprise Policy Management Framework extends SQL Server 2008 Policy-Based Management to all versions of SQL Server in an enterprise leverage CMS and Powershell script to capture the policy evaluation output and insert it into a SQL Server database automate using SQL Agent job(s) Reporting Services reports will deliver information from the centralised database Summary

SQL Server Manageability Team's blog on Policy Based Management http://blogs.msdn.com/sqlpbm Enterprise Policy Management Framework Download http://epmframework.codeplex.com Lara Rubbelke’s Blog http://sqlblog.com/blogs/lara_rubbelke/default.aspx Enterprise Policy Management Framework with SQL Server Whitepaper http://sqlcat.com/whitepapers/archive/2009/02/25/enterprise-policy- management-framework-with-sql-server-2008.aspx Windows Powershell Blog http://blogs.msdn.com/powershell Right Join Consultants Web Site http://www.rightjoin.net References