[AIX 운영 체제와 장치 관리 17] 시스템 계정 문제 해결(tacct·wtmp·권한·runacct 오류 메시지)과 시스템 자원 제어기(SRC)
https://archive.horanglab.com/posts/aix-osdev-17
핵심 정리
- tacct가 깨지면
tacctprev를 prtacct로 확인하고, 최근tacct.mmdd를acctmerg -v로 ASCII로 바꿔 고친 뒤acctmerg -i로 되돌리고acctmerg tacctprev로 tacct를 다시 만듭니다. - wtmp는 fwtmp로 ASCII로 바꿔 편집하고
fwtmp -ic로 되돌립니다. 고칠 수 없으면nulladm wtmp로 빈 파일을 만듭니다. 날짜 변경 문제는wtmpfix로 고치고, 계정은 종료 직전이나 시작 직후에 돌립니다. - 계정 명령·스크립트는 adm 소유(accton만 root),
/var/adm/wtmp도 adm 소유여야 합니다. accton은 그룹 adm, 권한 710으로 일반 사용자가 실행하지 못하게 합니다. - runacct는 단계(state)로 나뉘며 실패하면
activeMMDD로 옮기고 원인을 덧붙입니다. 단계별 메시지와 복구 가능 여부는 표에 정리했습니다. - SRC는
/etc/inittab의 srcmstr 레코드로 시작하며(init이 다시 띄움), 하위 시스템 그룹 → 하위 시스템 → 하위 서버 계층을 startsrc·stopsrc·lssrc·refresh·traceson으로 다룹니다. 신호 통신 방식 하위 시스템은 하위 서버와 refresh·trace를 지원하지 않습니다.
| 항목 | 내용 |
|---|---|
| 버전 | AIX 6.1 (5.3판과 거의 같음) |
| 원문 | Operating system and device management — 5.3판 224239쪽, 6.1판 171180쪽 |
| 관련 명령어 | prtacct, acctmerg, fwtmp, wtmpfix, nulladm, chown, runacct, srcmstr, startsrc, stopsrc, lssrc, refresh, traceson, tracesoff, mkitab, telinit q |
| 관련 파일 | /var/adm/acct/sum/tacct, /var/adm/wtmp, /var/adm/acct/nite/active, /var/adm/acct/nite/statefile, /etc/inittab |
다음 문제 해결 방법으로 시스템 계정을 쓸 때 생길 수 있는 기본 문제를 다룹니다. 이 정보로 해결되지 않으면 서비스 담당자에게 연락합니다.
tacct 오류 고치기
계정 시스템으로 사용자에게 시스템 자원 요금을 매긴다면 /var/adm/acct/sum/tacct 파일의 무결성이 아주 중요합니다. 가끔 음수, 중복된 사용자 번호, 사용자 번호 65,535가 든 알 수 없는 tacct 레코드가 나타납니다. 이런 문제는 고칠 수 있습니다.
root 사용자나 adm 그룹 권한이 있어야 합니다.
tacct 파일을 고치려면 다음 단계를 따릅니다.
- 다음을 입력해
/var/adm/acct/sum디렉터리로 갑니다.
cd /var/adm/acct/sum
- 다음을 입력해 prtacct 명령으로 총 계정 파일
tacctprev를 확인합니다.
prtacct tacctprev
prtacct 명령은 tacctprev 파일을 서식에 맞춰 보여 주므로 접속 시간, 프로세스 시간, 디스크 사용, 프린터 사용을 확인할 수 있습니다.
3. tacctprev 파일이 올바르면 최신 tacct.mmdd 파일을 바이너리에서 ASCII 파일로 바꿉니다. 다음 예에서 acctmerg 명령은 tacct.mmdd 파일을 tacct.new라는 ASCII 파일로 바꿉니다.
acctmerg -v < tacct. mmdd > tacct.new
참고: acctmerg 명령에 -a 플래그를 써도 ASCII 출력이 나옵니다. -v 플래그는 부동소수점 수를 더 정밀하게 표기합니다. acctmerg 명령은 중간 계정 레코드 보고서를 누적 합계 보고서(tacct)로 합치는 데 씁니다. 이 누적 합계가 monacct 명령이 ASCII 월간 요약 보고서를 만드는 원천입니다. monacct 명령 절차가 모든 tacct.mmdd 파일을 지우므로, 이 파일들을 합쳐 tacct 파일을 다시 만듭니다.
4. tacct.new 파일을 편집해 나쁜 레코드를 지우고, 다음을 입력해 중복 사용자 번호 레코드를 다른 파일에 씁니다.
acctmerg -i < tacct.new > tacct.mmdd
- 다음을 입력해
tacct파일을 다시 만듭니다.
acctmerg tacctprev < tacct. mmdd > tacct
wtmp 오류 고치기
/var/adm/wtmp, 곧 "who temp" 파일은 계정 시스템의 일상 운영에서 문제를 일으킬 수 있습니다. wtmp 오류는 고칠 수 있습니다.
이 절차를 하려면 root 사용자나 adm 그룹 권한이 있어야 합니다.
시스템이 다중 사용자 모드일 때 날짜를 바꾸면 날짜 변경 레코드가 /var/adm/wtmp 파일에 기록됩니다. 날짜 변경을 만나면 wtmpfix 명령이 wtmp 레코드의 타임스탬프를 조정합니다. 날짜 변경과 시스템 재시작의 어떤 조합은 wtmpfix 명령을 빠져나가 acctcon1 명령을 실패하게 하고, runacct 명령이 root와 adm 계정에 잘못된 날짜를 나열한 메일을 보내게 할 수 있습니다.
wtmp 오류를 고치려면 다음 절차를 따릅니다.
- 다음을 입력해
/var/adm/acct/nite디렉터리로 갑니다.
cd /var/adm/acct/nite
- 다음을 입력해 바이너리
wtmp파일을 편집할 수 있는 ASCII 파일로 바꿉니다.
fwtmp < wtmp. mmdd > wtmp.new
fwtmp 명령은 wtmp를 바이너리에서 ASCII로 바꿉니다.
3. 다음을 입력해 ASCII wtmp.new 파일을 편집하고, 손상된 레코드나 파일 처음부터 필요한 날짜 변경까지의 모든 레코드를 지웁니다.
vi wtmp.new
- 다음을 입력해 ASCII
wtmp.new파일을 다시 바이너리 형식으로 바꿉니다.
fwtmp -ic < wtmp.new > wtmp. mmdd
wtmp파일을 고칠 수 없으면 nulladm 명령으로 빈wtmp파일을 만듭니다. 이렇게 하면 접속 시간 요금이 매겨지지 않습니다.
nulladm wtmp
nulladm 명령은 지정한 파일을 파일 소유자와 그룹에는 읽기·쓰기, 다른 사용자에게는 읽기 권한으로 만듭니다. 파일 소유자와 그룹이 adm이 되게 합니다.
관련 작업
- 계정 오류 고치기 — 날짜와 타임스탬프 불일치를 바로잡을 수 있습니다.
잘못된 계정 파일 권한 고치기
계정 시스템을 쓰려면 파일 소유권과 권한이 올발라야 합니다.
이 절차를 하려면 root 사용자나 adm 그룹 권한이 있어야 합니다.
adm 관리 계정이 계정 명령과 스크립트를 소유하며, root가 소유하는 /var/adm/acct/accton만 예외입니다.
잘못된 계정 파일 권한을 고치려면 다음 절차를 따릅니다.
- ls 명령으로 파일 권한을 확인하려면 다음을 입력합니다.
ls -l /var/adm/acct
-rws--x--- 1 adm adm 14628 Mar 19 08:11 /var/adm/acct/fiscal
-rws--x--- 1 adm adm 14628 Mar 19 08:11 /var/adm/acct/nite
-rws--x--- 1 adm adm 14628 Mar 19 08:11 /var/adm/acct/sum
필요하면 chown 명령으로 파일 권한을 조정합니다. 권한은
755(소유자는 모든 권한, 나머지는 읽기와 실행 권한)입니다. 또 디렉터리 자체는 다른 사용자가 쓰지 못하게 보호해야 합니다. 예:- 다음을 입력해
/var/adm/acct디렉터리로 갑니다.
- 다음을 입력해
cd /var/adm/acct
- 다음을 입력해
sum,nite,fiscal디렉터리의 소유권을 adm으로 바꿉니다.
chown adm sum/* nite/* fiscal/*
요금을 피하려는 사용자의 조작을 막으려면 이 파일들에 다른 사용자의 쓰기 권한을 주지 않습니다. accton 명령의 그룹 소유자를 adm으로, 권한을 710(다른 사용자는 권한 없음)으로 바꿉니다. adm이 소유한 프로세스는 accton 명령을 실행할 수 있지만 일반 사용자는 실행할 수 없습니다.
3. /var/adm/wtmp 파일도 adm이 소유해야 합니다. /var/adm/wtmp를 root가 소유하면 시작할 때 다음 메시지가 나옵니다.
/var/adm/acct/startup: /var/adm/wtmp: Permission denied
/var/adm/wtmp의 소유권을 바로잡으려면 다음 명령을 입력해 소유권을 adm으로 바꿉니다.
chown adm /var/adm/wtmp
계정 오류 고치기
날짜와 타임스탬프 불일치를 바로잡을 수 있습니다.
이 절차를 하려면 root 사용자나 adm 그룹 권한이 있어야 합니다.
/var/adm/wtmp 파일을 처리하면 root에게 경고 메일이 갈 수 있습니다. wtmp 파일에는 /etc/init과 /bin/login이 모은 정보가 들어 있으며, 계정 스크립트는 주로 접속 시간(사용자가 로그인해 있던 시간)을 계산하는 데 씁니다. 안타깝게도 날짜 변경은 wtmp 파일을 처리하는 프로그램을 헷갈리게 합니다. 그 결과 runacct 명령은 지난번 계정 실행 이후 날짜가 바뀐 뒤의 오류를 root와 adm에 메일로 알립니다.
- 오류를 받았는지 확인합니다. acctcon1 명령이 내는 오류 메시지는 runacct 명령이 adm과 root에 메일로 보냅니다. 예를 들어 acctcon1 명령이 날짜 변경 뒤 헛디뎌 접속 시간을 모으지 못하면 adm은 다음과 같은 메일을 받을 수 있습니다.
Mon Jan 6 11:58:40 CST 1992
acctcon1: bad times: old: Tue Jan 7 00:57:14 1992
new: Mon Jan 6 11:57:59 1992
acctcon1: bad times: old: Tue Jan 7 00:57:14 1992
new: Mon Jan 6 11:57:59 1992
acctcon1: bad times: old: Tue Jan 7 00:57:14 1992
new: Mon Jan 6 11:57:59 1992
- 다음을 입력해
wtmp파일을 조정합니다.
/usr/sbin/acct/wtmpfix wtmp
wtmpfix 명령은 wtmp 파일에서 날짜와 타임스탬프 불일치를 찾아 acctcon1을 실패하게 할 수 있는 문제를 바로잡습니다. 그러나 일부 날짜 변경은 wtmpfix를 빠져나갑니다.
3. 종료 직전이나 시작 직후에 계정을 실행합니다. 이때 runacct 명령을 쓰면 시간이 잘못된 항목 수가 최소가 됩니다. runacct 스크립트를 편집해 WTMPFIX 구역에서 로그 파일을 root와 adm 계정에 메일로 보내는 줄을 주석 처리할 때까지 runacct 명령은 계속 메일을 보냅니다.
관련 작업
- wtmp 오류 고치기
runacct 명령을 실행할 때 만나는 계정 오류
runacct 명령을 실행할 때 오류를 만날 수 있습니다.
참고: runacct 명령을 실행하려면 root 사용자나 adm 그룹 권한이 있어야 합니다.
runacct 명령은 대개 아주 큰 파일을 처리합니다. 이 절차는 일부 파일을 여러 번 훑으며 진행되는 동안 시스템 자원을 상당히 씁니다. 그래서 runacct 명령은 보통 기계를 차지해도 아무도 방해하지 않는 이른 아침에 실행합니다.
runacct 명령은 여러 단계로 나뉜 스크립트입니다. 단계가 있어 스크립트 전체를 다시 실행하지 않고 멈춘 곳에서 명령을 다시 시작할 수 있습니다.
runacct가 문제를 만나면 오류가 난 곳에 따라 다른 곳으로 오류 메시지를 보냅니다. 보통 콘솔에 날짜와 함께 /usr/adm/acct/nite 디렉터리의 activeMMDD 파일(6월 21일이면 active0621)을 보라는 메시지를 보냅니다. runacct 명령이 중단되면 active 파일 전체를 activeMMDD로 옮기고 문제를 설명하는 메시지를 덧붙입니다.
runacct 명령을 실행할 때 만날 수 있는 오류는 다음 오류 메시지 표를 봅니다.
참고
- MMDD는 월과 일을 뜻하며, 1월 2일이면
0102입니다. 예를 들어 1월 2일 CONNECT1 처리 중 복구할 수 없는 오류가 나면 오류 메시지가 든active0102파일이 만들어집니다. - "SE message"는 다음과 같은 표준 오류 메시지를 뜻합니다.
********* ACCT ERRORS : see active0102 *********
| 단계 | 명령 | 복구 불가? | 오류 메시지 | 보내는 곳 |
|---|---|---|---|---|
| pre | runacct | 예 | * 2 CRONS or ACCT PROBLEMS * ERROR: locks found, run aborted |
console, mail, active |
| pre | runacct | 예 | runacct: Insufficient space in /usr (nnn blks); Terminating procedure |
console, mail, active |
| pre | runacct | 예 | SE message; ERROR: acctg already run for 'date': check lastdate |
console, mail, activeMMDD |
| pre | runacct | 아니요 | * SYSTEM ACCOUNTING STARTED * |
console |
| pre | runacct | 아니요 | restarting acctg for 'date' at STATE |
console, active |
| pre | runacct | 아니요 | restarting acctg for 'date' at state (argument 2) previous state was STATE |
active |
| pre | runacct | 예 | SE message; Error: runacct called with invalid arguments |
console, mail, activeMMDD |
| SETUP | runacct | 아니요 | ls -l fee pacct* /var/adm/wtmp |
active |
| SETUP | runacct | 예 | SE message; ERROR: turnacct switch returned rc=error |
console, mail, activeMMDD |
| SETUP | runacct | 예 | SE message; ERROR: SpacctMMDD already exists file setups probably already run |
activeMMDD |
| SETUP | runacct | 예 | SE message; ERROR: wtmpMMDD already exists: run setup manually |
console, mail, activeMMDD |
| WTMPFIX | wtmpfix | 아니요 | SE message; ERROR: wtmpfix errors see xtmperrorMMDD |
activeMMDD, wtmperrorMMDD |
| WTMPFIX | wtmpfix | 아니요 | wtmp processing complete |
active |
| CONNECT1 | acctcon1 | 아니요 | SE message; (errors from acctcon1 log) |
console, mail, activeMMDD |
| CONNECT2 | acctcon2 | 아니요 | connect acctg complete |
active |
| PROCESS | runacct | 아니요 | WARNING: accounting already run for pacctN |
active |
| PROCESS | acctprc1, acctprc2 | 아니요 | process acctg complete for SpacctNMMDD |
active |
| PROCESS | runacct | 아니요 | all process actg complete for date |
active |
| MERGE | acctmerg | 아니요 | tacct merge to create dayacct complete |
active |
| FEES | acctmerg | 아니요 | merged fees OR no fees |
active |
| DISK | acctmerg | 아니요 | merged disk records OR no disk records |
active |
| MERGEACCT | acctmerg | 아니요 | WARNING: recreating sum/tacct |
active |
| MERGEACCT | acctmerg | 아니요 | updated sum/tacct |
active |
| CMS | runacct | 아니요 | WARNING: recreating sum/cms |
active |
| CMS | acctcms | 아니요 | command summaries complete |
active |
| CLEANUP | runacct | 아니요 | system accounting completed at 'date' |
active |
| CLEANUP | runacct | 아니요 | *SYSTEM ACCOUNTING COMPLETED* |
console |
<wrong> |
runacct | 예 | SE message; ERROR: invalid state, check STATE |
console, mail, activeMMDD |
참고: 앞 표의 <wrong> 레이블은 어떤 단계를 뜻하는 것이 아니라, 상태 파일 /usr/adm/acct/nite/statefile에 기록된 올바른 단계가 아닌 다른 단계를 뜻합니다.
| 보내는 곳 | 설명 |
|---|---|
| console | /dev/console 장치 |
| root와 adm 계정에 메일로 보낸 메시지 | |
| active | /usr/adm/acct/nite/active 파일 |
| activeMMDD | /usr/adm/acct/nite/activeMMDD 파일 |
| wtmperrMMDD | /usr/adm/acct/nite/wtmperrorMMDD 파일 |
| STATE | /usr/adm/acct/nite/statefile 파일의 현재 단계 |
| fd2log | 그 밖의 모든 오류 메시지 |
영어 원문
Troubleshooting system accounting
Use these troubleshooting methods to tackle some of the basic problems that may occur when using system accounting. If the troubleshooting information does not address your problem, contact your service representative.
Fixing tacct errors
If you are using the accounting system to charge users for system resources, the integrity of the /var/adm/acct/sum/tacct file is quite important. Occasionally, mysterious tacct records appear that contain negative numbers, duplicate user numbers, or a user number of 65,535. You can fix these problems.
You must have root user or adm group authority.
To patch a tacct file, perform the following steps:
- Move to the
/var/adm/acct/sumdirectory by typing:
cd /var/adm/acct/sum
- Use the prtacct command to check the total accounting file,
tacctprev, by typing:
prtacct tacctprev
The prtacct command formats and displays the tacctprev file so that you can check connect time, process time, disk usage, and printer usage.
- If the
tacctprevfile looks correct, change the latesttacct .mmdd file from a binary file to an ASCII file. In the following example, the acctmerg command converts thetacct.mmdd file to an ASCII file namedtacct.new:
acctmerg -v < tacct. mmdd > tacct.new
Note: The acctmerg command with the -a flag also produces ASCII output. The -v flag produces more precise notation for floating-point numbers. The acctmerg command is used to merge the intermediate accounting record reports into a cumulative total report (tacct). This cumulative total is the source from which the monacct command produces the ASCII monthly summary report. Since the monacct command procedure removes all the tacct.mmdd files, you recreate the tacct file by merging these files.
- Edit the
tacct.newfile to remove the bad records and write duplicate user number records to another file by typing:
acctmerg -i < tacct.new > tacct.mmdd
- Create the
tacctfile again by typing:
acctmerg tacctprev < tacct. mmdd > tacct
Fixing wtmp errors
The /var/adm/wtmp, or "who temp" file, might cause problems in the day-to-day operation of the accounting system. You can fix wtmp errors.
You must have root user or adm group authority to perform this procedure.
When the date is changed and the system is in multiuser mode, date change records are written to the /var/adm/wtmp file. When a date change is encountered, the wtmpfix command adjusts the time stamps in the wtmp records. Some combinations of date changes and system restarts may slip past the wtmpfix command and cause the acctcon1 command to fail and the runacct command to send mail to the root and adm accounts listing incorrect dates.
To fix wtmp errors, perform the following procedure:
- Move to the
/var/adm/acct/nitedirectory by typing:
cd /var/adm/acct/nite
- Convert the binary
wtmpfile to an ASCII file that you can edit by typing:
fwtmp < wtmp. mmdd > wtmp.new
The fwtmp command converts wtmp from binary to ASCII.
- Edit the ASCII
wtmp.newfile to delete damaged records or all records from the beginning of the file up to the needed date change by typing:
vi wtmp.new
- Convert the ASCII
wtmp.newfile back to binary format by typing:
fwtmp -ic < wtmp.new > wtmp. mmdd
- If the
wtmpfile is beyond repair, use the nulladm command to create an emptywtmpfile. This prevents any charges in the connect time.
nulladm wtmp
The nulladm command creates the file specified with read and write permissions for the file owner and group, and read permissions for other users. It ensures that the file owner and group are adm.
Related tasks
Fixing Accounting errors You can correct date and time-stamp inconsistencies.
Fixing incorrect Accounting file permissions
To use the Accounting system, file ownership and permissions must be correct.
You must have root user or adm group authority to perform this procedure.
The adm administrative account owns the accounting command and scripts, except for /var/adm/acct/accton which is owned by root.
To fix incorrect Accounting file permissions, perform the following procedure:
- To check file permissions using the ls command, type:
ls -l /var/adm/acct
-rws--x--- 1 adm adm 14628 Mar 19 08:11 /var/adm/acct/fiscal
-rws--x--- 1 adm adm 14628 Mar 19 08:11 /var/adm/acct/nite
-rws--x--- 1 adm adm 14628 Mar 19 08:11 /var/adm/acct/sum
- Adjust file permissions with the chown command, if necessary. The permissions are
755(all permissions for owner and read and execute permissions for all others). Also, the directory itself should be write-protected from others. For example: a. Move to the/var/adm/acctdirectory by typing:
cd /var/adm/acct
- Change the ownership for the
sum,nite, andfiscaldirectories to adm group authority by typing:
chown adm sum/* nite/* fiscal/*
To prevent tampering by users trying to avoid charges, deny write permission for others on these files. Change the accton command group owner to adm, and permissions to 710, that is, no permissions for others. Processes owned by adm can execute the accton command, but ordinary users cannot.
- The
/var/adm/wtmpfile must also be owned by adm. If/var/adm/wtmpis owned by root, you will see the following message during startup:
/var/adm/acct/startup: /var/adm/wtmp: Permission denied
To correct the ownership of /var/adm/wtmp, change ownership to the adm group by typing the following command:
chown adm /var/adm/wtmp
Fixing Accounting errors
You can correct date and time-stamp inconsistencies.
You must have root user or adm group authority to perform this procedure.
Processing the /var/adm/wtmp file might produce some warnings mailed to root. The wtmp file contains information collected by /etc/init and /bin/login and is used by accounting scripts primarily for calculating connect time (the length of time a user is logged in). Unfortunately, date changes confuse the program that processes the wtmp file. As a result, the runacct command sends mail to root and adm complaining of any errors after a date change since the last time accounting was run.
- Determine if you received any errors. The acctcon1 command outputs error messages that are mailed to adm and root by the runacct command. For example, if the acctcon1 command stumbles after a date change and fails to collect connect times, adm might get mail like the following mail message:
Mon Jan 6 11:58:40 CST 1992
acctcon1: bad times: old: Tue Jan 7 00:57:14 1992
new: Mon Jan 6 11:57:59 1992
acctcon1: bad times: old: Tue Jan 7 00:57:14 1992
new: Mon Jan 6 11:57:59 1992
acctcon1: bad times: old: Tue Jan 7 00:57:14 1992
new: Mon Jan 6 11:57:59 1992
- Adjust the
wtmpfile by typing:
/usr/sbin/acct/wtmpfix wtmp
The wtmpfix command examines the wtmp file for date and time-stamp inconsistencies and corrects problems that could make acctcon1 fail. However, some date changes slip by wtmpfix.
- Run accounting right before shutdown or immediately after startup. Using the runacct command at these times minimizes the number of entries with bad times. The runacct command continues to send mail to the root and adm accounts, until you edit the runacct script, find the
WTMPFIXsection, and comment out the line where the file log gets mailed to the root and adm accounts.
Related tasks
Fixing wtmp errors The /var/adm/wtmp, or "who temp" file, might cause problems in the day-to-day operation of the accounting system. You can fix wtmp errors.
Accounting errors encountered when running the runacct command:
You might encounter errors when running the runacct command.
Note: You must have root user or adm group authority to run the runacct command.
The runacct command processes files that are often very large. The procedure involves several passes through certain files and consumes considerable system resources while it is taking place. Since the runacct command consumes considerable resources, it is normally run early in the morning when it can take over the machine and not disturb anyone.
The runacct command is a script divided into different stages. The stages allow you to restart the command where it stopped, without having to rerun the entire script.
When the runacct encounters problems, it sends error messages to different destinations depending on where the error occurred. Usually it sends a date and a message to the console directing you to look in the activeMMDD file (such as active0621 for June 21st) which is in the /usr/adm/acct/nite directory. When the runacct command aborts, it moves the entire active file to activeMMDD and appends a message describing the problem.
Review the following error message tables for errors that you might encounter when running the runacct command.
Note
The abbreviation MMDD stands for the month and day, such as
0102for January 2. For example, an unrecoverable error during the CONNECT1 process on January 2 creates the fileactive0102containing the error message.The abbreviation "SE message" stands for the standard error message such as:
********* ACCT ERRORS : see active0102 *********
| State | Command | Unrecoverable? | Error Message | Destinations |
|---|---|---|---|---|
| pre | runacct | yes | * 2 CRONS or ACCT PROBLEMS * ERROR: locks found, run aborted |
console, mail, active |
pre runacct yes runacct: Insufficient space in /usr (nnn
blks); Terminating
procedure
console, mail, active
pre runacct yes SE message; ERROR:
acctg already run for
’date’: check lastdate
console, mail, activeMMDD
pre runacct no * SYSTEM ACCOUNTING
STARTED *
console
pre runacct no restarting acctg for
’date’ at STATE
console active, console
pre runacct no restarting acctg for
’date’ at state
(argument $2) previous
state was STATE
active
pre runacct yes SE message; Error:
runacct called with
invalid arguments
console, mail, activeMMDD
| State | Command | Unrecoverable? | Error Message | Destinations |
|---|---|---|---|---|
| SETUP | runacct | no | ls -l fee pacct* /var/adm/wtmp |
active |
| SETUP | runacct | yes | SE message; ERROR: turnacct switch returned rc=error |
console, mail, activeMMDD |
| SETUP | runacct | yes | SE message; ERROR: SpacctMMDD already exists file setups probably already run |
activeMMDD |
SETUP runacct yes SE message; ERROR:
wtmpMMDD already
exists: run setup
manually
console, mail, activeMMDD
WTMPFIX wtmpfix no SE message; ERROR:
wtmpfix errors see
xtmperrorMMDD
activeMMDD, wtmperrorMMDD
WTMPFIX wtmpfix no wtmp processing
complete
active
CONNECT1 acctcon1 no SE message; (errors
from acctcon1 log)
console, mail, activeMMDD
CONNECT2 acctcon2 no connect acctg complete active PROCESS runacct no WARNING: accounting
already run for
pacctN active
PROCESS acctprc1 acctprc2 no process acctg complete
for SpacctNMMDD
active
PROCESS runacct no all process actg
complete for date
active
MERGE acctmerg no tacct merge to create
dayacct complete
active
| State | Command | Unrecoverable? | Error Message | Destinations |
|---|---|---|---|---|
| FEES | acctmerg | no | merged fees OR no fees |
active |
| DISK | acctmerg | no | merged disk records OR no disk records |
active |
| MERGEACCT | acctmerg | no | WARNING: recreating sum/tacct |
active |
| MERGEACCT | acctmerg | no | updated sum/tacct |
active |
| CMS | runacct | no | WARNING: recreating sum/cms |
active |
| CMS | acctcms | no | command summaries complete |
active |
| CLEANUP | runacct | no | system accounting completed at ’date’ |
active |
| CLEANUP | runacct | no | *SYSTEM ACCOUNTING COMPLETED* |
console |
<wrong> |
runacct | yes | SE message; ERROR: invalid state, check STATE |
console, mail, activeMMDD |
Note: The label <wrong> in the previous table does not represent a state, but rather a state other than the correct state that was written in the state file /usr/adm/acct/nite/statefile.
- console — The
/dev/consoledevice - mail — Message mailed to root and adm accounts
- active — The
/usr/adm/acct/nite/activefile - activeMMDD — The
/usr/adm/acct/nite/activeMMDD file - wtmperrMMDD — The
/usr/adm/acct/nite/wtmperrorMMDD file - STATE — Current state in
/usr/adm/acct/nite/statefilefile - fd2log — Any other error messages
시스템 자원 제어기
시스템 자원 제어기(SRC)는 시스템 관리자와 프로그래머가 하위 시스템을 만들고 제어하기 쉽게 해 주는 명령과 서브루틴 묶음입니다.
하위 시스템은 보통 혼자서나 제어 시스템과 함께 동작할 수 있는 프로그램이나 프로세스, 또는 그 묶음입니다. 하위 시스템은 정해진 기능을 제공하는 단위로 설계됩니다.
SRC는 운영자의 개입을 최소화하도록 설계됐습니다. 공통 명령행과 C 인터페이스로 하위 시스템 프로세스를 제어하는 메커니즘을 제공합니다. 이 메커니즘에는 다음이 들어 있습니다.
- 시작, 멈춤, 상태 조회를 위한 일관된 사용자 인터페이스
- 하위 시스템의 비정상 종료 기록
- 관련 프로세스가 비정상 종료할 때 호출되는 통지 프로그램
- 하위 시스템, 하위 시스템 그룹, 하위 서버의 추적
- 원격 시스템의 작업 제어 지원
- 하위 시스템 새로 고침(구성 데이터를 바꾼 뒤 등)
SRC는 프로세스를 시작하고 멈추고 상태 정보를 모으는 공통 방법이 필요할 때 쓸모 있습니다.
관련 개념
- BSD 시스템 관리자를 위한 AIX 소개 — BSD(Berkeley Software Distribution) 시스템 관리자가 AIX 관리를 시작하는 데 도움이 되는 팁입니다.
영어 원문
System Resource Controller
The System Resource Controller (SRC) provides a set of commands and subroutines to make it easier for the system manager and programmer to create and control subsystems.
A subsystem is any program or process or set of programs or processes that is usually capable of operating independently or with a controlling system. A subsystem is designed as a unit to provide a designated function.
The SRC was designed to minimize the need for operator intervention. It provides a mechanism to control subsystem processes using a common command line and the C interface. This mechanism includes the following:
Consistent user interface for start, stop, and status inquiries
Logging of the abnormal termination of subsystems
Notification program called at the abnormal system termination of related processes
Tracing of a subsystem, a group of subsystems, or a subserver
Support for control of operations on a remote system
Refreshing of a subsystem (such as after a configuration data change).
The SRC is useful if you want a common way to start, stop, and collect status information on processes.
Related concepts
Introduction to AIX for BSD system managers The following are tips to help Berkeley Software Distribution (BSD) system managers get started managing AIX.
하위 시스템 구성 요소
다음은 하위 시스템의 특성과 구성 요소입니다.
하위 시스템에는 다음 특성이 하나 이상 있을 수 있습니다.
- 시스템에 이름으로 알려집니다.
- 서브루틴이나 권한 없는 프로그램보다 복잡한 실행 환경이 필요합니다.
- 하위 시스템 코드뿐 아니라 응용 프로그램과 라이브러리도 포함합니다.
- 이름으로 시작하고 멈출 수 있는 자원을 제어합니다.
- 관련 프로세스가 실패하면 정리하거나 자원을 복구하도록 통지가 필요합니다.
- 단순한 데몬 프로세스보다 많은 운영 제어가 필요합니다.
- 원격 운영자가 제어해야 합니다.
- 특정 자원을 관리하는 하위 서버를 구현합니다.
- 스스로 백그라운드로 들어가지 않습니다.
하위 시스템의 예로 ypserv, ntsd, qdaemon, inetd, syslogd, sendmail이 있습니다.
참고: SRC 기능의 자세한 내용은 각 하위 시스템을 봅니다.
시스템의 활성·비활성 하위 시스템을 나열하려면 lssrc -a 명령을 씁니다.
하위 시스템 그룹과 하위 서버는 다음과 같습니다.
하위 시스템 그룹
하위 시스템 그룹은 지정한 하위 시스템들의 그룹입니다. 하위 시스템을 묶으면 여러 하위 시스템을 한 번에 제어할 수 있습니다. 하위 시스템 그룹의 예로 TCP/IP, SNA Services, NIS(Network Information System), NFS(Network File Systems)가 있습니다.
하위 서버
하위 서버는 하위 시스템에 속한 프로그램이나 프로세스입니다. 하위 시스템은 하위 서버를 여러 개 가질 수 있으며 하위 서버를 시작하고 멈추고 상태를 알려 줄 책임이 있습니다. 하위 서버는 통신 방식이 IPC 메시지 큐와 소켓인 하위 시스템에만 정의할 수 있습니다. 신호 통신을 쓰는 하위 시스템은 하위 서버를 지원하지 않습니다.
하위 서버는 부모 하위 시스템이 시작될 때 시작됩니다. 하위 서버를 시작하려는데 부모 하위 시스템이 활성이 아니면 startsrc 명령이 하위 시스템도 시작합니다.
영어 원문
Subsystem components
The following are the properties and components of a subsystem.
A subsystem can have one or more of the following properties:
Is known to the system by name
Requires a more complex execution environment than a subroutine or nonprivileged program
Includes application programs and libraries as well as subsystem code
Controls resources that can be started and stopped by name
Requires notification if a related process is unsuccessful to perform cleanup or to recover resources
Requires more operational control than a simple daemon process
Needs to be controlled by a remote operator
Implements subservers to manage specific resources
Does not put itself in the background.
A few subsystem examples are ypserv, ntsd, qdaemon, inetd, syslogd, and sendmail.
Note: See each specific subsystem for details of its SRC capabilities.
Use the lssrc -a command to list active and inactive subsystems on your system.
The following defines subsystem groups and subservers:
Subsystem Group
A subsystem group is a group of any specified subsystems. Grouping subsystems together allows the control of several subsystems at one time. A few subsystem group examples are TCP/IP, SNA Services, Network Information System (NIS), and Network File Systems (NFS).
Subserver
A subserver is a program or process that belongs to a subsystem. A subsystem can have multiple subservers and is responsible for starting, stopping, and providing status of subservers. Subservers can be defined only for a subsystem with a communication type of IPC message queues and sockets. Subsystems using signal communications do not support subservers.
Subservers are started when their parent subsystems are started. If you try to start a subserver and its parent subsystem is not active, the startsrc command starts the subsystem as well.
SRC 계층
시스템 자원 제어기 계층은 운영 체제에서 시작해 하위 시스템 그룹(tcpip 등)으로 이어지고, 그룹에는 하위 시스템(inetd 데몬 등)이 들어 있으며, 하위 시스템은 다시 여러 하위 서버(ftp 데몬과 finger 명령 등)를 가질 수 있습니다.
영어 원문
SRC hierarchy
The System Resource Controller hierarchy begins with the operating system followed by a subsystem group (such as tcpip), which contains a subsystem (such as the inetd daemon), which in turn can own several subservers (such as the ftp daemon and the finger command).
SRC 관리 명령
명령행에서 SRC를 관리할 수 있습니다.
SRC 관리 명령은 다음과 같습니다.
| 명령 | 설명 |
|---|---|
| srcmstr 데몬 | 시스템 자원 제어기를 시작합니다. |
| startsrc 명령 | 하위 시스템, 하위 시스템 그룹, 하위 서버를 시작합니다. |
| stopsrc 명령 | 하위 시스템, 하위 시스템 그룹, 하위 서버를 멈춥니다. |
| refresh 명령 | 하위 시스템을 새로 고칩니다. |
| traceson 명령 | 하위 시스템, 하위 시스템 그룹, 하위 서버의 추적을 켭니다. |
| tracesoff 명령 | 하위 시스템, 하위 시스템 그룹, 하위 서버의 추적을 끕니다. |
| lssrc 명령 | 하위 시스템의 상태를 가져옵니다. |
영어 원문
SRC administration commands
You can administer SRC from the command line.
The SRC administration commands are:
- srcmstr daemon — Starts the System Resource Controller
- startsrc command — Starts a subsystem, subsystem group, or subserver
- stopsrc command — Stops a subsystem, subsystem group, or subserver
- refresh command — Refreshes a subsystem
- traceson command — Turns on tracing of a subsystem, a group of subsystems, or a subserver
- tracesoff command — Turns off tracing of a subsystem, a group of subsystems, or a subserver
- lssrc command — Gets status on a subsystem.
시스템 자원 제어기 시작
시스템 자원 제어기(SRC)는 시스템 초기화 중에 /etc/inittab 파일에 있는 /usr/sbin/srcmstr 데몬 레코드로 시작합니다.
SRC를 시작하는 전제 조건은 다음과 같습니다.
/etc/inittab파일을 읽고 쓰려면 root 사용자 권한이 필요합니다.- mkitab 명령에는 root 사용자 권한이 필요합니다.
/etc/inittab파일에 srcmstr 데몬 레코드가 있어야 합니다.
기본 /etc/inittab 파일에는 이미 그런 레코드가 있으므로 이 절차가 필요 없을 수 있습니다. SRC는 명령행, 프로파일, 셸 스크립트에서도 시작할 수 있지만, 초기화 중에 시작해야 할 이유가 몇 가지 있습니다.
/etc/inittab파일에서 SRC를 시작하면 SRC가 어떤 이유로든 멈출 때 init 명령이 다시 시작할 수 있습니다.- SRC는 하위 시스템 제어에 필요한 운영자 개입을 단순하게 하고 줄이도록 설계됐습니다.
/etc/inittab파일이 아닌 다른 곳에서 SRC를 시작하면 그 목표에 어긋납니다. - 기본
/etc/inittab파일에는 startsrc 명령으로 인쇄 스케줄링 하위 시스템(qdaemon)을 시작하는 레코드가 있습니다. 보통 설치에서는/etc/inittab파일에서 다른 하위 시스템도 startsrc 명령으로 시작합니다. startsrc 명령(원문은 srcmstr 명령)은 SRC가 실행 중이어야 하므로,/etc/inittab파일에서 srcmstr 데몬을 빼면 이 startsrc 명령들이 실패합니다.
참고: 이 절차는 /etc/inittab 파일에 srcmstr 데몬 레코드가 아직 없을 때만 필요합니다.
- mkitab 명령으로
/etc/inittab파일에 srcmstr 데몬 레코드를 만듭니다. 예를 들어 기본/etc/inittab파일에 있는 것과 같은 레코드를 만들려면 다음을 입력합니다.
mkitab -i fbcheck srcmstr:2:respawn:/usr/sbin/srcmstr
-i fbcheck 플래그는 레코드가 모든 하위 시스템 레코드 앞에 들어가게 합니다.
2. 다음을 입력해 init 명령이 /etc/inittab 파일을 다시 처리하게 합니다.
telinit q
init이 /etc/inittab 파일을 다시 읽으면 새로 넣은 srcmstr 데몬 레코드를 처리해 SRC를 시작합니다.
관련 개념
- 하위 시스템 제어 — traceson 명령으로 켜고 tracesoff 명령으로 끄는 SRC 자원 추적
관련 작업
- 하위 시스템이나 하위 시스템 그룹 새로 고침
영어 원문
Starting the System Resource Controller
The System Resource Controller (SRC) is started during system initialization with a record for the /usr/sbin/srcmstr daemon in the /etc/inittab file.
The following are the prerequisites for starting the SRC:
Reading and writing the
/etc/inittabfile requires root user authority.The mkitab command requires root user authority.
The srcmstr daemon record must exist in the
/etc/inittabfile.
The default /etc/inittab file already contains such a record, so this procedure might be unnecessary. You can also start the SRC from the command line, a profile, or a shell script, but there are several reasons for starting it during initialization:
Starting the SRC from the
/etc/inittabfile allows the init command to restart the SRC if it stops for any reason.The SRC is designed to simplify and reduce the amount of operator intervention required to control subsystems. Starting the SRC from any source other than the
/etc/inittabfile is counterproductive to that goal.The default
/etc/inittabfile contains a record for starting the print scheduling subsystem (qdaemon) with the startsrc command. Typical installations have other subsystems started with startsrc commands in the/etc/inittabfile as well. Because the srcmstr command requires the SRC be running, removing the srcmstr daemon from the/etc/inittabfile causes these startsrc commands to fail.
Note: This procedure is necessary only if the /etc/inittab file does not already contain a record for the srcmstr daemon.
- Make a record for the srcmstr daemon in the
/etc/inittabfile using the mkitab command. For example, to make a record identical to the one that appears in the default/etc/inittabfile, type:
mkitab -i fbcheck srcmstr:2:respawn:/usr/sbin/srcmstr
The -i fbcheck flag ensures that the record is inserted before all subsystems records.
- Tell the init command to reprocess the
/etc/inittabfile by typing:
telinit q
When init revisits the /etc/inittab file, it processes the newly entered record for the srcmstr daemon and starts the SRC.
Related concepts
Subsystem control The traceson command can be used to turn on, and the traceoff command can be used to turn off, tracing of a System Resource Controller (SRC) resource such as a subsystem, a group of subsystems, or a subserver.
Related tasks
Refreshing a subsystem or subsystem group Use the refresh command to tell a System Resource Controller (SRC) resource such as a subsystem or a group of subsystems to refresh itself.
하위 시스템, 하위 시스템 그룹, 하위 서버 시작과 멈춤
startsrc 명령으로 하위 시스템, 하위 시스템 그룹, 하위 서버 같은 SRC 자원을 시작합니다. stopsrc 명령으로 SRC 자원을 멈춥니다.
하위 시스템, 하위 시스템 그룹, 하위 서버를 시작하거나 멈추는 전제 조건은 다음과 같습니다.
- SRC 자원을 시작하거나 멈추려면 SRC가 실행 중이어야 합니다. SRC는 보통 시스템 초기화 중에 시작됩니다. 초기화 중에 시작할 프로세스를 정하는 기본
/etc/inittab파일에는 srcmstr 데몬(SRC) 레코드가 있습니다. SRC가 실행 중인지 보려면ps -A를 입력해srcmstr라는 프로세스를 찾습니다. - SRC 자원을 시작하는 사용자나 프로세스는 root 사용자 권한이 있어야 합니다. 시스템을 초기화하는 프로세스(init 명령)는 root 사용자 권한이 있습니다.
- SRC 자원을 멈추는 사용자나 프로세스는 root 사용자 권한이 있어야 합니다.
startsrc 명령은 다음에서 쓸 수 있습니다.
- 시스템 초기화 중에 자원이 시작되도록
/etc/inittab파일에서 - 명령행에서
- SMIT에서
하위 시스템 그룹을 시작하면 그 모든 하위 시스템도 시작됩니다. 하위 시스템을 시작하면 그 모든 하위 서버도 시작됩니다. 하위 서버를 시작하면 부모 하위 시스템이 아직 실행 중이 아닐 때 함께 시작됩니다.
하위 시스템을 멈추면 그 모든 하위 서버도 멈춥니다. 그러나 하위 서버를 멈춰도 부모 하위 시스템의 상태는 바뀌지 않습니다.
startsrc와 stopsrc 명령에는 로컬이나 원격 호스트에 요청할 수 있는 플래그가 있습니다. 원격 SRC 요청을 지원하기 위한 구성 요구 사항은 srcmstr 명령을 봅니다.
| 작업 | SMIT 빠른 경로 | 명령이나 파일 |
|---|---|---|
| 하위 시스템 시작 | smit startssys |
/bin/startsrc -s SubsystemName 또는 /etc/inittab 편집 |
| 하위 시스템 멈춤 | smit stopssys |
/bin/stopsrc -s SubsystemName |
관련 정보
- stopsrc 명령, startsrc 명령, srcmstr 명령
영어 원문
Starting or stopping a subsystem, subsystem group, or subserver
Use the startsrc command to start a System Resource Controller (SRC) resource such as a subsystem, a group of subsystems, or a subserver. Use the stopsrc command to stop an SRC resource such as a subsystem, a group of subsystems, or a subserver.
The following are the prerequisites for starting or stopping a subsystem, subsystem group, or subserver:
To start or stop an SRC resource, the SRC must be running. The SRC is normally started during system initialization. The default
/etc/inittabfile, which determines what processes are started during initialization, contains a record for the srcmstr daemon (the SRC). To see if the SRC is running, typeps -Aand look for a process namedsrcmstr.The user or process starting an SRC resource must have root user authority. The process that initializes the system (init command) has root user authority.
The user or process stopping an SRC resource must have root user authority.
The startsrc command can be used:
From the
/etc/inittabfile so the resource is started during system initializationFrom the command line
With SMIT
When you start a subsystem group, all of its subsystems are also started. When you start a subsystem, all of its subservers are also started. When you start a subserver, its parent subsystem is also started if it is not already running.
When you stop a subsystem, all its subservers are also stopped. However, when you stop a subserver, the state of its parent subsystem is not changed.
Both the startsrc and stopsrc commands contain flags that allow requests to be made on local or remote hosts. See the srcmstr command for the configuration requirements to support remote SRC requests. Task SMIT fast path Command or file Start a subsystem smit startssys /bin/startsrc -s SubsystemName , or edit
/etc/inittab
Stop a subsystem smit stopssys /bin/stopsrc -s SubsystemName
Related information
stopsrc command startsrc command srcmstr command
하위 시스템 상태 보기
lssrc 명령으로 하위 시스템, 하위 시스템 그룹, 하위 서버 같은 SRC 자원의 상태를 봅니다.
모든 하위 시스템은 어느 그룹에 속하는지, 활성인지, 프로세스 ID(PID)가 무엇인지 담은 짧은 상태 보고서를 돌려줄 수 있습니다. 신호 통신 방식을 쓰지 않는 하위 시스템은 추가 상태 정보가 든 긴 상태 보고서를 돌려주도록 프로그래밍할 수 있습니다.
lssrc 명령에는 하위 시스템을 이름이나 PID로 지정하고, 모든 하위 시스템을 나열하고, 짧거나 긴 상태 보고서를 요청하고, 로컬이나 원격 호스트의 SRC 자원 상태를 요청하는 플래그와 매개변수가 있습니다.
원격 SRC 요청을 지원하기 위한 구성 요구 사항은 srcmstr 명령을 봅니다.
| 작업 | SMIT 빠른 경로 | 명령이나 파일 |
|---|---|---|
| 하위 시스템 상태 보기(긴 형식) | smit qssys |
lssrc -l -s SubsystemName |
| 모든 하위 시스템 상태 보기 | smit lsssys |
lssrc -a |
| 특정 호스트의 모든 하위 시스템 상태 보기 | - | lssrc -h HostName -a |
영어 원문
Displaying status of a subsystem or subsystems
Use the lssrc command to display the status of a System Resource Controller (SRC) resource such as a subsystem, a group of subsystems, or a subserver.
All subsystems can return a short status report that includes which group the subsystem belongs to, whether the subsystem is active, and what its process ID (PID) is. If a subsystem does not use the signals communication method, it can be programmed to return a long status report containing additional status information.
The lssrc command provides flags and parameters for specifying the subsystem by name or PID, for listing all subsystems, for requesting a short or long status report, and for requesting the status of SRC resources either locally or on remote hosts.
See the srcmstr command for the configuration requirements to support remote SRC requests. Task SMIT Fast Path Command or File Display the status of a subsystem (long format) smit qssys lssrc -l -s SubsystemName Display the status of all subsystems smit lsssys lssrc -a Display the status of all subsystems on a particular host lssrc -hHostName -a
하위 시스템이나 하위 시스템 그룹 새로 고침
refresh 명령으로 하위 시스템이나 하위 시스템 그룹 같은 SRC 자원에 스스로 새로 고치라고 알립니다.
하위 시스템이나 하위 시스템 그룹을 새로 고치는 전제 조건은 다음과 같습니다.
- SRC가 실행 중이어야 합니다.
- 새로 고칠 자원은 신호 통신 방식을 쓰지 않아야 합니다.
- 새로 고칠 자원은 새로 고침 요청에 응답하도록 프로그래밍돼 있어야 합니다.
refresh 명령에는 하위 시스템을 이름이나 PID로 지정하는 플래그와 매개변수가 있습니다. 로컬이나 원격 호스트에서 하위 시스템이나 하위 시스템 그룹을 새로 고치라고 요청할 수도 있습니다. 원격 SRC 요청을 지원하기 위한 구성 요구 사항은 srcmstr 명령을 봅니다.
| 작업 | SMIT 빠른 경로 | 명령이나 파일 |
|---|---|---|
| 하위 시스템 새로 고침 | smit refresh |
refresh -s Subsystem |
관련 작업
- 시스템 자원 제어기 시작
영어 원문
Refreshing a subsystem or subsystem group
Use the refresh command to tell a System Resource Controller (SRC) resource such as a subsystem or a group of subsystems to refresh itself.
The following are the prerequisites for refreshing a subsystem or subsystem group:
The SRC must be running.
The resource you want to refresh must not use the signals communications method.
The resource you want to refresh must be programmed to respond to the refresh request.
The refresh command provides flags and parameters for specifying the subsystem by name or PID. You can also use it to request a subsystem or group of subsystems be refreshed, either locally or on remote hosts. See the srcmstr command for the configuration requirements to support remote SRC requests.
| Task | SMIT Fast Path | Command or File |
|---|---|---|
| Refresh a Subsystem | smit refresh | refresh -s Subsystem |
Related tasks
Starting the System Resource Controller The System Resource Controller (SRC) is started during system initialization with a record for the /usr/sbin/srcmstr daemon in the /etc/inittab file.
하위 시스템 제어
traceson 명령으로 켜고 tracesoff 명령(원문은 traceoff)으로 끄는 방식으로 하위 시스템, 하위 시스템 그룹, 하위 서버 같은 SRC 자원의 추적을 다룹니다.
traceson 명령으로 SRC 자원의 추적을 켭니다.
tracesoff 명령으로 SRC 자원의 추적을 끕니다.
traceson과 tracesoff 명령으로 특정 호스트의 추적을 원격으로 켜거나 끌 수 있습니다. 원격 SRC 요청을 지원하기 위한 구성 요구 사항은 srcmstr 명령을 봅니다.
전제 조건
- SRC 자원의 추적을 켜거나 끄려면 SRC가 실행 중이어야 합니다.
- 추적할 자원은 신호 통신 방식을 쓰지 않아야 합니다.
- 추적할 자원은 추적 요청에 응답하도록 프로그래밍돼 있어야 합니다.
| 작업 | SMIT 빠른 경로 | 명령이나 파일 |
|---|---|---|
| 하위 시스템 추적 켜기(짧은 형식) | smit tracessyson |
traceson -s Subsystem |
| 하위 시스템 추적 켜기(긴 형식) | smit tracessyson |
traceson -l -s Subsystem |
| 하위 시스템 추적 끄기 | smit tracessysoff |
tracesoff -s Subsystem |
관련 작업
- 시스템 자원 제어기 시작
영어 원문
Subsystem control
The traceson command can be used to turn on, and the traceoff command can be used to turn off, tracing of a System Resource Controller (SRC) resource such as a subsystem, a group of subsystems, or a subserver.
Use the traceson command to turn on tracing of a System Resource Controller (SRC) resource such as a subsystem, a group of subsystems, or a subserver.
Use the tracesoff command to turn off tracing of a System Resource Controller (SRC) resource such as a subsystem, a group of subsystems, or a subserver.
The traceson and traceoff commands can be used to remotely turn on or turn off tracing on a specific host. See the srcmstr command for the configuration requirements for supporting remote SRC requests.
Prerequisites
To turn the tracing of an SRC resource either on or off , the SRC must be running.
The resource you want to trace must not use the signals communications method.
The resource you want to trace must be programmed to respond to the trace request. Task SMIT Fast Path Command or File Turn on Subsystem Tracing (short format) smit tracessyson traceson -s Subsystem Turn on Subsystem Tracing (long format) smit tracessyson traceson -l -s Subsystem Turn off Subsystem Tracing smit tracessysoff tracesoff -s Subsystem
Related tasks
Starting the System Resource Controller The System Resource Controller (SRC) is started during system initialization with a record for the /usr/sbin/srcmstr daemon in the /etc/inittab file.