- Community Home
- >
- HPE Community, Korea
- >
- HP-UX
- >
- 특정사용자의 커맨드실행 추적방법은..
HP-UX
1752661
회원
5989
온라인
108788
솔루션
포럼
범주
Company
Local Language
뒤로
포럼
토론 게시판
포럼
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
토론 게시판
토론 게시판
포럼
토론 게시판
뒤로
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
블로그
정보
커뮤니티 언어
언어
포럼
블로그
1 응답 1
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
날짜: 07-01-2009 10:00 PM
날짜: 07-01-2009 10:00 PM
특정사용자의 커맨드실행 추적방법은..
안녕하세요~ 양계전이에요
아마 acct를 사용하시면 될거 같네요
구성방법은 아래와 같습니다
# vi /etc/rc.config.d/acct
START_ACCT=1
# /sbin/init.d/acct start
Accounting started
이후로 login정보는 /var/adm/pacct에 저장이 됩니다.
모든 user의 command를 보려면
# /usr/sbin/acct/acctcom /var/adm/pacct
command별로 통계가 필요하다면
$ /usr/sbin/acct/acctcms -a /var/adm/pacct | more
예제로 보면 아래와 같이 나오네요.
root:/] /usr/sbin/acct/acctcom /var/adm/pacct | more
ACCOUNTING RECORDS FROM: Tue Nov 14 10:38:20 2006
COMMAND START END REAL CPU MEAN
NAME USER TTYNAME TIME TIME (SECS) (SECS) SIZE(K)
#accton root pts/tc 10:38:20 10:38:20 0.02 0.01 0.00
#turnacct root pts/tc 10:38:20 10:38:20 0.08 0.01 0.00
rm root pts/tc 10:38:20 10:38:20 0.01 0.01 0.00
rm root pts/tc 10:38:20 10:38:20 0.01 0.01 0.00
rm root pts/tc 10:38:20 10:38:20 0.01 0.01 0.00
#remove root pts/tc 10:38:20 10:38:20 0.03 0.01 0.00
#startup root pts/tc 10:38:20 10:38:20 0.17 0.01 600.00
#acct root pts/tc 10:38:20 10:38:20 0.44 0.04 154.00
rm root pts/tc 10:38:26 10:38:26 0.01 0.01 0.00
bdf root pts/tc 10:38:29 10:38:29 0.04 0.03 292.00
ls root pts/tc 10:38:30 10:38:30 0.01 0.01 0.00
rm root pts/tc 10:38:32 10:38:32 0.01 0.01 0.00
cat root pts/tc 10:38:45 10:38:45 0.01 0.01 0.00
관련파일로는
관련된 파일로는
*** Some important files for process accounting.
/var/adm/acct/nite --Daily summary files created by runacct are kept here.
/var/adm/acct/sum --Cumulative summary files updated by runacct are kept here.
/var/adm/acct/fiscal --Periodic (monthly) summary files created by monacct are
stored here.
/var/adm/pacct## --The process accounting daily log file.
/var/adm/acct/nite/statefile --State that lasst runacct completed.
/var/adm/acct/nite/active --Log file of runacct.
/var/adm/acct/nite/lastdate --Log of when the last date runacct was run.
/var/adm/acct/nite/daycms --Process usage report.
이렇게 있습니다
도움이 되었면 좋겠네요 ^^
수고하세요
아마 acct를 사용하시면 될거 같네요
구성방법은 아래와 같습니다
# vi /etc/rc.config.d/acct
START_ACCT=1
# /sbin/init.d/acct start
Accounting started
이후로 login정보는 /var/adm/pacct에 저장이 됩니다.
모든 user의 command를 보려면
# /usr/sbin/acct/acctcom /var/adm/pacct
command별로 통계가 필요하다면
$ /usr/sbin/acct/acctcms -a /var/adm/pacct | more
예제로 보면 아래와 같이 나오네요.
root:/] /usr/sbin/acct/acctcom /var/adm/pacct | more
ACCOUNTING RECORDS FROM: Tue Nov 14 10:38:20 2006
COMMAND START END REAL CPU MEAN
NAME USER TTYNAME TIME TIME (SECS) (SECS) SIZE(K)
#accton root pts/tc 10:38:20 10:38:20 0.02 0.01 0.00
#turnacct root pts/tc 10:38:20 10:38:20 0.08 0.01 0.00
rm root pts/tc 10:38:20 10:38:20 0.01 0.01 0.00
rm root pts/tc 10:38:20 10:38:20 0.01 0.01 0.00
rm root pts/tc 10:38:20 10:38:20 0.01 0.01 0.00
#remove root pts/tc 10:38:20 10:38:20 0.03 0.01 0.00
#startup root pts/tc 10:38:20 10:38:20 0.17 0.01 600.00
#acct root pts/tc 10:38:20 10:38:20 0.44 0.04 154.00
rm root pts/tc 10:38:26 10:38:26 0.01 0.01 0.00
bdf root pts/tc 10:38:29 10:38:29 0.04 0.03 292.00
ls root pts/tc 10:38:30 10:38:30 0.01 0.01 0.00
rm root pts/tc 10:38:32 10:38:32 0.01 0.01 0.00
cat root pts/tc 10:38:45 10:38:45 0.01 0.01 0.00
관련파일로는
관련된 파일로는
*** Some important files for process accounting.
/var/adm/acct/nite --Daily summary files created by runacct are kept here.
/var/adm/acct/sum --Cumulative summary files updated by runacct are kept here.
/var/adm/acct/fiscal --Periodic (monthly) summary files created by monacct are
stored here.
/var/adm/pacct## --The process accounting daily log file.
/var/adm/acct/nite/statefile --State that lasst runacct completed.
/var/adm/acct/nite/active --Log file of runacct.
/var/adm/acct/nite/lastdate --Log of when the last date runacct was run.
/var/adm/acct/nite/daycms --Process usage report.
이렇게 있습니다
도움이 되었면 좋겠네요 ^^
수고하세요
위에 명시된 의견은 Hewlett Packard Enterprise가 아닌 저자의 개인 의견입니다. 이 사이트를 사용하면 이용 약관에 동의하게되며 참여 규칙 .
뉴스 및 이벤트
© Copyright 2024 Hewlett Packard Enterprise Development LP