ºìÁªLinuxÃÅ»§
Linux°ïÖú

AIXÈÕ־ϵͳ

·¢²¼Ê±¼ä:2007-04-28 00:35:42À´Ô´:ºìÁª×÷Õß:partnerDragon
ͨ³£ÎÒÃÇÔÚ½øÐзþÎñÆ÷µÄ½¡¿µÐÔ¼ì²é£¬ºÍÔÚ³öÏÖÎÊÌâµÄʱºò¶¼»áÈ¥¿¼ÂDz鿴ϵͳµÄÈÕÖ¾¡£
ÎÒÔÚѧϰaixµÄ¹ý³ÌÖз¢ÏÖ£¬aixµÄÈÕÖ¾¸úsolaris»òlinuxµÄÈÕÖ¾´æ´¢ºÍ²é¿´µÄ·½Ê½ÓÐ×ÅÏ൱´óµÄÇø±ð£¬ÎªÁËʹ×Ô¼º¶ÔaixµÄÈÕÖ¾ÈÏʶµÄ¸üϵͳ¾Í×ܽáÁËһϡ£
Ï൱һ²¿·ÖÊDzο¼µÄ ÓÚÄþ±ó¡¶AIX 5Lϵͳ¹ÜÀí¼¼Êõ¡·
1£®Ò»µ©ÏµÍ³µÄij¸ö¹¦ÄÜÄ£¿é¼ì²âµ½Ò»¸ö´íÎó»ò¶¨ÒåµÄÐèÒª¼Ç¼ÈÕÖ¾µÄʼþ£¬Ôò¼Ç¼µ½/dev/errorÉ豸£¬°ÑËü±£´æÔÚNVRAMÖУ¬ÕâÑù¿ÉÒÔ±£Ö¤¼´Ê¹ÔÚϵͳ±ÀÀ£µÄÇé¿öÏÂÒ²²»»á¶ªÊ§×îеĴíÎóÈÕÖ¾¡£
2£®Í¬Ê±£¬´íÎóÈÕÖ¾½ø³Ìerrdemon´Ó/dev/errorÎļþÖжÁÈ¡´íÎóÈÕÖ¾£¬È»ºó¸ù¾Ý´íÎóÄ£°æ¿â£¨/var/adm/ras/errtmpit£©ºÍ´íÎóÏûÏ¢¿â£¨/usr/lib/nls/msg/$LANGcodepoint.cat£© ¶ÔÆä½øÐд¦ÀíºóдÈëϵͳµÄ´íÎóÈÕÖ¾/var/adm/ras/errlogÖС£
´íÎóÈÕÖ¾½ø³ÌÓÉ/usr/lib/errdemonÃüÁîÆô¶¯£¬/usr/lib/errstopÍ£Ö¹£¬Ä¬ÈÏÊÇÆô¶¯µÄ¡£
ÒÔÉϲ¢²»ÊÇÖص㣬Á˽â¹ý³Ì¶øÒÑ
errdemon½ø³Ì£º
´Ó/dev/errorÂß¼­É豸ÎļþÖжÁÈ¡¼Í¼£¬È»ºóÔÚϵͳ´íÎóÈÕÖ¾Öд´½¨´íÎóÈÕÖ¾¼Í¼£¬ÏÔÈ»Õâ²ÅÊÇÖص㡣
ErrdemonµÄÅäÖãº
/usr/lib/errdemon ÃüÁî¿ÉÒÔÆô¶¯errdemon½ø³Ì£¬Í¬ÑùÎÒÃÇÒ²¿ÉÒÔͨ¹ýʹÓòÎÊýÀ´ÐÞ¸ÄÎÒÃǵÄerrdemon,ÏÔÈ»Èç¹ûÎÒÃDz»ÊÇÌ«Á˽⻹ÊÇϵͳ³õʼµÄÅäÖøüÊʺÏÎÒÃÇ£¡
ÀýÈ磺
/usr/lib/errdemon -s 20000 É趨ÎÒÃǵÄÈÕÖ¾Îļþ´óСΪ20000bytes
×î¿ÉÄÜÓõ½µÄ¿ÉÄܾÍÊÇ-l²ÎÊýÁË
/usr/lib/errdemon -l
# /usr/lib/errdemon -l
Error Log Attributes
--------------------------------------------
Log File /var/adm/ras/errlog
Log Size 1048576 bytes
Memory Buffer Size 16384 bytes
Duplicate Removal true
Duplicate Interval 100 milliseconds
Duplicate Error Maximum 1000
ÉÏÃæÏÔʾÎҵĴíÎóÈÕÖ¾ÎļþÊÇ/var/adm/ras/errlog£¬ÕâÒ²ÊÇϵͳĬÈϵĴíÎóÈÕÖ¾µÄ´æ·ÅλÖá£
¾ßÌåÆäËûµÄ²ÎÊý¿ÉÒԲο´man Êֲᡣ
²é¿´´íÎóÈÕÖ¾:errptÃüÁî
ÓÃmore»òÕßÆäËûÎı¾µÄ²é¿´ÃüÁîÀ´´ò¿ªerrlogÎļþÎÒÃÇ¿´µ½µÄÖ»ÊÇÒ»¶ÔÂÒÂ룬ΪÁËÄܹ»²é¿´´íÎóÈÕÖ¾ÎļþÐèҪʹÓÃaixµÄerrptÃüÁî¡£
ʹÓÃerrptÃüÁî²é¿´ÈÕÖ¾,¿ÉÄܸù¾ÝʹÓõIJÎÊýÀ´È·¶¨Êä³öʲôÑùµÄÈÕÖ¾£¬ÉõÖÁÅÅÐòµÄ·½Ê½£¬ÕâÊÇʹÓô¿Îı¾µÄÈÕÖ¾²»ÄÜ×öµ½µÄ£¬»òÕß˵²»ÄÜÇáÒ××öµ½µÄ¡£
ÏÂÃæÎÒÃÇÀ´¿´errptÃüÁîµÄʹÓá£
# errpt
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
9DBCFDEE 0109034400 T O errdemon ERROR LOGGING TURNED ON
192AC071 0109034300 T O errdemon ERROR LOGGING TURNED OFF
C092AFE4 0109033500 I O ctcasd ctcasd Daemon Started
A6DF45AA 0109033500 I O RMCdaemon The daemon is started.
9DBCFDEE 0109033400 T O errdemon ERROR LOGGING TURNED ON
192AC071 0106130900 T O errdemon ERROR LOGGING TURNED OFF
369D049B 0106082400 I O SYSPFS UNABLE TO ALLOCATE SPACE IN FILE SYSTE
ÕâÀïµÄÊä³ö·ÖΪÁùÁÐÒÀ´ÎΪ£º
1£®´íÎó±êʾ·ûIDENTIFIER£º²¢²»Î¨Ò»£¬ÓÉËüÀ´È·¶¨Ê¹ÓõĴíÎóÄ£°å£¬ÏÔȻͬһÖÖ´íÎóµÄIDENTIFIERÊÇÏàͬµÄ¡£
2£®Ê±¼ä´ÁTIMESTAMP£º´íÎó·¢ÉúµÄʱ¼ä£¬MMDDhhmmYY,ÒÀ´Î±íʾÔÂÈÕʱ·ÖÄê¡£
3£®ÀàÐÍTYPE£º´íÎóµÄÀàÐÍ£¬»òÕß˵ÑÏÖصij̶ȡ£
·ÖΪ6¸ö£º
PEND É豸»ò¹¦ÄÜ×é¼þ¿ÉÄܶªÊ§ ¼òдP
PERF ÐÔÄÜÑÏÖØϽµ P
PERM Ó²¼þÉ豸»òÈí¼þÄ£¿éË𻵣¬È·ÕïÁ赀 P
TEMP ÁÙʱÐÔ´íÎ󣬾­¹ýÖØÊÔºóÒѾ­»Ö¸´Õý³£ T
INFO Ò»°ãÏûÏ¢£¬²»ÊÇ´íÎó I
UNKN ²»ÄÜÈ·¶¨´íÎóµÄÑÏÖØÐÔ U
4£®ÖÖÀàCLASS c:Ö¸³ö´íÎóÔ´
H Ó²¼þ»ò½éÖʹÊÕÏ
S Èí¼þ¹ÊÕÏ
O ÈËΪ´íÎó
U ²»ÄÜÈ·¶¨
5£® ×ÊÔ´ÃûRESOURCE_NAME
×î³õ¼ì²âµ½´íÎóµÄ×ÊÔ´ÃûÈí¼þ»òÕßÓ²¼þ£¬²¢²»´ú±íÕâ¸ö×ÊÔ´ÓÐÎÊÌ⣬¶øÖ»ÊÇ×îÏÈÔÚËü·¢Ïֵġ£
6£®ÃèÊö
ÏÔʾÏêϸµÄÈÕÖ¾ÐÅÏ¢
# errpt -a|more
Standard input
---------------------------------------------------------------------------
Standard input
LABEL: ERRLOG_ON
IDENTIFIER: 9DBCFDEE
Date/Time: Sun Jan 9 03:44:04 BEIS
Sequence Number: 309
Machine Id: 004250B94C00
Node Id: ibm-5L
Class: O
Type: TEMP
Resource Name: errdemon
Description
ERROR LOGGING TURNED ON
Probable Causes
ERRDEMON STARTED AUTOMATICALLY
User Causes
/USR/LIB/ERRDEMON COMMAND
Recommended Actions
NONE
ÆäËü
Ö¸¶¨ÈÕÖ¾Îļþ -I¿ÉÒÔÓÃÀ´²é¿´Ò»¸ö·ÇerrdemonÖ¸¶¨Î»ÖõÄÈÕÖ¾Îļþ£¬ÀýÈçij¸öÈÕÖ¾Îļþ±¸·Ý¡£
-t ²ÎÊý£¬Ö»ÏÔʾ-t²ÎÊýÖ¸¶¨µÄ´íÎóÀàÐÍTYPE¡£
-s ÏÔʾָ¶¨Ê±¼äÖ®ºóµÄÈÕÖ¾Îļþ.
-d Ö¸¶¨ÖÖÀàCLASS.
ÏêϸµÄ²ÎÊýÖ»ÄÜ¿´man ÊÖ²áÁË
# errpt -a -j 74533D1A
# errpt -s 0108100100
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
9DBCFDEE 0109034400 T O errdemon ERROR LOGGING TURNED ON
192AC071 0109034300 T O errdemon ERROR LOGGING TURNED OFF
C092AFE4 0109033500 I O ctcasd ctcasd Daemon Started
A6DF45AA 0109033500 I O RMCdaemon The daemon is started.
9DBCFDEE 0109033400 T O errdemon ERROR LOGGING TURNED ON
ÈÕÖ¾µÄÇåÀí
errclearÃüÁî¿ÉÒÔÓÃÀ´ÇåÀí´íÎóÈÕÖ¾
²¢ÇÒĬÈÏÇé¿öÏÂcron»áÿÌìÇåÀí´íÎóÈÕÖ¾
# crontab -l
0 11 * * * /usr/bin/errclear -d S,O 30
0 12 * * * /usr/bin/errclear -d H 90
0 15 * * * /usr/lib/ras/dumpcheck >;/dev/null 2>;&1
ÏÔÈ»£¬ÕÒÉÏÃæµÄÀý×Ó£¬S,O ÀàµÄ´íÎó»á±£Áô30Ì죬¶øHµÄ´íÎó»á±£Áô90Ìì
errclear 0 ɾ³ý¶àÓмǼ
errclear 7 ɾ³ý7ÌìÒÔÇ°µÄ¼Ç¼
smit errclear
syslogd
ÐÅÏ¢Àà±ð.´íÎóµÈ¼¶ ¼Ç¼µÄλÖÃ
ÆäÖÐ,¸÷ÏîµÄº¬Òå
ÐÅÏ¢Àà±ð
auth used by authorization systems (login)
cron used for the cron and at systems
daemon system/netword daemon
kern produced by kernel messages
lpr printing system
mail mail system
mark internally used for time stamps
news reserved for the news system
user default facility, used for any program
uucp reserved for the uucp system
´íÎóµÈ¼¶
debug normally used for debugging
info informational messages
notice conditions that may require attention
Warning any warnings
err any errors
crit critical conditions like hardware problems
Alert any condition that demand immediate attention
emerg any emergency condition
none Do not send messages from the indicated f
acility to the selected file.
¼Ç¼µÄλÖÃ
¿ÉÒÔÊDZ¾µØµÄÎļþ£¨°üÀ¨É豸ÎļþÈç/dev/console£©»òÔ¶³ÌsyslogÈÕÖ¾·þÎñÆ÷¡£
cron.err /var/cronerr.log
¶¨Òå¼Ç¼cronµÄerrÐÅÏ¢µ½/var/cronerr.logÎļþ
¾ßÌåsyslogµÄ¾ßÌåÅäÖã¬ÍøÉϱéµØ¶¼ÊÇ¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ