errlogger 명령어 (AIX 5.3·6.1)
https://archive.horanglab.com/posts/aix-cmd-errlogger
핵심 정리
- 운영자 메시지(최대 1024바이트)를 오류 로그에 항목으로 남깁니다. root만 실행할 수 있습니다.
- 남긴 항목은 레이블
OPMSG, 분류 O(운영자)로 기록되어errpt -d O로 볼 수 있습니다. - 작업 기록(디스크 교체, 재구성 등)을 오류 로그에 함께 남겨 두면 나중에 오류와 시점을 맞춰 보기 좋습니다.
| 항목 | 내용 |
|---|---|
| 버전 | AIX 5.3, AIX 6.1 (6.1 문서에 RBAC 보안 안내가 더해짐. 사용법은 같음) |
| 원문 | IBM Commands Reference — 5.3 Volume 2, 6.1 Volume 2 |
| 파일 | /usr/bin/errlogger, /var/adm/ras/errlog |
| 관련 명령어 | errpt, errclear, logger |
목적
운영자 메시지를 기록합니다.
영어 원문
Logs an operator message.
구문
errlogger Message
설명
errlogger 명령은 최대 1024바이트 길이의 운영자 메시지를 담은 운영자 오류 로그 항목을 만듭니다.
영어 원문
The errlogger command creates an operator error log entry that contains an operator message up to 1024 bytes in length.
보안
접근 제어: root만 실행할 수 있습니다.
RBAC 사용자와 Trusted AIX 사용자는 주의하세요. 이 명령은 특권 작업을 할 수 있으며, 특권 작업은 특권 사용자만 할 수 있습니다. 특권과 권한 목록은 lssecattr 명령이나 getcmdattr 하위 명령으로 봅니다(6.1).
영어 원문
Access Control: Only the root user can run this command.
Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.
예제
시스템 드라이브를 재구성했다는 운영자 메시지를 남기려면 다음처럼 입력합니다.
errlogger system drive reconfigured
남긴 메시지 보기:
errpt -d O # 운영자 메시지만 요약
errpt -a -J OPMSG # 운영자 메시지의 자세한 보고서
영어 원문
To create an operator message for system drive reconfiguration, enter: errlogger system drive reconfigured
Related reference:
- errpt Command
Related information:
- errsave command
- errlog command
- Error Logging Overview
리눅스(GNU)와 다른 점
리눅스에서는 logger "메시지"로 syslog(또는 systemd 저널)에 메시지를 남기고, logger -p user.err처럼 우선순위를 정합니다. 남긴 메시지는 journalctl이나 /var/log/messages에서 봅니다. AIX에도 syslog로 보내는 logger 명령이 따로 있습니다.