Chinaunix首页 | 论坛 | 博客
  • 博客访问: 510727
  • 博文数量: 65
  • 博客积分: 2925
  • 博客等级: 上尉
  • 技术积分: 1306
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-01 10:56
个人简介

2013

文章分类

全部博文(65)

分类: 系统运维

2011-04-11 15:28:28

errpt


self-made error notification

root@wjlcnaix:/tmp>cat kakaerror.sh
#!/usr/bin/ksh
errpt >/tmp/kakaerrlog.1
while true
do
sleep 30
errpt > /tmp/kakaerrlog.2
cmp -s /tmp/kakaerrlog.1 /tmp/kakaerrlog.2 && continue
print "check error log">/dev/console
errpt > /tmp/kakaerrlog.1
done



syslogd daemon

/etc/syslog.conf
# HACMP/ES for AIX Critical Messages
local0.crit /dev/console
# HACMP/ES for AIX Informational Messages
local0.info /var/hacmp/adm/cluster.log
# HACMP/ES for AIX Messages from Cluster Scripts
user.notice /var/hacmp/adm/cluster.log
# HACMP/ES for AIX Messages from Cluster Daemons
daemon.notice /var/hacmp/adm/cluster.log
auth.info     /var/adm/secure


refresh -s syslogd
root@wjlcnaix:/tmp>refresh -s syslogd
0513-095 The request for subsystem refresh was completed successfully.

Facilities
use the following system facility names in the selector field:
kern    kernel
user    user level
mail    mailsubsystem
daemon  system daemon
auth    security authorization
syslog  syslogd messages
lpr    Line-printer subsystem
news    News subsystem
uucp    uucp subsystem
*    all facilities


Priority levels
emerg Specifies emergency messages. These messages are not distributed to all
users.
alert Specifies important messages such as serious hardware errors. These
messages are distributed to all users.
crit Specifies critical messages, not classified as errors, such as improper login
attempts. These messages are sent to the system console.
err Specifies messages that represent error conditions.
warning Specifies messages for abnormal, but recoverable conditions.
notice Specifies important informational messages.
info Specifies information messages that are useful in analyzing the system.
debug Specifies debugging messages. If you are interested in all messages of a
certain facility, use this level.
none Excludes the selected facility.




diagnostics
/usr/lpp/diagnostics/bin/diagrpt -r
/usr/lpp/diagnostics/bin/diagrpt -a


root@wjlcnaix:/tmp>/usr/lpp/diagnostics/bin/diagrpt -r
ID     DATE/TIME            T RESOURCE_NAME    DESCRIPTION
DA00   Tue Feb 22 09:04:41  N fcs7             No Trouble Found
DA00   Tue Feb 22 09:04:40  N fcs3             No Trouble Found
DA00   Tue Feb 22 09:04:39  N fcs7             No Trouble Found
DC00   Tue Feb 22 09:04:38  I diag             Diagnostic Session was started
DA00   Tue Feb 22 09:04:38  N fcs3             No Trouble Found
DC00   Tue Feb 22 09:04:36  I diag             Diagnostic Session was started
DA01   Tue Feb 22 09:04:37  I ent3             Menu 25C1902
DA00   Tue Feb 22 09:04:37  N ent3             No Trouble Found
阅读(2229) | 评论(0) | 转发(0) |
0

上一篇:aix /etc/inittab info

下一篇:alog command and odm

给主人留下些什么吧!~~