달력

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. 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
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

알림 메시지 1 
AD Lost And Found Object Count: The script 'AD Lost And Found Count' failed to create object
'McActiveDir.ActiveDirectory'. This is an unexpected error. The error returned was 'ActiveX component can't create object' (0x1AD)

알림 메시지 2
AD Database and Log: The script 'AD Database and Log' failed to create object 'McActiveDir.ActiveDirectory'.
The error returned was 'ActiveX component can't create object' (0x1AD)


[해결]
보통 Windows Server 2000 Domain Controller에서 발생
모든 DC에 SCOM 설치 미디어에서 Active Directory Helper Object 설치 (oomads.msi)

:
Posted by 커널64

구문

설명

예제

단일 문자

.

줄 바꿈 문자를 제외한 모든 단일 문자를 찾습니다.

a.o "around"에서 "aro"와 일치하고 "about"에서 "abo"와 일치하지만 "across"에서 "acro"와는 일치하지 않습니다.

0 이상

*

앞의 식을 0번 이상 찾습니다.

a*b "bat" "b" "about" "ab"를 찾습니다.

e.*e "enterprise"라는 단어를 찾습니다.

하나 이상

+

앞의 식을 한 번 이상 찾습니다.

ac+ "race" "ace" 같이 문자 "a"와 최소한 하나 이상의 "c"를 포함하는 단어를 찾습니다.

a.+s "access"라는 단어를 찾습니다.

줄의 시작

^

줄의 시작 부분에서 일치하는 문자열을 찾습니다.

^car "car"라는 단어가 편집기 줄의 첫 번째 문자 집합에 나올 때만 찾습니다.

줄의 끝

$

줄의 끝 부분에서 일치하는 문자열을 찾습니다.

end$ "end"라는 단어가 편집기 줄의 마지막 문자 집합에 나올 때만 찾습니다.

단어의 시작

< 

텍스트의 해당 지점에서 시작하는 단어만 찾습니다.

<in "in"으로 시작하는 "inside" "into" 등의 단어를 찾습니다.

단어의 끝

> 

텍스트의 해당 지점에서 끝나는 단어만 찾습니다.

ss> "ss"로 끝나는 "across" "loss" 등의 단어를 찾습니다.

줄 바꿈

\n

운영 체제에 독립적인 줄 바꿈을 찾습니다. 바꾸기 식에 줄 바꿈을 삽입합니다.

End\nBegin "End"가 줄의 마지막 문자열이고 "Begin"이 다음 줄의 첫 번째 문자열인 경우에만 단어 "End" "Begin"을 찾습니다.

바꾸기 식의 경우에는 다음과 같습니다.

Begin\nEnd는 첫 줄에서 "End"라는 단어를 "Begin"으로 바꾸고 줄 바꿈을 삽입한 다음 "Begin" "End"로 바꿉니다.

집합에 있는 한 문자

[]

[] 안의 문자 중 하나를 찾습니다. 문자 범위를 지정하려면 대시(-)로 구분하여 시작 및 끝 문자를 입력합니다(: [a-z]).

be[n-t] "between" "bet", "beneath" "ben", 그리고 "beside" "bes"는 찾지만 "below" "bel"은 찾지 않습니다.

집합에 없는 한 문자

[^...]

^ 뒤에 오는 문자 집합에 포함되지 않는 문자를 찾습니다.

be[^n-t] "before" "bef", "behind" "beh", 그리고 "below" "bel"은 찾지만 "beneath" "ben"은 찾지 않습니다.

또는

|

OR 기호(|) 앞 또는 뒤에 나오는 식과 일치하는 항목을 찾습니다. 이 구문은 그룹에서 가장 자주 사용됩니다.

(sponge|mud) bath "sponge bath" "mud bath"를 모두 찾습니다.

이스케이프

\

백슬래시(\) 뒤에 나오는 문자열을 리터럴로 간주하고 일치하는 항목을 찾습니다. 이렇게 하면 { ^과 같이 정규식 표기에 사용되는 문자를 찾을 수 있습니다.

\^ ^ 문자를 검색합니다.

태그 식

{}

중괄호로 묶인 식을 포함하여 태그가 지정된 텍스트를 찾습니다.

zo{1} "Alonzo1" "Gonzo1" "zo1"은 찾지만 "zone" "zo"는 찾지 않습니다.

C/C++ 식별자

:i

([a-zA-Z_$][a-zA-Z0-9_$]*) 식의 약식 형태입니다.

가능한 모든 C/C++ 식별자를 찾습니다.

따옴표 붙은 문자열

:q

(("[^"]*")|('[^']*')) 식의 약식 형태로, 작은따옴표나 큰따옴표로 묶인 모든 문자를 찾고 따옴표 자체도 찾습니다.

:q "test quote" 'test quote'는 찾지만 can't 't는 찾지 않습니다.

공백 또는 탭

:b

공백 또는 탭 문자를 찾습니다.

Public:bInterface는 텍스트에서 "Public Interface"라는 구를 찾습니다.

정수

:z

모든 숫자 조합을 찾는 ([0-9]+) 식의 약식 형태입니다.

"1", "234", "56" 등의 모든 정수를 찾습니다.

^.*[]ERROR[].*
메시지 시작부터 검색해 앞 뒤에 공백 한 칸씩을 가지고 ERROR 메시지가 있는 파라미터 검색

:
Posted by 커널64

Netstat -an | findstr "ESTABLISHED"해서 ESTABLISHED 세션 수 성능 수집

Rule > New > Probe based > Script(performance)

Object, Counter, Instance 적당한 값
Value: $Data/Property[@Name='ESTABLISHED Count']$

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

ESTABLISHED.vbs


Dim oAPI, oBag
Set oAPI = CreateObject("MOM.ScriptAPI")
Set oBag = oAPI.CreatePropertyBag()

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.OpenTextFile (".\ESTABLISHED.BAT", 8, True)

objTextFile.WriteLine("netstat -an -p tcp | findstr ESTABLISHED")
objTextFile.Close
Set objTextFile  = nothing

Set shellobj=WScript.CreateObject("WScript.Shell")
Set execObj=shellobj.Exec(".\ESTABLISHED.BAT")
OutData=execObj.StdOut.ReadAll()
val=execObj.StdOut.Line - 3

Set aFile = objFSO.GetFile(".\ESTABLISHED.BAT")
aFile.Delete
Set aFile = nothing
Set execObj = nothing

Call oBag.AddValue("ESTABLISHED Count",val)
Call oAPI.Return(oBag)

:
Posted by 커널64
2009. 1. 9. 21:30

SCOM 2007 Agent 지원 S/W(운영체제) SystemCenter2009. 1. 9. 21:30

관리 대상
(Agent)

 

운영체제
요구사항

Windows 2000 with SP4, Server/Professional Edition
Windows Server 2003 with SP1 or SP2, Standard (x86/x64/IA64 Edition)
Windows Server 2003 with SP1 or SP2, Enterprise (x86/x64/IA64 Edition)
Windows Server 2003 with SP1 or SP2, Datacenter (x86/x64/IA64 Edition)
Windows Server 2003 R2 with SP1 or SP2, Standard (x86/x64/IA64 Edition)
Windows Server 2003 R2 with SP1 or SP2, Enterprise (x86/x64/IA64 Edition)
Windows Server 2003 R2 with SP1 or SP2, Datacenter (x86/x64/IA64 Edition)
Windows XP with SP2, Professional (x86/x64 Edition)
Windows Vista, Ultimate (x86/x64 Edition)
Windows Vista, Business (x86/x64 Edition)
Windows Vista, Enterprise (x86/x64 Edition)
Windows Server 2008, Standard (x86/x64 Edition) (Full/Core Installation)
Windows Server 2008, Enterprise (x86/x64 Edition) (Full/Core Installation)
Windows Server 2008, Datacenter (x86/x64) Edition (Full/Core Installation)

:
Posted by 커널64

클러스터로 구성된 각 노드의 Agent Proxy 구성 후
이벤트 로그에 다음 두 개의 이벤트 로그가 지속적으로 발생하며 클러스터의 상태가 '모니터링 하지 않음'으로 유지되는 경우
- 이벤트 원본: HealthService, 이벤트 ID: 1103
- 이벤트 원본: Health Service Modules, 이벤트 ID: 10720

[원인]
MT_Computer 테이블이 정상적으로 채워지지 않아 컴퓨터의 DNS Name으로 스크립트 실행이 실패해 나타난다.

[해결]
1. DNSName이 NULL 값인 컴퓨터 목록 확인
- SSMS > Query Analyzer
Select NetbiosComputerName,DNSName from OperationsManager.dbo.MT_Computer where DNSName is NULL

2. 결과에서 DNSName이 NULL 값인 서버에 대해 다음 쿼리를 이용해 Update 한다.
Update OperationsManager.dbo.MT_Computer set DNSName = '<ClusterDNSName>' where NetbiosComputerName='<ClusterNetBiosName>'

3. Health Service 재시작

:
Posted by 커널64

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

Parameters
[Port Number] [Port Number] [Port Number] ....

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']$

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

Check.Port.vbs

Dim oAPI, oBag, PortNumber(), strReturn(), strMessage
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("Check.Port.vbs", 5009, 0, "Script aborted. Not enough parameters provided.")
WScript.Quit -1
End If

ReDim Preserve PortNumber(ParamCount), States(ParamCount), strReturn(ParamCount)

set shellobj=WScript.CreateObject("WScript.Shell")
i = 0
Do While i <> ParamCount
PortNumber(i) = oArgs(i)
val = 0

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.OpenTextFile (".\RUNNETSTAT.BAT", 8, True)

objTextFile.WriteLine("netstat -an -p tcp | findstr LISTENING | findstr /C:" & chr(34) &  ":"  & PortNumber(i)) & " " & chr(34)
objTextFile.Close
set objTextFile  = nothing

set execObj=shellobj.Exec(".\RUNNETSTAT.BAT")
OutData=execObj.StdOut.ReadAll()
val=execObj.StdOut.Line - 3

If val => 1 Then
strReturn(i) = "LISTENING"
Call oBag.AddValue("Port " & PortNumber(i),strReturn(i))
Else
strReturn(i) = "NOT LISTENING"
Call oBag.AddValue("Port " & PortNumber(i),strReturn(i))
State = 1
End If

strMessage = strMessage & "Port " & PortNumber(i) & ": " & strReturn(i) & " | "

Set aFile = objFSO.GetFile(".\RUNNETSTAT.BAT")
aFile.Delete
Set aFile = nothing
Set execObj = nothing
i = i + 1
Loop

set shellobj=nothing

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. 1. 2. 21:59

Seal Management Pack [XML -> MP] SystemCenter2009. 1. 2. 21:59

MPseal.exe <ManagementPackFilename>.xml [/I <Source Directory>] /Keyfile <EncryptionKeyfile>.snk /Company <Company Name> [/Outdir <Output Directory>]

ex)

MPSeal.exe MyMP.xml /I C:\ManagementPacks /Keyfile RMSkey.snk /Company "MyCorp"

:
Posted by 커널64
2009. 1. 2. 18:28

SCOM 2007의 완전 복구 SystemCenter2009. 1. 2. 18:28

1.     기존 구성과 동일하게 Operations Manager 2007 설치

ž   Management Group Name(Case Sensitive)

ž   Server Name

ž   SDK and Config service Account, Management Server Action Account

 

2.     Operations Manager 설치 직후 SDK Service 중지

ž   운영 데이터베이스에 데이터 입력 방지

 

3.     원래 구성과 동일하게 추가적인 hofix 설치

 

4.     OperationsManager 데이터베이스 삭제

 

5.     기존의 OperationsManager 데이터베이스 복원 (SSMS)

 

6.     RMS encryption key 복원

 

7.     웹 콘솔 서버 설치

 

8.     SDK Service 시작

:
Posted by 커널64