달력

5

« 2024/5 »

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
2009. 3. 6. 22:39

SCOM 2007 Report 관련 쿼리 (보고서) SystemCenter2009. 3. 6. 22:39

' 성능 카운터 리스트 쿼리
SELECT ObjectName, CounterName, MultiInstanceInd FROM vPerformanceRule ORDER BY ObjectName

' Windows 컴퓨터 리스트 쿼리
SELECT Name FROM dbo.vManagedEntity WHERE ManagedEntityTypeRowId = '22' ORDER BY Name

' 성능 정보 쿼리 (데이터웨어하우스)
EXEC SP_PerfViewDaily '2009-02-01', '2009-02-20', 'Processor', '% Processor Time', 'Server1'

----------------------------------------------------------------------------------------------------------

CREATE PROCEDURE SP_PerfViewDaily
@StartDate DATETIME,
@EndDate DATETIME,
@ObjectName NCHAR(30),
@CounterName NCHAR(30),
@ServerName NCHAR(30)
AS
SELECT    
Dateadd (HH, 9, vPerf.DateTime) AS DateTime ,
vPerf.SampleCount,
Round (vPerf.AverageValue, 2) AS Average,
Round (vPerf.MinValue, 2) AS Minimum,
Round (vPerf.MaxValue, 2) AS Maximum,
Round (vPerf.StandardDeviation, 2) AS StandardDeviation,
vPerformanceRuleInstance.InstanceName,
vManagedEntity.Path AS ServerName,
vPerformanceRule.ObjectName,
vPerformanceRule.CounterName
FROM Perf.vPerfdaily AS vPerf INNER JOIN
vPerformanceRuleInstance ON vPerformanceRuleInstance.PerformanceRuleInstanceRowId = vPerf.PerformanceRuleInstanceRowId INNER JOIN
vManagedEntity ON vPerf.ManagedEntityRowId = vManagedEntity.ManagedEntityRowId INNER JOIN
vPerformanceRule ON vPerformanceRuleInstance.RuleRowId = vPerformanceRule.RuleRowId
WHERE vPerf.DateTime >= @StartDate
AND vPerf.DateTime < @EndDate
AND (vPerformanceRule.ObjectName IN (@ObjectName))
AND (vPerformanceRule.CounterName IN (@CounterName))
/* AND (vPerformanceRuleInstance.InstanceName IN ('')) */
AND (vManagedEntity.Path IN (@ServerName))
ORDER BY  DateTime
GO

:
Posted by 커널64
1. Copy the ResetSRS.exe file in SupportTools folder of the OM 2007 media to C:.
2. Open a Command Prompt and change your path to C:.
3. Type "ResetSRS.exe MSSQLSERVER" where MSSQLSERVER is your SQL instance name.
4. Then open Reporting Services Configuration Console, select Web Service Identity and click Apply.
5. Reinstall SCOM Reporting.
:
Posted by 커널64

Monitor -> New -> Scripting -> Timed Script Two State Monitor

Parameters
[Process1.exe] [Process2.exe] ....

State Expression
For Unhealthy Expression Property[@Name='State'] Equals Good
For Healthy Expresion Property[@Name='State'] Equals Bad

Alert Description
$Data/Context/Property[@Name='Message']$

---------------------------------------------------------------------------------------------------------------

ProcessRunCheck.vbs

Dim oAPI, oBag, oArgs, strProcess(), ProcessState()
strMessage = ""

Set oAPI = CreateObject("MOM.ScriptAPI")
Set oBag = oAPI.CreatePropertyBag()
Set oArgs = WScript.Arguments

ParamCount = oArgs.Count
State = 0

If ParamCount < 1 Then
Call oAPI.LogScriptEvent("ProcessRunCheck.vbs", 5009, 0, "Script aborted. Not enough parameters provided.")
WScript.Quit -1
End If

ReDim Preserve strProcess(ParamCount), ProcessState(ParamCount)

i = 0
Do While i <> ParamCount
strProcess(i) = oArgs(i)
i = i + 1
Loop

i = 0
Do While i <> ParamCount
strComputer = "."
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set ProcessState(i) = objWMIService.ExecQuery ("Select * from Win32_Process Where Name = '" & strProcess(i) & "'")

If ProcessState(i).Count => 1 Then
Call oBag.Addvalue(strProcess(i),"Running(" & ProcessState(i).Count & "ea)")
strMessage = strMessage & strProcess(i) & ": " & "Running(" & ProcessState(i).Count & "ea)" & " | "
End If

If ProcessState(i).Count < 1 Then
Call oBag.Addvalue(strProcess(i),"Not running")
strMessage = strMessage & strProcess(i) & ": " & "Not running" & " | "
State = 1
End If

Set objWMIService = nothing
i = i + 1
Loop

If State = 0 Then
Call oBag.AddValue("State","Good")
Else
Call oBag.AddValue("State","Bad")
End If

Call oBag.AddValue("Message",strMessage)
Call oAPI.Return(oBag)

:
Posted by 커널64
2009. 2. 13. 10:38

Recover DPM Server (DPM 서버 복구) SystemCenter2009. 2. 13. 10:38

To restore the DPM and Report databases from local backup media on the DPM server
DpmSync -DpmDbLoc <DPMDB.bak>
DpmSync -DpmReportDbLoc <ReportServer.bak>

After you restore the DPM and Report databases, to synchronize the databases
DpmSync -Sync

After you restore and synchronize the DPM and Report databases and before you restore the replicas, to reallocate disk space for the replicas
DpmSync -ReallocateReplica

:
Posted by 커널64

SCOM 2007 Agent의 메시지 큐 크기 수정

기본값은 15MB인데 Exchange Server 2007과 같은 서버의 경우 너무 작을 수 있다.

과정
1. 레지스트리 편집기 실행
2. 다음 키로 이동
HKLM\SYSTEM\CurrentControlSet\Services\HealthService\Parameters\Management Groups\<ManagementGroupName>
3. MaximumQueueSizeKb 문자열 값 수정
(기본값은 15360으로 15MB -> 30720(10진수)이면 30MB
4. HealthService 재시작

:
Posted by 커널64
2009. 1. 24. 10:17

ManagementServerConfigTool의 용도 SystemCenter2009. 1. 24. 10:17

1. Creating Clustered RMS

ž   InstallCluster 명령은 클러스터된 RMS를 생성할 때 사용한다.

ž   DB를 제외한 모든 다른 작업보다 우선적으로 실행되어야 한다. (ex: Agent 배포 등)

ž   모든 클러스터 구성원 노드인 관리 서버에 동일하게 적용된다.

ž   RMS는 관리 그룹의 첫 번째 관리 서버이기 때문에 만일 추가 관리 서버와 Agent가 배포되어 있는 상황에서 작업을 진행할 경우 모든 관리 그룹에 혼란을 야기시킬 수 있다.

ž   이 명령은 데이터베이스의 클래스 구조와 모든 클러스터 노드가 RMS로 동작하도록 하기 위해 로컬 컴퓨터의 서비스, 레지스트리, 파일 구조를 변경한다.

ž   각각의 노드에 암호화 키를 복원하고 다음 명령을 실행한다.
ManagementServerConfigTool InstallCluster /vs:<VirtualClusterName> /Disk:<DiskLetter>

 

2. Adding Clustered RMS node

ž   AddVirtualServer 명령은 클러스터된 RMS에 노드를 추가할 때 사용한다.

ž   노드로 추가될 관리 서버에 암호화 키를 복원하고 다음과 같이 명령을 실행한다.
ManagementServerConfigTool AddRMSNode /vs:<VirtualClusterName> /Disk:<DiskLetter>

 

3. Promotion of a new MS to the RMS role

ž   PromoteRMS 명령은 관리 서버를 RMS role로 승격할 때 사용한다.

ž   RMS가 될 관리 서버에 암호화 키를 복원하고 ManagementServerConfigTool PromoteRMS 명령을 실행한다.

ž   Promotion 시 기존 RMS와의 연결(통신)이 가능하다면 기존 RMS는 자동으로 관리 서버로 demotion 된다.

ž   어떠한 이유로 인해 기존 RMS와 연결이 불가능한 경우 RMS에서 UpdateDemotedRMS 명령을 통해 수동으로 일반 관리 서버로 demotion 해야 한다.

ž   만약 PromoteRMS 후에 관리/수집 서버가 RMS와 통신하지 못하는 경우 각각의 관리/수집 서버에서 UpdateSecondaryMS 명령을 실행해 새로운 RMS의 위치를 찾을 수 있도록 해야 한다.

  

Windows Server 2003 클러스터에 SCOM RMS 설치
Windows Server 2008 장애조치 클러스터에 SCOM RMS 설치

:
Posted by 커널64
2009. 1. 21. 16:58

SCOM의 알림 메시지에 대한 파라미터 SystemCenter2009. 1. 21. 16:58

이벤트 규칙
EventDisplayNumber (Event ID): $Data/EventDisplayNumber$
EventDescription (Description): $Data/EventDescription$
Publisher Name (Event Source): $Data/PublisherName$
EventCategory: $Data/EventCategory$
LoggingComputer: $Data/LoggingComputer$
EventLevel: $Data/EventLevel$
Channel: $Data/Channel$
UserName: $Data/UserName$
EventNumber: $Data/EventNumber$

이벤트 모니터
EventDisplayNumber (Event ID): $Data/Context/EventDisplayNumber$
EventDescription (Description): $Data/Context/EventDescription$
Publisher Name (Event Source): $Data/Context/PublisherName$
EventCategory: $Data/Context/EventCategory$
LoggingComputer: $Data/Context/LoggingComputer$
EventLevel: $Data/Context/EventLevel$
Channel: $Data/Context/Channel$
UserName: $Data/Context/UserName$
EventNumber: $Data/Context/EventNumber$

반복 이벤트 모니터
EventDisplayNumber (Event ID): $Data/Context/Context/DataItem/EventDisplayNumber$
EventDescription (Description): $Data/Context/Context/DataItem/EventDescription$
Publisher Name (Event Source): $Data/Context/Context/DataItem/PublisherName$
EventCategory: $Data/Context/Context/DataItem/EventCategory$
LoggingComputer: $Data/Context/Context/DataItem/LoggingComputer$
EventLevel: $Data/Context/Context/DataItem/EventLevel$
Channel: $Data/Context/Context/DataItem/Channel$
UserName: $Data/Context/Context/DataItem/UserName$
EventNumber: $Data/Context/Context/DataItem/EventNumber$

성능 임계치 모니터
Object (Perf Object Name): $Data/Context/ObjectName$
Counter (Perf Counter Name): $Data/Context/CounterName$
Instance (Perf Instance Name): $Data/Context/InstanceName$
Value (Perf Counter Value): $Data/Context/Value$

서비스 모니터
Service Name: $Data/Context/Property[@Name='Name']$
Service Dependencies: $Data/Context/Property[@Name='Dependencies']$
Service Binary Path: $Data/Context/Property[@Name='BinaryPathName']$
Service Display Name: $Data/Context/Property[@Name='DisplayName']$
Service Description: $Data/Context/Property[@Name='Description']$

로그 파일 모니터
Logfile Directory: $Data/Context/LogFileDirectory$
Logfile name: $Data/Context/LogFileName$
String: $Data/Context/Params/Param[1]$

로그 파일 규칙
Logfile Directory: $Data/EventData/DataItem/LogFileDirectory$
Logfile name: $Data/EventData/DataItem/LogFileName$
String: $Data/EventData/DataItem/Params/Param[1]$

알림 (E-mail, IM, SMS 등)
AlertID GUID: $Data/Context/DataItem/AlertId$
Alert Name: $Data/Context/DataItem/AlertName$
Alert category: $Data/Context/DataItem/Category$
True/False: $Data/Context/DataItem/CreatedByMonitor$
CustomField1: $Data/Context/DataItem/Custom1$
CustomField2: $Data/Context/DataItem/Custom2$ ...
UTC Date/Time of Dataitem created: $Data/Context/DataItem/DataItemCreateTime$
LocalTime Date/Time of Dataitem created: $Data/Context/DataItem/DataItemCreateTimeLocal$
UTC Date/Time DataItem was modified: $Data/Context/DataItem/LastModified$
Local Date/Time DataItem was modified: $Data/Context/DataItem/LastModifiedLocal$
ManagedEntity GUID: $Data/Context/DataItem/ManagedEntity$
ManagedEntity Display name: $Data/Context/DataItem/ManagedEntityDisplayName$
ManagedEntity Full name: $Data/Context/DataItem/ManagedEntityFullName$
Managed Entity Path: $Data/Context/DataItem/ManagedEntityPath$
Alert Priority Number (High=1,Medium=2,Low=3): $Data/Context/DataItem/Priority$
Alert Owner: $Data/Context/DataItem/Owner$
Alert Repeat Count: $Data/Context/DataItem/RepeatCount$
Resolution state ID (0=New, 255= Closed): $Data/Context/DataItem/ResolutionState$
UTC Date/Time ResolutionState was last modified: $Data/Context/DataItem/ResolutionStateLastModified$
Local Date/Time ResolutionState was last modified: $Data/Context/DataItem/ResolutionStateLastModifiedLocal$
Resolution State Name (New, Closed): $Data/Context/DataItem/ResolutionStateName$
Person resolving the alert: $Data/Context/DataItem/ResolvedBy$
Alert Severity ID: $Data/Context/DataItem/Severity$
TicketID: $Data/Context/DataItem/TicketId$
UTC Time Added: $Data/Context/DataItem/TimeAdded$
Local Time Added: $Data/Context/DataItem/TimeAddedLocal$
UTC Time Raised: $Data/Context/DataItem/TimeRaised$
Local Time Raised: $Data/Context/DataItem/TimeRaisedLocal$
UTC Date/Time the Alert was resolved: $Data/Context/DataItem/TimeResolved$
Workflow ID (GUID): $Data/Context/DataItem/WorkflowId$
The Web Console URL: $Target/Property[Type="Notification!Microsoft.SystemCenter.AlertNotificationSubscriptionServer"/WebConsoleUrl$
Principalname of the management server: Target/Property[Type="Notification!Microsoft.SystemCenter.AlertNotificationSubscriptionServer"/PrincipalName$
Name of the recipient (e.g. the Email alias to which the notification is addressed): $Data/Recipients/To/Address/Address$

:
Posted by 커널64
2009. 1. 21. 16:10

SCOM 2007 자료 SystemCenter2009. 1. 21. 16:10

Management Group summary and licensing information tool
관리 그룹 및 관리 계정에 대한 정보 확인
Usage:
MGInfo /L   ->  RMS에서 실행 시
MGInfo /S <RMSName> <domain\user>  ->  원격 RMS에 연결 시 (Microsoft.EnterpriseManagement.OperationsManager.Common.dll, Microsoft.EnterpriseManagement.OperationsManager.dll 필요)



Effective Configuration Viewer for Operations Manager 2007
관리 대상 서버가 받고 있는 정책에 대한 정보 확인 (적용받는 규칙, 모니터 등)
Usage:
1. GUI
2. Command Line
=> effectiveconfigurationviewer <RMS> <Agent> c:\AgentInfo.xml


Powershell Script - GetContainingGroups.PS1
관리 대상 서버가 속하는 그룹 정보를 출력하는 스크립트
Usage:
GetContainingGroups.ps1 -computerFQDN:'<ManagedServer>'


Powershell Script - GetContainingGroups.PS1
Seal 되어 있는 관리팩(.MP)를 Unseal 하는 스크립트
Usage:
MpToXml.ps1 -mpFilePath:'C:\Microsoft.Exchange.Server.2003.Monitoring.mp' -outputDirectory:'C:\'


Override Explorer
Class 별 또는 Computer 별로 재정의 값 확인


Override Creator
다수의 컴퓨터에 대해 Disable하는 Override 작업 시 사용


Proxy Settings
다수의 에이전트에 대해 Agent Proxy 설정 시 사용



Management Pack Authoring Console
http://download.microsoft.com/download/f/4/3/f438d6a0-290c-42b8-8f9c-c6660f89e1aa/OpsMgr07_x64_AuthConsole.exe
http://download.microsoft.com/download/f/4/3/f438d6a0-290c-42b8-8f9c-c6660f89e1aa/OpsMgr07_x86_AuthConsole.exe

 

:
Posted by 커널64

<InstalledDir>\inboxes\clifiles.src\hinv\SMS_DEF.MOF
다음 11가지 AI 관련 Report를 기본값인 FALSE에서 TRUE로 변경

Installed Software
Installed Software MS
System Console Usage
System Console User
Software Shortcut
AUtoStart Software
Installed Executable
Browser Helper Object
USB Device
SW Licensing Service
SW Licensing Product


<InstalledDir>\inboxes\clifiles.src\hinv\Configuration.MOF
CCM_CALTrackconfig 설정

CALCollectionType : 기본값(0 - Disable),  1 - User CAL, 2 - Device CAL, 3 - All
CALCollectionTypeFrequencyDays : 주기 기본값은 7일

:
Posted by 커널64
2009. 1. 13. 01:29

AD Replication Monitoring 오류 (0x8004100E) SystemCenter2009. 1. 13. 01:29

Active Directory Management Pack Import 후 다음 오류 발생

The script 'AD Replication monitoring' encountered a runtime error. Failed to determine whether the WMI replication provider is installed. The error returned was: 'Invalid Parameter' (0x80041008)

AD Remote Topology Discovery cannot determine whether the WMI Replication Provider is installed. The error returned was: 'Invalid Parameter' (0x80041008).

Replication 관련 정보를 가져오기 위해 사용되는 Replprov.dll의 오류로 인해 발생한다.

[해결]
Windows Server 2000 DC
hotfix 설치 후 다음 명령 실행
rundll32.exe %systemroot%\system32\replprov.dll,DoMofComp

Windows Server 2003 DC
hotfix 설치


http://support.microsoft.com/kb/889054
:
Posted by 커널64