IBM RS/6000 SP2 ¼öÆÛÄÄÇ»ÅÍ

2002/01/12(01:12) from 210.117.182.149
ÀÛ¼ºÀÚ : °­ÁÙ±â (jkkang65@hanmail.net) Á¶È¸¼ö : 1565 , ÁÙ¼ö : 44
Re: [PSSP] Accounting ¼³Á¤Çϱâ - µÎ¹ø°
# crontab -l
À» Çϸé
0 4 * * 1-6 /usr/lpp/ssp/bin/crunacct 2>/var/adm/cacct/nite/accterr
°¡ ¸ÅÀÏ 00:04 ¿¡ µ¹°Ô µÇ¾î ÀÖ½À´Ï´Ù. ÀÌ°ÍÀÌ °¢ ³ëµåÀÇ account µ¥ÀÌŸ¸¦ ¼öÁýÇÕ´Ï´Ù.

cws ÀÇ /var/adm/cacct ¿¡¼­ º¸¸é active* ÆÄÀÏÀÌ ¸¹½À´Ï´Ù.
active ´ÙÀ½¿¡ ³ª¿À´Â ³¯Â¥ÀÇ ¶§¿¡ crunacct°¡ Àß µ¹¾Æ°¡Áö ¾Ê¾ÒÀ» °Ì´Ï´Ù.
±× ³»¿ëÀ» º¸¸é
See /usr/adm/cacct/statefile and the /usr/adm/cacct/active file for the previo.
Rerun with -r option after correcting the problem
¶ó°í µÇ¾î ÀÖ½À´Ï´Ù.
crunacct°¡ Àß µ¹¾Æ°¡¸é ³ªÁß¿¡ statefile ÆÄÀÏ¿¡ complete À̶ó°í µÇ¾î ÀÖ½À´Ï´Ù.
ÇÏÁö¸¸ ÇöÀç´Â
STATE
ÀÔ´Ï´Ù.
±×¸®°í lastcycle°ú lastdateÀº
cws:/var/adm/cacct> cat lastcycle lastdate
20010628
20010630
ÀÔ´Ï´Ù.

¸ñÇ¥ : 8¿ù 2ÀϺÎÅÍ cws¿¡¼­ °¢ ³ëµåÀÇ accounting data ¸¦ Á¤»óÀûÀ¸·Î ¼öÁýÇÒ ¼ö ÀÖµµ·Ï Çϱâ

on cws
1. /var/adm/cacct¿¡¼­ active·Î ½ÃÀ۵Ǵ ¸ðµç ÆÄÀÏÀ» »èÁ¦ÇÕ´Ï´Ù.
2. /var/adm/cacct¿¡¼­ lastcycle°ú lastdate¸¦ 20010801 ·Î ¹Ù²ß´Ï´Ù.
(8¿ù2ÀÏ 00:04 ¶§¿¡ crunacct°¡ ½ÃÀÛµÉ ¶§¸¦ À§ÇÔÀÔ´Ï´Ù.)
3. /var/adm/cacct/statefile À» »èÁ¦ÇÕ´Ï´Ù.
4. /var/adm/cacct/sum/tmploginlog ÆÄÀÏÀÌ ÀÖÀ¸¸é »èÁ¦ÇÕ´Ï´Ù.

TI Note: crunacct will fail if it has already been run on
TI     the day you issue the command, which it may have
TI     been, since there is a crontab entry for it.
TI     To execute it a 2nd time, you first need to go to
TI     to the nodes, rm /var/adm/acct/nite/statefile and
TI     change the date in /var/adm/acct/nite/lastdate
TI     to the previous day.  Then on the node, issue:
TI     /usr/lpp/ssp/bin/nrunacct 2>/var/adm/acct/nite/accterr
TI     On the accounting_master node, remove
TI      and change
TI     the date in /var/adm/cacct/lastdate and
TI     /var/adm/cacct/lastcycle to the previous day.
TI     Then issue the /usr/lpp/ssp/bin/crunacct
TI     /var/adm/cacct/sum/tmploginlog  =>remove

Modify Delete Post Reply Backward Forward List
Powered by Kang Jul Ki