23
Windows Management Technologies Eric Nelson Application Architect [email protected] Finish 2:45 for break Microsoft Confidential

05 Management Technologies

Embed Size (px)

DESCRIPTION

karel blekota

Citation preview

Page 1: 05 Management Technologies

Windows Management TechnologiesWindows Management Technologies

Eric NelsonApplication [email protected] Finish 2:45 for break

Microsoft Confidential

Page 2: 05 Management Technologies

AgendaAgenda

Dynamic Systems Initiative and Design for OperationsWindows Server Technologies

Microsoft Management Console 3.0 (MMC)Windows PowerShellWindows Eventing 6.0Task Scheduler 2.0Also

Group PolicyWindows Management Instrumentation (WMI)WS-Management

Page 3: 05 Management Technologies

DSI AND DFODSI AND DFO

Dynamic Systems Initiative and Design For Operations – ITO?

Page 4: 05 Management Technologies

Dynamic Systems Initiative Dynamic Systems Initiative

The Problem - ComplexityIT Systems are Complex

What applications are not running?What are the dependencies?

Administration is Resource IntensiveAutomation is difficult

The solution – Dynamic Systems InitiativeCapturing Knowledge in Software Models SDM/SML

Application Architecture, DataCenter, IT PolicyUse knowledge throughout application lifecycle

Design, Development, Deployment, Operations

Page 5: 05 Management Technologies

DSI ProgressDSI Progress

Long term Vision4 years on...

Page 6: 05 Management Technologies

What is Design For Operations?What is Design For Operations?

Designing and Building Applications to the DSI Vision

Building applications that can be deployedBuilding applications that can be operatedCaring about Operations

Attempts to addressDevelopers and IT Staff Don’t talk (until there is a problem)Applications can not be configured or proactively monitored with management tools used by IT StaffNo Knowledge SharingDevelopers required to troubleshoot

Page 7: 05 Management Technologies

Benefits of Design for OperationsBenefits of Design for Operations

To the Customers IT StaffLowers the total cost of ownership for the applicationStreamlines datacenter operationsReduces downtimeBrings rapid return on the investmentBrings problem solving expertise directly to the users

To the ISVReduce frequency of Problem EscalationSpend Less Time Maintaining Existing ApplicationsLower Support CostsCustomer advocacyFacilitate Capture of Next Version Requirements

Page 8: 05 Management Technologies

Sidebar: Do you recognise a pattern?

Sidebar: Do you recognise a pattern?Client applications hard to deploy and maintain

Customers turn to the BrowserISVs with traditional “rich clients” lose outISVs that switch to the browser bare the cost of increased complexity of developmentYet all along, you could build “rich clients” that were good citizens

Server applications hard to deploy and maintainCustomers switch from on-premise to on-demandISVs with on-premise lose outISVs that switch to on-demand bare the cost of increased complexity of developmentYet all along, you could build server applications that were good citizens

Page 9: 05 Management Technologies

Design the Application to be Operated

Design the Application to be OperatedHealth Model

“What is not working and how bad is it?”How to Detect something is wrongHow to Correct problem

Realized through InstrumentationEventsPerformance CountersWMI Management consoles

Page 10: 05 Management Technologies

Implementing is about…Implementing is about…

InstrumentationEventsPerformance Counters

Implementing an Administration SurfaceMicrosoft Management ConsoleWindows PowerShellTask SchedulerWindows Management InstrumentationGroup Policy

Build an InstallerBuild a Management Pack

Page 11: 05 Management Technologies

THE NEW BITSTHE NEW BITSThat make things a lot easier...

Page 12: 05 Management Technologies

Microsoft Management Console 3.0

Microsoft Management Console 3.0What is Microsoft Management Console 3.0?

Provides a common administration GUI

Why use Microsoft Management Console 3.0?Build administrative consolesSame technology Windows usesConsistent management experience for administratorsReduced Development Costs (with version 3.0)

Managed CodeLess Code

Page 13: 05 Management Technologies

Windows PowerShellWindows PowerShell

What is Windows PowerShell?Command Line Shell and Scripting Language

Why use Windows PowerShell?Easy to Adopt, Learn and UseProvides consistent syntax and standard, uniform utilitiesAutomates Bulk System Administration TasksAccelerates Authoring, testing, and debugging of scriptsEasy to build Custom Windows PowerShell CommandsManaged CodeEasy to Provide GUI (via MMC or Windows Forms)

Page 14: 05 Management Technologies

Windows PowerShell EngineWindows PowerShell Engine

Custom ApplicationCustom Application

Microsoft Management Console 3.0Microsoft Management Console 3.0

PSObjectPSObject

Windows PowerShell CmdletsWindows PowerShell CmdletsCommand Command LineLine

GUIGUI

MMC 3.0 Layered Over Windows PowerShell

MMC 3.0 Layered Over Windows PowerShell

Layered OverLayered Over

Windows FormsWindows Forms

Early Bound ObjectsEarly Bound Objects

Your Your ApplicationApplication

To ManageTo Manage

Page 15: 05 Management Technologies

Windows PowerShell &Microsoft Management Console 3.0

Windows PowerShell &Microsoft Management Console 3.0

Page 16: 05 Management Technologies

Cmdlet – “get-proc”Cmdlet – “get-proc”

namespace Microsoft.Samples.PowerShell.Commands

{

#region GetProcCommand

[Cmdlet(VerbsCommon.Get, "Proc")]

public class GetProcCommand : Cmdlet

{

protected override void ProcessRecord()

{

Process[] processes = Process.GetProcesses();

// Write the processes to the pipeline making them available

// to the next cmdlet.

WriteObject(processes, true);

}

}

namespace Microsoft.Samples.PowerShell.Commands

{

#region GetProcCommand

[Cmdlet(VerbsCommon.Get, "Proc")]

public class GetProcCommand : Cmdlet

{

protected override void ProcessRecord()

{

Process[] processes = Process.GetProcesses();

// Write the processes to the pipeline making them available

// to the next cmdlet.

WriteObject(processes, true);

}

}

•Build the cmdlet•using System.Management.Automation

•Build a snapin to install the cmdlet(s)

Page 17: 05 Management Technologies

Windows Eventing 6.0Windows Eventing 6.0

What is Windows Eventing 6.0?Logs Event Information to the Application Logs, updated in Longhorn ServerLets Administrators and management tools know what is happening

Why Use Windows Eventing 6.0?Better Performance & ReliabilityDeclarative Event StructureSubscriptionsUnified API for Eventing and TracingEvent ForwardingBenefits for Administrators

Logs Easier to Manage, Search and FilterBetter Tools

Benefits for DevelopersRicher Eventing and Tracing Capabilities

Page 18: 05 Management Technologies

Task SchedulerTask Scheduler

What is Task Scheduler?Windows Service for executing and managing the execution of jobs

Several enhancements in version 2.0:Removed limitations on the number of registered tasksScripting supportCreation/management of tasks through XML-formatted docsNew triggers (time, calendar, and event)Prioritization of tasks (i.e. define multiple instance policies, start a task only when it is available or only if the network is available, restart on failure, and set an execution time limit)New actions (send email, show message box, start exe, and fire a COM handler)

Page 19: 05 Management Technologies

Tasks and EventingTasks and Eventing

Page 20: 05 Management Technologies

Not forgetting…Not forgetting…

Group PolicyBulk Manage Windows Client Application Configuration

Enforce Configuration to Client ApplicationsEnable mass configuration of client Applications

WMIExpose Configuration/Management data and tasks to the OS

Allow Scriptable Configuration ChangesAllow Remote management

WS-ManagementStandard Specification for accessing management data

Common, platform neutral, network friendly access to management data such as WMISecure

Page 21: 05 Management Technologies

SummarySummary

Easier than ever before for an ISV to make every Administrator whoop for joy when they admin your solutionDSI and DFO are “work in progress” – but already an ISV can get great wins

Page 22: 05 Management Technologies

ResourcesResources

DSIDSI core principles

http://www.microsoft.com/windowsserversystem/dsi/dsicore.mspx

DSI homehttp://www.microsoft.com/windowsserversystem/dsi/default.mspx

Powershellhttp://blogs.msdn.com/powershell/ http://powergui.org/

MMC 3.0 and Powershell downloadshttp://blogs.msdn.com/ericnel

Page 23: 05 Management Technologies