SSブログ

sysinfo (2009/10/27) [FreeBSD]

ports/sysutils/sysinfoって追加されてるの知ってました?
簡単に言うと、お手軽システムレポート取得機能みたいな感じです。今まではシステムに問題があったとき、個別コマンドをぺちぺち叩いてログ取得をやっていたわけですが、だったら共通コマンドにしちゃって一式ずらっと取得できるようにしちゃおう、というようなコマンドです。まぁCisco機器のshow tech-supportみたいなものですね。

で、コマンドを叩いてみたのですが、それなりに面白いログが取れるようです。(基本的にこのコマンドでしか取れないというログはないはず)
atom# sysinfo cpu
Generated by SysInfo v1.0.1 by Daniel Gerzo

CPU information

Machine class:  i386
CPU Model:      Intel(R) Atom(TM) CPU  330   @ 1.60GHz
No. of Cores:   4
Cores per CPU:  2
2
2

WARNING: Your CPU supports amd64 architecture, however you are running i386.
WARNING: You may want to switch to amd64 to get a better performance.

CPU usage statistics:
CPU:  0.2% user,  0.0% nice,  2.1% system,  0.0% interrupt, 97.7% idle

atom# sysinfo bios
Generated by SysInfo v1.0.1 by Daniel Gerzo

BIOS information

Vendor: Intel Corp.
Version: LF94510J.86A.0229.2009.0729.0209
Release Date: 07/29/2009
BIOS Revision: 0.0
Firmware Revision: 0.0

INFO: Run `dmidecode -t bios` to see further information.

atom# sysinfo mem
Generated by SysInfo v1.0.1 by Daniel Gerzo

RAM information

Memory information from dmidecode(8)
Maximum Capacity: 2 GB
Number Of Devices: 1

INFO: Run `dmidecode -t memory` to see further information.

System memory summary
Total real memory available:    2029 MB
Logically used memory:          612 MB
Logically available memory:     1417 MB

Swap information
Device          1K-blocks     Used    Avail Capacity
/dev/ad0s1b       1048576     100K     1.0G     0%


共通テーマ:日記・雑感