SlideShare une entreprise Scribd logo
1  sur  30
Kåre Rude Andersen
Be a Hero – Optimize SCOM and
present your Services
Who am I
•
•
•

Kåre Rude Andersen - @KraCoretech
Consultant / Speaker / Trainer / Member of Microsoft SC Alliance Team
Coretech A/S | mail: kra@coretech.dk
Agenda
•
•
•
•
•
•

Introduction to Services
Ready Steady – GO!
Present SLO and SLA in a Dashboard
Bottlenecks – SCOM Performance
Whats New in R2
Use cases
Services Concept
• ITEL/MOF Process
• People, Process and IT

• Service Alert Escalation
• Service Owners (layer 1-2-3)
• 1/3 have a defined service plan, and
less downtime
Services Concept
•
•
•
•

•

Clear Goal
Base Monitoring
What is ”Normal”
Marketing yourself – Do your colleagues know about the
fantastic work you are doing?
Get the Control and Console
•

•
•
•

Find those SQL Report Servers installed on HP HW

Find the objects and the error
Security Services – Use the products (AEM/ACS/APM)
Service Catalog (CMDB – Service Manager)
Ready, Steady - GO!
•
•
•

•
•
•
•

Define the Goal
Define Service Owners and
let them in..
Define which dashboard
your organization will see
Do a PoC, and Test
Built-in Dashboard
Visio Maps / Sharepoint
3. part solutions
SLA Dashboard
• Create DA’s or
Groups in SCOM
• Define your Services
SLA and SLO
• Create Rollup and
Present
Demo
• Create a Group
• Put SLA on it
• Present it in varios ways
SBTOS
Bottleneck
• Is it slow?
• Identify the individual layers
• What’s Normal???
Layer 1 - Database
Memory – Page Life Expectancy
SELECT cntr_value AS [Page Life Expectancy]
FROM sys.dm_os_performance_counters
WHERE [object_name] = N'SQLServer:Buffer Manager’
AND counter_name = N'Page life expectancy' OPTION
RECOMPILE);
Layer 1 - Database
Disks – Database Performance against SAN, DAS
SELECT DB_NAME(fs.database_id) AS [Database Name], mf.physical_name, io_stall_read_ms,
num_of_reads,
CAST(io_stall_read_ms/(1.0 + num_of_reads) AS NUMERIC(10,1)) AS
[avg_read_stall_ms],io_stall_write_ms,
num_of_writes,CAST(io_stall_write_ms/(1.0+num_of_writes) AS NUMERIC(10,1)) AS
[avg_write_stall_ms],
io_stall_read_ms + io_stall_write_ms AS [io_stalls], num_of_reads + num_of_writes AS
[total_io],
CAST((io_stall_read_ms + io_stall_write_ms)/(1.0 + num_of_reads + num_of_writes) AS
NUMERIC(10,1))
AS [avg_io_stall_ms]
FROM sys.dm_io_virtual_file_stats(null,null) AS fs
INNER JOIN sys.master_files AS mf
ON fs.database_id = mf.database_id
AND fs.[file_id] = mf.[file_id]
ORDER BY avg_io_stall_ms DESC OPTION (RECOMPILE);
Layer 1 - Database
Disks – Database Performance against SAN, DAS
SELECT DB_NAME(fs.database_id) AS [Database Name], mf.physical_name, io_stall_read_ms,
num_of_reads,
CAST(io_stall_read_ms/(1.0 + num_of_reads) AS NUMERIC(10,1)) AS
[avg_read_stall_ms],io_stall_write_ms,
num_of_writes,CAST(io_stall_write_ms/(1.0+num_of_writes) AS NUMERIC(10,1)) AS
[avg_write_stall_ms],
io_stall_read_ms + io_stall_write_ms AS [io_stalls], num_of_reads + num_of_writes AS
[total_io],
CAST((io_stall_read_ms + io_stall_write_ms)/(1.0 + num_of_reads + num_of_writes) AS
NUMERIC(10,1))
AS [avg_io_stall_ms]
FROM sys.dm_io_virtual_file_stats(null,null) AS fs
INNER JOIN sys.master_files AS mf
ON fs.database_id = mf.database_id
AND fs.[file_id] = mf.[file_id]
ORDER BY avg_io_stall_ms DESC OPTION (RECOMPILE);
Layer 1 – SQL – Why Wait?
WITH Waits AS
(SELECT wait_type, wait_time_ms / 1000. AS wait_time_s,
100. * wait_time_ms / SUM(wait_time_ms) OVER() AS pct,
ROW_NUMBER() OVER(ORDER BY wait_time_ms DESC) AS rn
FROM sys.dm_os_wait_stats
WHERE wait_type NOT IN ('CLR_SEMAPHORE','LAZYWRITER_SLEEP','RESOURCE_QUEUE','SLEEP_TASK',
'SLEEP_SYSTEMTASK','SQLTRACE_BUFFER_FLUSH','WAITFOR', 'LOGMGR_QUEUE','CHECKPOINT_QUEUE',
'REQUEST_FOR_DEADLOCK_SEARCH','XE_TIMER_EVENT','BROKER_TO_FLUSH','BROKER_TASK_STOP','CLR_MANUAL_EVENT',
'CLR_AUTO_EVENT','DISPATCHER_QUEUE_SEMAPHORE', 'FT_IFTS_SCHEDULER_IDLE_WAIT',
'XE_DISPATCHER_WAIT', 'XE_DISPATCHER_JOIN', 'SQLTRACE_INCREMENTAL_FLUSH_SLEEP',
'ONDEMAND_TASK_QUEUE', 'BROKER_EVENTHANDLER', 'SLEEP_BPOOL_FLUSH'))
SELECT W1.wait_type,
CAST(W1.wait_time_s AS DECIMAL(12, 2)) AS wait_time_s,
CAST(W1.pct AS DECIMAL(12, 2)) AS pct,
CAST(SUM(W2.pct) AS DECIMAL(12, 2)) AS running_pct
FROM Waits AS W1
INNER JOIN Waits AS W2
ON W2.rn <= W1.rn
GROUP BY W1.rn, W1.wait_type, W1.wait_time_s, W1.pct
HAVING SUM(W2.pct) - W1.pct < 99 OPTION (RECOMPILE)
SQL – Database Performance
• SQL Standard settings
•
•
•
•
•

MDOP
Stripe the Database (Tempdb and OpsMgr)
Max Memory
Truncate log on Checkpoint
Always On

http://blogs.technet.com/b/manageabilityguys/archive/2013/
09/20/quot-mdoping-quot-your-scom-console-performancewith-some-simple-sql-tips.aspx
Layer 2 – Management Server
•
•
•
•

Disk, Disk, Disk, Disk, Disk
Disk, Disk, Disk, Disk, Disk
Disk, Disk, Disk, Disk, Disk
CrystalDiskMark
Layer 2 – Management Server
• Memory
• Installed connectors on the Management Server
• Distribute the Workload
• Resource pools
• GW servers if round time threshold > 20 ms
• Processer:
• HKLMSOFTWAREMicrosoftMicrosoft Operations
Manager3.0GroupCalcPollingIntervalMilliseconds
Layer 3 – Agent, Linux, Network
• Management Pack Design – discoveries
• Scripts, Powershell timeout
• MaximumQueuesizeKB
• Network and Linux
Demo
• SQL Server Performance
SDK
• Get down to it
• Good samples
SDK – Web Services
param($ServiceNowUrl,$AlertXML)
$ErrorActionPreference = "stop"
Import-Module OperationsManager
$Alert = Get-SCOMAlert -Id $AlertXML.AlertId
#login SOAP
$username = "MIDserver3M"
$password = "password" | ConvertTo-SecureString -asPlainText -Force
$credential = New-Object System.Management.Automation.PSCredential($username,$password)
$url = 'https://MMMdev.service-now.com/u_scom.do?WSDL'
$sn = New-WebServiceProxy -uri $url -Credential $credential
#get autogenerated namespace
$type = $sn.GetType().Namespace
$insert = new-object ($type + '.insert')
#Insert a new record with these values
$insert.acknowledgesync = ""
$insert.category = $Alert.Category
$insert.customfield1 = $Alert.Custom1
$insert.customfield2 = $Alert.Custom2
$insert.description = $Alert.AlertDescription
$insert.id = $Alert.AlertId
$insert.managementgroup = $Alert.managementgroup #TODO
$insert.monitoringobjectfullname = $Alert.ManagedEntityFullName
$insert.monitoringobjectid = $Alert.ManagedEntity
$insert.monitoringobjectpath = $Alert.ManagedEntityPath
$insert.name = $Alert.AlertName
$insert.netbioscomputername = $Alert.netbioscomputername #TODO
$insert.owner = $Alert.AlertOwner
$insert.parameters = $Alert.AlertParams
$insert.principalname = $Alert.principalname #TODO
$insert.priority = $Alert.priority
$insert.repeatcount = $Alert.RepeatCount
$insert.resolutionstate = $Alert.ResolutionStateName
$insert.severity = $Alert.severity
$insert.sitename = $Alert.sitename #TODO
$insert.timeraised = $Alert.TimeRaised
$insert.timeresolution_telastmodified = $Alert.TimeResolutionStateLastModified

$result = $sn.insert($insert)
$Alert | Set-SCOMAlert -TicketId $result.display_value
SDK – Get the Guids from Name
SDK – Get HealthState
Use-Cases
• Automatic Maintenance Mode
• Alert Robot
• Resend Alert again
Automatic Maintenance Mode
Use either:
http://www.systemcentercentral.com/opsmgr-2012-groupmaintenance-mode-via-powershell-the-way-it-should-be

or
http://gallery.technet.microsoft.com/scriptcenter/Put-OM2012Computer-Group-43902672
Next slide
Automatic Maintenance Mode
Create a Command Channel that runs a script like this:
Alert Robot
Import-Module OperationsManager
$Alerts = get-scomalert -ResolutionState 0
if ($Alerts)
{
foreach($Alert in $Alerts)
{
$newState = $null
switch -wildcard ($Alert.Description)
{
"*Active directory*" { $newState = 10 }
"*DNS*"
{ $newState = 30 }
"*Cisco*"
{ $newState = 250}
}
switch -wildcard ($Alert.Name)
{
"ACME.Monitor.Event.Dummy.100" { $newState = 249 }
"Another Alert Text" { $newState = 10 }
}
if($newState -ne $null)
{
$Alert.ResolutionState = $newState
$Alert.Update(“Resolution State changed automatically by the QueueManager Robot”)
}
}
}
Resend Alert again, again a…
$oldAlerts = Get-SCOMAlert | Where-Object {($_.LastModified -ge
[DateTime]::Now.AddHours(-4)) -and ($_.ResolutionState -eq 0)}
ForEach($alert in $oldAlerts)
{
$alert.Update("")
}
Summary
• Present your Services
• Find the bottlenecks
• Implement Automation
Please evaluate the session
before you leave


Contenu connexe

Tendances

Cassandra Summit 2013 Keynote
Cassandra Summit 2013 KeynoteCassandra Summit 2013 Keynote
Cassandra Summit 2013 Keynote
jbellis
 
Tokyo cassandra conference 2014
Tokyo cassandra conference 2014Tokyo cassandra conference 2014
Tokyo cassandra conference 2014
jbellis
 
DataStax | Advanced DSE Analytics Client Configuration (Jacek Lewandowski) | ...
DataStax | Advanced DSE Analytics Client Configuration (Jacek Lewandowski) | ...DataStax | Advanced DSE Analytics Client Configuration (Jacek Lewandowski) | ...
DataStax | Advanced DSE Analytics Client Configuration (Jacek Lewandowski) | ...
DataStax
 

Tendances (20)

Cassandra Summit 2013 Keynote
Cassandra Summit 2013 KeynoteCassandra Summit 2013 Keynote
Cassandra Summit 2013 Keynote
 
TLS305 Using DynamoDB with the AWS SDK for PHP - AWS re: Invent 2012
TLS305 Using DynamoDB with the AWS SDK for PHP - AWS re: Invent 2012TLS305 Using DynamoDB with the AWS SDK for PHP - AWS re: Invent 2012
TLS305 Using DynamoDB with the AWS SDK for PHP - AWS re: Invent 2012
 
Introduction databases and MYSQL
Introduction databases and MYSQLIntroduction databases and MYSQL
Introduction databases and MYSQL
 
Using Spark to Load Oracle Data into Cassandra
Using Spark to Load Oracle Data into CassandraUsing Spark to Load Oracle Data into Cassandra
Using Spark to Load Oracle Data into Cassandra
 
MongoDB-SESSION03
MongoDB-SESSION03MongoDB-SESSION03
MongoDB-SESSION03
 
Deep Dive - Advanced Usage of the AWS CLI
Deep Dive - Advanced Usage of the AWS CLIDeep Dive - Advanced Usage of the AWS CLI
Deep Dive - Advanced Usage of the AWS CLI
 
Deep Dive: AWS Command Line Interface
Deep Dive: AWS Command Line InterfaceDeep Dive: AWS Command Line Interface
Deep Dive: AWS Command Line Interface
 
Cassandra 3.0 Awesomeness
Cassandra 3.0 AwesomenessCassandra 3.0 Awesomeness
Cassandra 3.0 Awesomeness
 
OSDC 2012 | Scaling with MongoDB by Ross Lawley
OSDC 2012 | Scaling with MongoDB by Ross LawleyOSDC 2012 | Scaling with MongoDB by Ross Lawley
OSDC 2012 | Scaling with MongoDB by Ross Lawley
 
(DEV301) Advanced Usage of the AWS CLI | AWS re:Invent 2014
(DEV301) Advanced Usage of the AWS CLI | AWS re:Invent 2014(DEV301) Advanced Usage of the AWS CLI | AWS re:Invent 2014
(DEV301) Advanced Usage of the AWS CLI | AWS re:Invent 2014
 
PHP with MYSQL
PHP with MYSQLPHP with MYSQL
PHP with MYSQL
 
Cassandra summit keynote 2014
Cassandra summit keynote 2014Cassandra summit keynote 2014
Cassandra summit keynote 2014
 
OrientDB
OrientDBOrientDB
OrientDB
 
Cassandra 3.0 Data Modeling
Cassandra 3.0 Data ModelingCassandra 3.0 Data Modeling
Cassandra 3.0 Data Modeling
 
Deploy and Manage the Infrastructure Using Azure Resource Manager
Deploy and Manage the Infrastructure Using Azure Resource ManagerDeploy and Manage the Infrastructure Using Azure Resource Manager
Deploy and Manage the Infrastructure Using Azure Resource Manager
 
Cassandra Day Chicago 2015: Advanced Data Modeling
Cassandra Day Chicago 2015: Advanced Data ModelingCassandra Day Chicago 2015: Advanced Data Modeling
Cassandra Day Chicago 2015: Advanced Data Modeling
 
Tokyo cassandra conference 2014
Tokyo cassandra conference 2014Tokyo cassandra conference 2014
Tokyo cassandra conference 2014
 
DataStax | Advanced DSE Analytics Client Configuration (Jacek Lewandowski) | ...
DataStax | Advanced DSE Analytics Client Configuration (Jacek Lewandowski) | ...DataStax | Advanced DSE Analytics Client Configuration (Jacek Lewandowski) | ...
DataStax | Advanced DSE Analytics Client Configuration (Jacek Lewandowski) | ...
 
Scaling with MongoDB
Scaling with MongoDBScaling with MongoDB
Scaling with MongoDB
 
An introduction to CouchDB
An introduction to CouchDBAn introduction to CouchDB
An introduction to CouchDB
 

En vedette

Ståle Hansen - Understand how video works in lync and how video interoperabil...
Ståle Hansen - Understand how video works in lync and how video interoperabil...Ståle Hansen - Understand how video works in lync and how video interoperabil...
Ståle Hansen - Understand how video works in lync and how video interoperabil...
Nordic Infrastructure Conference
 
AndreaRenaud_DesignMgt_Portfolio2
AndreaRenaud_DesignMgt_Portfolio2AndreaRenaud_DesignMgt_Portfolio2
AndreaRenaud_DesignMgt_Portfolio2
Andrea Renaud
 
Beringe icorto
Beringe icortoBeringe icorto
Beringe icorto
gmmlke
 
Program tahunan kls iii smt 1 &amp; 2
Program tahunan kls iii smt 1 &amp;  2Program tahunan kls iii smt 1 &amp;  2
Program tahunan kls iii smt 1 &amp; 2
689386
 

En vedette (17)

Ståle Hansen - Understand how video works in lync and how video interoperabil...
Ståle Hansen - Understand how video works in lync and how video interoperabil...Ståle Hansen - Understand how video works in lync and how video interoperabil...
Ståle Hansen - Understand how video works in lync and how video interoperabil...
 
Andy Malone - The new office 365 for it pro's
Andy Malone - The new office 365 for it pro'sAndy Malone - The new office 365 for it pro's
Andy Malone - The new office 365 for it pro's
 
AndreaRenaud_DesignMgt_Portfolio2
AndreaRenaud_DesignMgt_Portfolio2AndreaRenaud_DesignMgt_Portfolio2
AndreaRenaud_DesignMgt_Portfolio2
 
Airport authority of India summer training ppt
Airport authority of India summer training pptAirport authority of India summer training ppt
Airport authority of India summer training ppt
 
Rose & Relationship
Rose & RelationshipRose & Relationship
Rose & Relationship
 
2013.06.19 Эрчим хүчний диваажин, Б. Бямбасайхан
2013.06.19  Эрчим хүчний диваажин, Б. Бямбасайхан2013.06.19  Эрчим хүчний диваажин, Б. Бямбасайхан
2013.06.19 Эрчим хүчний диваажин, Б. Бямбасайхан
 
SEMINAR
SEMINARSEMINAR
SEMINAR
 
23.04.2010, NEWSWIRE, Issue 115
23.04.2010, NEWSWIRE, Issue 11523.04.2010, NEWSWIRE, Issue 115
23.04.2010, NEWSWIRE, Issue 115
 
2014, REPORT, Real Estate Report 2014, Mongolia Properties
2014, REPORT, Real Estate Report 2014, Mongolia Properties2014, REPORT, Real Estate Report 2014, Mongolia Properties
2014, REPORT, Real Estate Report 2014, Mongolia Properties
 
Story telling. Tom Sawyer
Story telling. Tom Sawyer Story telling. Tom Sawyer
Story telling. Tom Sawyer
 
Asian monetary cooperation
Asian monetary cooperationAsian monetary cooperation
Asian monetary cooperation
 
Beringe icorto
Beringe icortoBeringe icorto
Beringe icorto
 
Renacimient oppt
Renacimient opptRenacimient oppt
Renacimient oppt
 
Marc
MarcMarc
Marc
 
Male extra pills review
Male extra pills reviewMale extra pills review
Male extra pills review
 
Program tahunan kls iii smt 1 &amp; 2
Program tahunan kls iii smt 1 &amp;  2Program tahunan kls iii smt 1 &amp;  2
Program tahunan kls iii smt 1 &amp; 2
 
S4 tarea4 fegur
S4 tarea4 fegurS4 tarea4 fegur
S4 tarea4 fegur
 

Similaire à Kåre Rude Andersen - Be a hero – optimize scom and present your services

Oracle forensics 101
Oracle forensics 101Oracle forensics 101
Oracle forensics 101
fangjiafu
 
Back 2 basics - SSMS Tips (IDf)
Back 2 basics - SSMS Tips (IDf)Back 2 basics - SSMS Tips (IDf)
Back 2 basics - SSMS Tips (IDf)
sqlserver.co.il
 
OWB11gR2 - Extending ETL
OWB11gR2 - Extending ETL OWB11gR2 - Extending ETL
OWB11gR2 - Extending ETL
Suraj Bang
 

Similaire à Kåre Rude Andersen - Be a hero – optimize scom and present your services (20)

A Designer's Favourite Security and Privacy Features in SQL Server and Azure ...
A Designer's Favourite Security and Privacy Features in SQL Server and Azure ...A Designer's Favourite Security and Privacy Features in SQL Server and Azure ...
A Designer's Favourite Security and Privacy Features in SQL Server and Azure ...
 
Designer's Favorite New Features in SQLServer
Designer's Favorite New Features in SQLServerDesigner's Favorite New Features in SQLServer
Designer's Favorite New Features in SQLServer
 
Cloud Computing in PHP With the Amazon Web Services
Cloud Computing in PHP With the Amazon Web ServicesCloud Computing in PHP With the Amazon Web Services
Cloud Computing in PHP With the Amazon Web Services
 
Know your SQL Server - DMVs
Know your SQL Server - DMVsKnow your SQL Server - DMVs
Know your SQL Server - DMVs
 
CCI2018 - Automatizzare la creazione di risorse con ARM template e PowerShell
CCI2018 - Automatizzare la creazione di risorse con ARM template e PowerShellCCI2018 - Automatizzare la creazione di risorse con ARM template e PowerShell
CCI2018 - Automatizzare la creazione di risorse con ARM template e PowerShell
 
It Depends
It DependsIt Depends
It Depends
 
Oracle forensics 101
Oracle forensics 101Oracle forensics 101
Oracle forensics 101
 
Sql Summit Clr, Service Broker And Xml
Sql Summit   Clr, Service Broker And XmlSql Summit   Clr, Service Broker And Xml
Sql Summit Clr, Service Broker And Xml
 
Back2 Basic Tools
Back2 Basic ToolsBack2 Basic Tools
Back2 Basic Tools
 
Back 2 basics - SSMS Tips (IDf)
Back 2 basics - SSMS Tips (IDf)Back 2 basics - SSMS Tips (IDf)
Back 2 basics - SSMS Tips (IDf)
 
Simon Elliston Ball – When to NoSQL and When to Know SQL - NoSQL matters Barc...
Simon Elliston Ball – When to NoSQL and When to Know SQL - NoSQL matters Barc...Simon Elliston Ball – When to NoSQL and When to Know SQL - NoSQL matters Barc...
Simon Elliston Ball – When to NoSQL and When to Know SQL - NoSQL matters Barc...
 
Day2
Day2Day2
Day2
 
Enable Database Service over HTTP or IBM WebSphere MQ in 15_minutes with IAS
Enable Database Service over HTTP or IBM WebSphere MQ in 15_minutes with IASEnable Database Service over HTTP or IBM WebSphere MQ in 15_minutes with IAS
Enable Database Service over HTTP or IBM WebSphere MQ in 15_minutes with IAS
 
Ajuste (tuning) del rendimiento de SQL Server 2008
Ajuste (tuning) del rendimiento de SQL Server 2008Ajuste (tuning) del rendimiento de SQL Server 2008
Ajuste (tuning) del rendimiento de SQL Server 2008
 
SQL Server Performance Analysis
SQL Server Performance AnalysisSQL Server Performance Analysis
SQL Server Performance Analysis
 
Data Warehousing with Python
Data Warehousing with PythonData Warehousing with Python
Data Warehousing with Python
 
AWS November Webinar Series - Advanced Analytics with Amazon Redshift and the...
AWS November Webinar Series - Advanced Analytics with Amazon Redshift and the...AWS November Webinar Series - Advanced Analytics with Amazon Redshift and the...
AWS November Webinar Series - Advanced Analytics with Amazon Redshift and the...
 
All Things Open 2016 -- Database Programming for Newbies
All Things Open 2016 -- Database Programming for NewbiesAll Things Open 2016 -- Database Programming for Newbies
All Things Open 2016 -- Database Programming for Newbies
 
OWB11gR2 - Extending ETL
OWB11gR2 - Extending ETL OWB11gR2 - Extending ETL
OWB11gR2 - Extending ETL
 
AD Cmdlets
AD CmdletsAD Cmdlets
AD Cmdlets
 

Plus de Nordic Infrastructure Conference

Raymond Comvalius & Sander Berkouwer - Bring your own device essentials with ...
Raymond Comvalius & Sander Berkouwer - Bring your own device essentials with ...Raymond Comvalius & Sander Berkouwer - Bring your own device essentials with ...
Raymond Comvalius & Sander Berkouwer - Bring your own device essentials with ...
Nordic Infrastructure Conference
 
Andy Malone - Keynote: the cloud one small step for man one giant leap for it
Andy Malone - Keynote: the cloud one small step for man one giant leap for itAndy Malone - Keynote: the cloud one small step for man one giant leap for it
Andy Malone - Keynote: the cloud one small step for man one giant leap for it
Nordic Infrastructure Conference
 
Kent Agerlund - Via monstra part 4 become the hero of the day, master configm...
Kent Agerlund - Via monstra part 4 become the hero of the day, master configm...Kent Agerlund - Via monstra part 4 become the hero of the day, master configm...
Kent Agerlund - Via monstra part 4 become the hero of the day, master configm...
Nordic Infrastructure Conference
 
Wally Mead - Overview of system center 2012 r2 configuration manager
Wally Mead - Overview of system center 2012 r2 configuration managerWally Mead - Overview of system center 2012 r2 configuration manager
Wally Mead - Overview of system center 2012 r2 configuration manager
Nordic Infrastructure Conference
 
Wally Mead - Managing mobile devices with system center 2012 r2 configuration...
Wally Mead - Managing mobile devices with system center 2012 r2 configuration...Wally Mead - Managing mobile devices with system center 2012 r2 configuration...
Wally Mead - Managing mobile devices with system center 2012 r2 configuration...
Nordic Infrastructure Conference
 
Wally Mead - Deploying a system center 2012 r2 configuration manager environm...
Wally Mead - Deploying a system center 2012 r2 configuration manager environm...Wally Mead - Deploying a system center 2012 r2 configuration manager environm...
Wally Mead - Deploying a system center 2012 r2 configuration manager environm...
Nordic Infrastructure Conference
 
Ståle Hansen - Understand how lync integrates with exchange
Ståle Hansen - Understand how lync integrates with exchangeStåle Hansen - Understand how lync integrates with exchange
Ståle Hansen - Understand how lync integrates with exchange
Nordic Infrastructure Conference
 
Scott Schnoll - Exchange server 2013 virtualization best practices
Scott Schnoll - Exchange server 2013 virtualization best practicesScott Schnoll - Exchange server 2013 virtualization best practices
Scott Schnoll - Exchange server 2013 virtualization best practices
Nordic Infrastructure Conference
 
Scott Schnoll - Exchange server 2013 high availability and site resilience
Scott Schnoll - Exchange server 2013 high availability and site resilienceScott Schnoll - Exchange server 2013 high availability and site resilience
Scott Schnoll - Exchange server 2013 high availability and site resilience
Nordic Infrastructure Conference
 
Robert Waldinger - How to recover active directory if disaster should occur
Robert Waldinger - How to recover active directory if disaster should occurRobert Waldinger - How to recover active directory if disaster should occur
Robert Waldinger - How to recover active directory if disaster should occur
Nordic Infrastructure Conference
 
Peter De Tender - The roadmap to deploying office365 pro plus
Peter De Tender - The roadmap to deploying office365 pro plusPeter De Tender - The roadmap to deploying office365 pro plus
Peter De Tender - The roadmap to deploying office365 pro plus
Nordic Infrastructure Conference
 

Plus de Nordic Infrastructure Conference (20)

Raymond Comvalius & Sander Berkouwer - Bring your own device essentials with ...
Raymond Comvalius & Sander Berkouwer - Bring your own device essentials with ...Raymond Comvalius & Sander Berkouwer - Bring your own device essentials with ...
Raymond Comvalius & Sander Berkouwer - Bring your own device essentials with ...
 
Mike Resseler - Using hyper-v replica in your environment
Mike Resseler - Using hyper-v replica in your environmentMike Resseler - Using hyper-v replica in your environment
Mike Resseler - Using hyper-v replica in your environment
 
Mike Resseler - Deduplication in windows server 2012 r2
Mike Resseler - Deduplication in windows server 2012 r2Mike Resseler - Deduplication in windows server 2012 r2
Mike Resseler - Deduplication in windows server 2012 r2
 
Andy Malone - Migrating to office 365
Andy Malone - Migrating to office 365Andy Malone - Migrating to office 365
Andy Malone - Migrating to office 365
 
Andy Malone - Microsoft office 365 security deep dive
Andy Malone - Microsoft office 365 security deep diveAndy Malone - Microsoft office 365 security deep dive
Andy Malone - Microsoft office 365 security deep dive
 
Andy Malone - Keynote: the cloud one small step for man one giant leap for it
Andy Malone - Keynote: the cloud one small step for man one giant leap for itAndy Malone - Keynote: the cloud one small step for man one giant leap for it
Andy Malone - Keynote: the cloud one small step for man one giant leap for it
 
Kent Agerlund - Via monstra part 4 become the hero of the day, master configm...
Kent Agerlund - Via monstra part 4 become the hero of the day, master configm...Kent Agerlund - Via monstra part 4 become the hero of the day, master configm...
Kent Agerlund - Via monstra part 4 become the hero of the day, master configm...
 
Wally Mead - Overview of system center 2012 r2 configuration manager
Wally Mead - Overview of system center 2012 r2 configuration managerWally Mead - Overview of system center 2012 r2 configuration manager
Wally Mead - Overview of system center 2012 r2 configuration manager
 
Wally Mead - Managing mobile devices with system center 2012 r2 configuration...
Wally Mead - Managing mobile devices with system center 2012 r2 configuration...Wally Mead - Managing mobile devices with system center 2012 r2 configuration...
Wally Mead - Managing mobile devices with system center 2012 r2 configuration...
 
Travis Wright - PS WF SMA SCSM SP
Travis Wright - PS WF SMA SCSM SPTravis Wright - PS WF SMA SCSM SP
Travis Wright - PS WF SMA SCSM SP
 
Travis Wright - Complete it service management
Travis Wright - Complete it service managementTravis Wright - Complete it service management
Travis Wright - Complete it service management
 
Wally Mead - Deploying a system center 2012 r2 configuration manager environm...
Wally Mead - Deploying a system center 2012 r2 configuration manager environm...Wally Mead - Deploying a system center 2012 r2 configuration manager environm...
Wally Mead - Deploying a system center 2012 r2 configuration manager environm...
 
Ståle Hansen - Understand how lync integrates with exchange
Ståle Hansen - Understand how lync integrates with exchangeStåle Hansen - Understand how lync integrates with exchange
Ståle Hansen - Understand how lync integrates with exchange
 
Scott Schnoll - Exchange server 2013 virtualization best practices
Scott Schnoll - Exchange server 2013 virtualization best practicesScott Schnoll - Exchange server 2013 virtualization best practices
Scott Schnoll - Exchange server 2013 virtualization best practices
 
Scott Schnoll - Exchange server 2013 high availability and site resilience
Scott Schnoll - Exchange server 2013 high availability and site resilienceScott Schnoll - Exchange server 2013 high availability and site resilience
Scott Schnoll - Exchange server 2013 high availability and site resilience
 
Sami laiho - What's new in windows 8.1
Sami laiho - What's new in windows 8.1Sami laiho - What's new in windows 8.1
Sami laiho - What's new in windows 8.1
 
Robert Waldinger - How to recover active directory if disaster should occur
Robert Waldinger - How to recover active directory if disaster should occurRobert Waldinger - How to recover active directory if disaster should occur
Robert Waldinger - How to recover active directory if disaster should occur
 
Peter De Tender - The roadmap to deploying office365 pro plus
Peter De Tender - The roadmap to deploying office365 pro plusPeter De Tender - The roadmap to deploying office365 pro plus
Peter De Tender - The roadmap to deploying office365 pro plus
 
Peter De Tender - How to efficiently license office 365
Peter De Tender - How to efficiently license office 365Peter De Tender - How to efficiently license office 365
Peter De Tender - How to efficiently license office 365
 
Sami Laiho - Black belt troubleshooting windows 8.1
Sami Laiho - Black belt troubleshooting windows 8.1Sami Laiho - Black belt troubleshooting windows 8.1
Sami Laiho - Black belt troubleshooting windows 8.1
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 

Kåre Rude Andersen - Be a hero – optimize scom and present your services

  • 1. Kåre Rude Andersen Be a Hero – Optimize SCOM and present your Services
  • 2. Who am I • • • Kåre Rude Andersen - @KraCoretech Consultant / Speaker / Trainer / Member of Microsoft SC Alliance Team Coretech A/S | mail: kra@coretech.dk
  • 3. Agenda • • • • • • Introduction to Services Ready Steady – GO! Present SLO and SLA in a Dashboard Bottlenecks – SCOM Performance Whats New in R2 Use cases
  • 4. Services Concept • ITEL/MOF Process • People, Process and IT • Service Alert Escalation • Service Owners (layer 1-2-3) • 1/3 have a defined service plan, and less downtime
  • 5. Services Concept • • • • • Clear Goal Base Monitoring What is ”Normal” Marketing yourself – Do your colleagues know about the fantastic work you are doing? Get the Control and Console • • • • Find those SQL Report Servers installed on HP HW Find the objects and the error Security Services – Use the products (AEM/ACS/APM) Service Catalog (CMDB – Service Manager)
  • 6. Ready, Steady - GO! • • • • • • • Define the Goal Define Service Owners and let them in.. Define which dashboard your organization will see Do a PoC, and Test Built-in Dashboard Visio Maps / Sharepoint 3. part solutions
  • 7. SLA Dashboard • Create DA’s or Groups in SCOM • Define your Services SLA and SLO • Create Rollup and Present
  • 8. Demo • Create a Group • Put SLA on it • Present it in varios ways
  • 10. Bottleneck • Is it slow? • Identify the individual layers • What’s Normal???
  • 11. Layer 1 - Database Memory – Page Life Expectancy SELECT cntr_value AS [Page Life Expectancy] FROM sys.dm_os_performance_counters WHERE [object_name] = N'SQLServer:Buffer Manager’ AND counter_name = N'Page life expectancy' OPTION RECOMPILE);
  • 12. Layer 1 - Database Disks – Database Performance against SAN, DAS SELECT DB_NAME(fs.database_id) AS [Database Name], mf.physical_name, io_stall_read_ms, num_of_reads, CAST(io_stall_read_ms/(1.0 + num_of_reads) AS NUMERIC(10,1)) AS [avg_read_stall_ms],io_stall_write_ms, num_of_writes,CAST(io_stall_write_ms/(1.0+num_of_writes) AS NUMERIC(10,1)) AS [avg_write_stall_ms], io_stall_read_ms + io_stall_write_ms AS [io_stalls], num_of_reads + num_of_writes AS [total_io], CAST((io_stall_read_ms + io_stall_write_ms)/(1.0 + num_of_reads + num_of_writes) AS NUMERIC(10,1)) AS [avg_io_stall_ms] FROM sys.dm_io_virtual_file_stats(null,null) AS fs INNER JOIN sys.master_files AS mf ON fs.database_id = mf.database_id AND fs.[file_id] = mf.[file_id] ORDER BY avg_io_stall_ms DESC OPTION (RECOMPILE);
  • 13. Layer 1 - Database Disks – Database Performance against SAN, DAS SELECT DB_NAME(fs.database_id) AS [Database Name], mf.physical_name, io_stall_read_ms, num_of_reads, CAST(io_stall_read_ms/(1.0 + num_of_reads) AS NUMERIC(10,1)) AS [avg_read_stall_ms],io_stall_write_ms, num_of_writes,CAST(io_stall_write_ms/(1.0+num_of_writes) AS NUMERIC(10,1)) AS [avg_write_stall_ms], io_stall_read_ms + io_stall_write_ms AS [io_stalls], num_of_reads + num_of_writes AS [total_io], CAST((io_stall_read_ms + io_stall_write_ms)/(1.0 + num_of_reads + num_of_writes) AS NUMERIC(10,1)) AS [avg_io_stall_ms] FROM sys.dm_io_virtual_file_stats(null,null) AS fs INNER JOIN sys.master_files AS mf ON fs.database_id = mf.database_id AND fs.[file_id] = mf.[file_id] ORDER BY avg_io_stall_ms DESC OPTION (RECOMPILE);
  • 14. Layer 1 – SQL – Why Wait? WITH Waits AS (SELECT wait_type, wait_time_ms / 1000. AS wait_time_s, 100. * wait_time_ms / SUM(wait_time_ms) OVER() AS pct, ROW_NUMBER() OVER(ORDER BY wait_time_ms DESC) AS rn FROM sys.dm_os_wait_stats WHERE wait_type NOT IN ('CLR_SEMAPHORE','LAZYWRITER_SLEEP','RESOURCE_QUEUE','SLEEP_TASK', 'SLEEP_SYSTEMTASK','SQLTRACE_BUFFER_FLUSH','WAITFOR', 'LOGMGR_QUEUE','CHECKPOINT_QUEUE', 'REQUEST_FOR_DEADLOCK_SEARCH','XE_TIMER_EVENT','BROKER_TO_FLUSH','BROKER_TASK_STOP','CLR_MANUAL_EVENT', 'CLR_AUTO_EVENT','DISPATCHER_QUEUE_SEMAPHORE', 'FT_IFTS_SCHEDULER_IDLE_WAIT', 'XE_DISPATCHER_WAIT', 'XE_DISPATCHER_JOIN', 'SQLTRACE_INCREMENTAL_FLUSH_SLEEP', 'ONDEMAND_TASK_QUEUE', 'BROKER_EVENTHANDLER', 'SLEEP_BPOOL_FLUSH')) SELECT W1.wait_type, CAST(W1.wait_time_s AS DECIMAL(12, 2)) AS wait_time_s, CAST(W1.pct AS DECIMAL(12, 2)) AS pct, CAST(SUM(W2.pct) AS DECIMAL(12, 2)) AS running_pct FROM Waits AS W1 INNER JOIN Waits AS W2 ON W2.rn <= W1.rn GROUP BY W1.rn, W1.wait_type, W1.wait_time_s, W1.pct HAVING SUM(W2.pct) - W1.pct < 99 OPTION (RECOMPILE)
  • 15. SQL – Database Performance • SQL Standard settings • • • • • MDOP Stripe the Database (Tempdb and OpsMgr) Max Memory Truncate log on Checkpoint Always On http://blogs.technet.com/b/manageabilityguys/archive/2013/ 09/20/quot-mdoping-quot-your-scom-console-performancewith-some-simple-sql-tips.aspx
  • 16. Layer 2 – Management Server • • • • Disk, Disk, Disk, Disk, Disk Disk, Disk, Disk, Disk, Disk Disk, Disk, Disk, Disk, Disk CrystalDiskMark
  • 17. Layer 2 – Management Server • Memory • Installed connectors on the Management Server • Distribute the Workload • Resource pools • GW servers if round time threshold > 20 ms • Processer: • HKLMSOFTWAREMicrosoftMicrosoft Operations Manager3.0GroupCalcPollingIntervalMilliseconds
  • 18. Layer 3 – Agent, Linux, Network • Management Pack Design – discoveries • Scripts, Powershell timeout • MaximumQueuesizeKB • Network and Linux
  • 19. Demo • SQL Server Performance
  • 20. SDK • Get down to it • Good samples
  • 21. SDK – Web Services param($ServiceNowUrl,$AlertXML) $ErrorActionPreference = "stop" Import-Module OperationsManager $Alert = Get-SCOMAlert -Id $AlertXML.AlertId #login SOAP $username = "MIDserver3M" $password = "password" | ConvertTo-SecureString -asPlainText -Force $credential = New-Object System.Management.Automation.PSCredential($username,$password) $url = 'https://MMMdev.service-now.com/u_scom.do?WSDL' $sn = New-WebServiceProxy -uri $url -Credential $credential #get autogenerated namespace $type = $sn.GetType().Namespace $insert = new-object ($type + '.insert') #Insert a new record with these values $insert.acknowledgesync = "" $insert.category = $Alert.Category $insert.customfield1 = $Alert.Custom1 $insert.customfield2 = $Alert.Custom2 $insert.description = $Alert.AlertDescription $insert.id = $Alert.AlertId $insert.managementgroup = $Alert.managementgroup #TODO $insert.monitoringobjectfullname = $Alert.ManagedEntityFullName $insert.monitoringobjectid = $Alert.ManagedEntity $insert.monitoringobjectpath = $Alert.ManagedEntityPath $insert.name = $Alert.AlertName $insert.netbioscomputername = $Alert.netbioscomputername #TODO $insert.owner = $Alert.AlertOwner $insert.parameters = $Alert.AlertParams $insert.principalname = $Alert.principalname #TODO $insert.priority = $Alert.priority $insert.repeatcount = $Alert.RepeatCount $insert.resolutionstate = $Alert.ResolutionStateName $insert.severity = $Alert.severity $insert.sitename = $Alert.sitename #TODO $insert.timeraised = $Alert.TimeRaised $insert.timeresolution_telastmodified = $Alert.TimeResolutionStateLastModified $result = $sn.insert($insert) $Alert | Set-SCOMAlert -TicketId $result.display_value
  • 22. SDK – Get the Guids from Name
  • 23. SDK – Get HealthState
  • 24. Use-Cases • Automatic Maintenance Mode • Alert Robot • Resend Alert again
  • 25. Automatic Maintenance Mode Use either: http://www.systemcentercentral.com/opsmgr-2012-groupmaintenance-mode-via-powershell-the-way-it-should-be or http://gallery.technet.microsoft.com/scriptcenter/Put-OM2012Computer-Group-43902672 Next slide
  • 26. Automatic Maintenance Mode Create a Command Channel that runs a script like this:
  • 27. Alert Robot Import-Module OperationsManager $Alerts = get-scomalert -ResolutionState 0 if ($Alerts) { foreach($Alert in $Alerts) { $newState = $null switch -wildcard ($Alert.Description) { "*Active directory*" { $newState = 10 } "*DNS*" { $newState = 30 } "*Cisco*" { $newState = 250} } switch -wildcard ($Alert.Name) { "ACME.Monitor.Event.Dummy.100" { $newState = 249 } "Another Alert Text" { $newState = 10 } } if($newState -ne $null) { $Alert.ResolutionState = $newState $Alert.Update(“Resolution State changed automatically by the QueueManager Robot”) } } }
  • 28. Resend Alert again, again a… $oldAlerts = Get-SCOMAlert | Where-Object {($_.LastModified -ge [DateTime]::Now.AddHours(-4)) -and ($_.ResolutionState -eq 0)} ForEach($alert in $oldAlerts) { $alert.Update("") }
  • 29. Summary • Present your Services • Find the bottlenecks • Implement Automation
  • 30. Please evaluate the session before you leave 