Windows/윈도우 공통

[스크랩] MSCS 2008 /2012 클러스터 로그 수집

99iberty 2016. 9. 12. 15:51



클러스터 로그수집 방법 (Create Cluster Log)

#.1 Command Prompt

Cluster log /g /copy

수집경로 : C:\windows\cluster\reports\cluster.log 각노드에 자동 생성됨.

/copy 옵션은 명령을 수행하는 서버에 COPY 하는 옵션 , 이 옵션이 없을 경우에는 각 노드에 생성이 된다.

 

#.2 PowerShell

파워쉘을 실행하여 아래와 같이 실행한다.

Get-ClusterLog -Destination .

C:\windows\cluster\reports\cluster.log 의 각 노드에 자동 생성이 된다.

/UseLocalTime : 로그일자가 현재 서버시간으로 생성된다. (없으면 9시간 전 시간으로 표기됨)

/TimeSpan : 단위 분 , 10분 이전까지만 로깅을 한다.

 

 

혹 파워셀 명령어가 실행이 안되면 해당 모듈이 설치가 되지 않아서 그렇다.

아래와 같이 설치하면 된다.

Getting started with the Failover Clustering cmdlets

To import the FailoverClusters module

1.Start Windows PowerShell with administrator privileges. Click Start, point to All Programs, click Accessories, click Windows PowerShell, right-click Windows PowerShell, and then click Run As Administrator.

2.To import the module, type the following cmdlet:

Copy

import-module failoverclusters

3. end

You can use the get-command –module failoverclusters to get a list of all Failover Clustering cmdlets.

해당명령어를 모두 보려면 위 get-command를 수행하면 된다.


검색어: 클러스터로그



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


2012에서는 위에서처럼 하지말래

http://tshooter.tistory.com/53