/var/cluster/logs/commandlog ASCII 텍스트 파일에는 클러스터에서 실행되는 Sun Cluster 명령이 기록되어 있습니다. 명령의 기록은 클러스터를 설정할 때 자동으로 시작되어 클러스터를 종료할 때 끝납니다. 명령은 클러스터 모드에서 켜지고 부트된 모든 노드에 로그온됩니다.
이 파일에 로그인 되지 않은 명령에는 클러스터의 구성 및 현재 상태를 표시하는 명령이 포함되어 있습니다.
파일에 로그인된 명령에는 클러스터의 현재 상태를 구성하는 명령이 포함되어 있습니다.
claccess
cldevice
cldevicegroup
clinterconnect
clnasdevice
clnode
clquorum
clreslogicalhostname
clresource
clresourcegroup
clresourcetype
clressharedaddress
clsetup
clsnmphost
clsnmpmib
clnsmpuser
cltelemetryattribute
cluster
scconf
scdidadm
scdpm
scgdevs
scrgadm
scsetup
scshutdown
scswitch
commandlog 파일의 기록에서 다음 요소가 나타납니다.
요일 및 시간 표시 방식
명령이 실행된 호스트 이름
명령의 프로세스 ID
명령을 실행한 사용자의 로그인 이름
모든 옵션 및 피연산자를 포함하여 사용자가 실행한 명령
명령 옵션은 commandlog 파일에서 따옴표로 표시되어 쉽게 지정할 수 있어 쉘에서 복사, 붙여넣기 및 실행이 용이합니다.
실행된 명령의 종료 상태
명령이 알 수 없는 결과로 비정상적으로 종료된 경우, Sun Cluster는 commandlog 파일에서 종료 상태로 나타나지 않습니다.
기본적으로 commandlog 파일은 일주일에 한 번씩 저장됩니다. commandlog 파일에 대한 저장 정책을 변경하려면, 클러스터의 각 노드에서 crontab 명령을 사용하십시오. 자세한 내용은 crontab(1) 매뉴얼 페이지를 참조하십시오.
Sun Cluster는 어떤 정해진 시간에서도 8개 이하의 사전 저장된 commandlog 파일을 각 클러스터 노드에 유지합니다. 현재 주간의 commandlog 파일 이름은 commandlog입니다. 가장 최근 주간의 파일 이름은 commandlog.0 입니다. 가장 오래된 주간의 파일 이름은 commandlog.7입니다.
현재 주간의 commandlog 파일 항목을 한 번에 한 화면씩 봅니다.
# more /var/cluster/logs/commandlog |
다음은 more 명령에 의해 나타난 commandlog 파일의 내용을 보여주는 예입니다.
more -lines10 /var/cluster/logs/commandlog 11/11/2006 09:42:51 phys-schost-1 5222 root START - clsetup 11/11/2006 09:43:36 phys-schost-1 5758 root START - clrg add "app-sa-1" 11/11/2006 09:43:36 phys-schost-1 5758 root END 0 11/11/2006 09:43:36 phys-schost-1 5760 root START - clrg set -y "RG_description=Department Shared Address RG" "app-sa-1" 11/11/2006 09:43:37 phys-schost-1 5760 root END 0 11/11/2006 09:44:15 phys-schost-1 5810 root START - clrg online "app-sa-1" 11/11/2006 09:44:15 phys-schost-1 5810 root END 0 11/11/2006 09:44:19 phys-schost-1 5222 root END -20988320 12/02/2006 14:37:21 phys-schost-1 5542 jbloggs START - clrg -c -g "app-sa-1" -y "RG_description=Joe Bloggs Shared Address RG" 12/02/2006 14:37:22 phys-schost-1 5542 jbloggs END 0 |