免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 9288 | 回复: 6
打印 上一主题 下一主题

dmesg命令显示的信息,在哪个系统日志文件中? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-04 17:27 |只看该作者 |倒序浏览
是否可以用vi查看?

论坛徽章:
0
2 [报告]
发表于 2006-04-04 18:08 |只看该作者
more /var/adm/syslog/syslog.log

论坛徽章:
0
3 [报告]
发表于 2006-04-10 14:52 |只看该作者
/var/adm/syslog/syslog.log 日志中信息很有限,和dmesg命令所显示的内容不一致啊,比如:
查看/var/adm/syslog/syslog.log 中有以下信息:
Apr 10 11:59:52 ah344001 ftpd[23983]: exiting on signal 14
Apr 10 14:21:26 ah344001 rlogind[26619]: Login failure (exit(1) from login(1))
Apr 10 14:21:53 ah344001 rlogind[26624]: Login failure (exit(1) from login(1))
Apr 10 14:22:17 ah344001 rlogind[26629]: Login failure (exit(1) from login(1))
Apr 10 14:23:18 ah344001 rlogind[26637]: Login failure (exit(1) from login(1))
Apr 10 14:23:52 ah344001 rlogind[26642]: Login failure (exit(129) from login(1))
Apr 10 14:40:05 ah344001 su: + tc root-utility
Apr 10 14:41:11 ah344001 su: + tc root-root


而用dmesg命令查看有以下信息:

# dmesg

Apr 10 14:49
...
tem full (1 block extent)
msgcnt 140 vxfs: mesg 001: vx_nospace - /dev/vg00/lvol4 file system full (1 block extent)
msgcnt 142 vxfs: mesg 001: vx_nospace - /dev/vg00/lvol4 file system full (1 block extent)
msgcnt 144 vxfs: mesg 001: vx_nospace - /dev/vg00/lvol4 file system full (1 block extent)
msgcnt 146 vxfs: mesg 001: vx_nospace - /dev/vg00/lvol4 file system full (1 block extent)
msgcnt 148 vxfs: mesg 001: vx_nospace - /dev/vg00/lvol4 file system full (1 block extent)
msgcnt 150 vxfs: mesg 001: vx_nospace - /dev/vg00/lvol4 file system full (1 block extent)
msgcnt 152 vxfs: mesg 001: vx_nospace - /dev/vg00/lvol4 file system full (1 block extent)
msgcnt 154 vxfs: mesg 001: vx_nospace - /dev/vg00/lvol4 file system full (1 block extent)
msgcnt 156 vxfs: mesg 001: vx_nospace - /dev/vg00/lvol4 file system full (1 block extent)
msgcnt 158 vxfs: mesg 001: vx_nospace - /dev/vg00/lvol4 file system full (1 block extent)
0/4/1/1: Device at device id 0x10e55 has disappeared from Name Server GPN_FT
(FCP type) response, or its \'Port World-Wide Name\' has changed.
        device id = loop id, for private loop devices
        device id = nport ID, for fabric/public-loop devices
System won\'t be able to see LUNs behind this port.

0/4/1/1: Device at device id 0x10f55 has disappeared from Name Server GPN_FT
(FCP type) response, or its \'Port World-Wide Name\' has changed.
        device id = loop id, for private loop devices
        device id = nport ID, for fabric/public-loop devices
System won\'t be able to see LUNs behind this port.

0/4/1/1: Device at device id 0x10e55 is back in Name Server GPN_FT (FCP type)
response, and its \'Port World-Wide Name\' remains the same as
original.
        device id = loop id, for private loop devices
        device id = nport ID, for fabric/public-loop devices
System will be able to see LUNs behind this port
(might need to run \'ioscan\' first).

0/4/1/1: Device at device id 0x10f55 is back in Name Server GPN_FT (FCP type)
response, and its \'Port World-Wide Name\' remains the same as
original.
        device id = loop id, for private loop devices
        device id = nport ID, for fabric/public-loop devices
System will be able to see LUNs behind this port
(might need to run \'ioscan\' first).

0/4/1/1: Device at device id 0x10e55 has disappeared from Name Server GPN_FT
(FCP type) response, or its \'Port World-Wide Name\' has changed.
        device id = loop id, for private loop devices
        device id = nport ID, for fabric/public-loop devices
System won\'t be able to see LUNs behind this port.

0/4/1/1: Device at device id 0x10f55 has disappeared from Name Server GPN_FT
(FCP type) response, or its \'Port World-Wide Name\' has changed.
        device id = loop id, for private loop devices
        device id = nport ID, for fabric/public-loop devices
System won\'t be able to see LUNs behind this port.

0/4/1/1: Device at device id 0x10d00 has disappeared from Name Server GPN_FT
(FCP type) response, or its \'Port World-Wide Name\' has changed.
        device id = loop id, for private loop devices
        device id = nport ID, for fabric/public-loop devices
System won\'t be able to see LUNs behind this port.

0/4/1/1: Device at device id 0x10d00 is back in Name Server GPN_FT (FCP type)
response, and its \'Port World-Wide Name\' remains the same as
original.
        device id = loop id, for private loop devices
        device id = nport ID, for fabric/public-loop devices
System will be able to see LUNs behind this port
(might need to run \'ioscan\' first).

0/4/1/1: Device at device id 0x10e55 is back in Name Server GPN_FT (FCP type)
response, and its \'Port World-Wide Name\' remains the same as
original.
        device id = loop id, for private loop devices
        device id = nport ID, for fabric/public-loop devices
System will be able to see LUNs behind this port
(might need to run \'ioscan\' first).

0/4/1/1: Device at device id 0x10f55 is back in Name Server GPN_FT (FCP type)
response, and its \'Port World-Wide Name\' remains the same as
original.
        device id = loop id, for private loop devices
        device id = nport ID, for fabric/public-loop devices
System will be able to see LUNs behind this port
(might need to run \'ioscan\' first).

论坛徽章:
0
4 [报告]
发表于 2006-04-10 15:11 |只看该作者
/var/adm/messages
/var/adm/msgbuf

论坛徽章:
0
5 [报告]
发表于 2006-04-11 10:26 |只看该作者
精灵王,只有运行dmesg命令时才会生成上面的两个临时文件吧,平时哪有这两个文件啊
/var/adm/messages
/var/adm/msgbuf

论坛徽章:
0
6 [报告]
发表于 2006-04-12 10:45 |只看该作者
dmesg命令显示的不是即时的信息,要结合syslog里面的来看

论坛徽章:
2
技术图书徽章
日期:2013-11-15 00:23:25双鱼座
日期:2013-11-25 13:13:29
7 [报告]
发表于 2013-10-11 16:57 |只看该作者
笑别离 发表于 2006-04-12 10:45
dmesg命令显示的不是即时的信息,要结合syslog里面的来看


不是很明白 能详细讲解下吗
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP