Oracle® Solaris 11.2 でのシステム情報、プロセス、およびパフォーマンスの管理

印刷ビューの終了

更新: 2014 年 9 月
 
 

システム情報の表示に使用されるコマンド

表 1-1  システム情報を表示するためのコマンド
コマンド
表示されるシステム情報
マニュアルページ
date
日付と時間
hostid
ホスト ID
isainfo
動作しているシステムのネイティブアプリケーションによってサポートされるビット数。ビット数は、トークンとしてスクリプトに渡すことができます。
isalist
プロセッサタイプ
prtconf
システム構成情報、インストールされたメモリー、デバイスのプロパティー、および製品名
prtdiag
障害の発生した現場交換可能ユニット (FRU) を含む、システムの構成および診断情報
psrinfo
プロセッサ情報
uname
オペレーティングシステム名、リリース、バージョン、ノード名、ハードウェア名、およびプロセッサタイプ

システムのリリース情報の表示

リリースバージョンを特定するには、/etc/release ファイルの内容を表示します。

$ cat /etc/release

日付と時間を表示する

システムクロックに従った現在の日付と時間を表示するには、date コマンドを使用します。

次の例は、date コマンドのサンプル出力を示します。

$ date
Fri Jun  1 16:07:44 MDT 2012
$

システムのホスト ID を表示する

ホスト ID を数値 (16 進) 形式で表示するには、hostid コマンドを使用します。

次の例は、hostid コマンドの出力を示します。

$ hostid
80a5d34c

システムのアーキテクチャータイプを表示する

isainfo コマンドを使用して、現在のオペレーティングシステムでサポートされているアプリケーションのネイティブ命令セットのアーキテクチャータイプと名前を表示します。

次のサンプル出力は、x86 ベースのシステムからのものです。

$ isainfo
amd64 i386

次のサンプル出力は、SPARC ベースのシステムからのものです。

$ isainfo
sparcv9 sparc

isainfo –v コマンドは、32 ビットおよび 64 ビットのアプリケーションサポートを表示します。たとえば、次のサンプル出力は、SPARC ベースのシステムからのものです。

$ isainfo -v
64-bit sparcv9 applications
        asi_blk_init
32-bit sparc applications
        asi_blk_init v8plus div32 mul32
#

次の例は、x86 ベースのシステムからの isainfo –v コマンドの出力を示します。

$ isainfo -v
64-bit amd64 applications
        sse4.1 ssse3 ahf cx16 sse3 sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu
32-bit i386 applications
        sse4.1 ssse3 ahf cx16 sse3 sse2 sse fxsr mmx cmov sep cx8 tsc fpu

isainfo(1) のマニュアルページを参照してください。

詳細は、 isainfo (1) のマニュアルページを参照してください。

システムのプロセッサタイプを表示する

isalist コマンドを使用して、システムのプロセッサタイプに関する情報を表示します。

The following sample output is from an x86 based system:
$ isalist
pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86

次のサンプル出力は、SPARC ベースのシステムからのものです。

$ isalist
sparcv9 sparcv8plus sparcv8 sparcv8-fsmuld sparcv7 sparc sparcv9+vis sparcv9+vis2 \
sparcv8plus+vis sparcv8plus+vis2

isalist(1) のマニュアルページを参照してください。

システムの製品名を表示する

システムの製品名を表示するには、–b オプションを付けて prtconf コマンドを使用します。

$ prtconf -b

詳細は、prtconf(1M) のマニュアルページを参照してください。

次の例は、SPARC ベースのシステムでの prtconf –b コマンドのサンプル出力を示しています。

$ prtconf -b
name:  ORCL,SPARC-T4-2
banner-name:  SPARC T4-2
compatible: 'sun4v'
$

次の例は、SPARC ベースのシステムでの prtconf –vb コマンドのサンプル出力を示しています。追加された –v オプションは、冗長出力を指定します。

$ prtconf -vb
name:  ORCL,SPARC-T3-4
banner-name:  SPARC T3-4
compatible: 'sun4v'
idprom: 01840014.4fa02d28.00000000.a02d28de.00000000.00000000.00000000.00000000
openprom model:  SUNW,4.33.0.b
openprom version: 'OBP 4.33.0.b 2011/05/16 16:26'

システムにインストールされているメモリーを表示する

システムにインストールされているメモリー容量を表示するには、prtconf コマンドと grep Memory コマンドを使用します。次の例は、grep Memory コマンドが prtconf コマンドからの出力を選択してメモリー情報のみを表示するサンプル出力を示しています。

$ prtconf | grep Memory
Memory size: 523776 Megabytes 

デバイスのデフォルトのプロパティー値とカスタマイズされたプロパティー値の表示

デバイスのデフォルトのプロパティー値とカスタマイズされたプロパティー値の両方を表示し、prtconf コマンドと –u オプションを使用できます。

$ prtconf -u

prtconf –u コマンドの出力には、システム上に存在するすべてのドライバのデフォルトのプロパティーとカスタマイズされたプロパティーが表示されます。

このオプションの詳細は、prtconf(1M) のマニュアルページを参照してください。

使用例 1-1  SPARC: デフォルトおよびカスタムのデバイスプロパティーを表示する

この例は、bge.conf ファイルのデフォルトプロパティーとカスタムプロパティーを示しています。ベンダーから提供された構成ファイルは /kernel ディレクトリと /platform ディレクトリにありますが、対応する修正されたドライバ構成ファイルは /etc/driver/drv にあります。

$ prtconf -u
System Configuration:  Oracle Corporation  sun4v
Memory size: 523776 Megabytes
System Peripherals (Software Nodes):

ORCL,SPARC-T3-4
    scsi_vhci, instance #0
        disk, instance #4
        disk, instance #5
        disk, instance #6
        disk, instance #8
        disk, instance #9
        disk, instance #10
        disk, instance #11
        disk, instance #12
    packages (driver not attached)
        SUNW,builtin-drivers (driver not attached)
        deblocker (driver not attached)
        disk-label (driver not attached)
        terminal-emulator (driver not attached)
        dropins (driver not attached)
        SUNW,asr (driver not attached)
        kbd-translator (driver not attached)
        obp-tftp (driver not attached)
        zfs-file-system (driver not attached)
        hsfs-file-system (driver not attached)
    chosen (driver not attached)
    openprom (driver not attached)
        client-services (driver not attached)
    options, instance #0
    aliases (driver not attached)
    memory (driver not attached)
    virtual-memory (driver not attached)
    iscsi-hba (driver not attached)
        disk, instance #0 (driver not attached)
    virtual-devices, instance #0
        flashprom (driver not attached)
        tpm, instance #0 (driver not attached)
        n2cp, instance #0
        ncp, instance #0
        random-number-generator, instance #0
        console, instance #0
        channel-devices, instance #0
            virtual-channel, instance #0
            virtual-channel, instance #1
            virtual-channel-client, instance #2
            virtual-channel-client, instance #3
            virtual-domain-service, instance #0
    cpu (driver not attached)
    cpu (driver not attached)
    cpu (driver not attached)
    cpu (driver not attached)
    cpu (driver not attached)
    cpu (driver not attached)
    cpu (driver not attached) 
使用例 1-2  x86: デフォルトおよびカスタムのデバイスプロパティーを表示する

この例は、bge.conf ファイルのデフォルトプロパティーとカスタムプロパティーを示しています。ベンダーから提供された構成ファイルは /kernel ディレクトリと /platform ディレクトリにありますが、対応する修正されたドライバ構成ファイルは /etc/driver/drv にあります。

$ prtconf -u
System Configuration:  Oracle Corporation  i86pc
Memory size: 8192 Megabytes
System Peripherals (Software Nodes):

i86pc
    scsi_vhci, instance #0
    pci, instance #0
        pci10de,5e (driver not attached)
        isa, instance #0
            asy, instance #0
            motherboard (driver not attached)
            pit_beep, instance #0
        pci10de,cb84 (driver not attached)
        pci108e,cb84, instance #0
            device, instance #0
                keyboard, instance #0
                mouse, instance #1
        pci108e,cb84, instance #0
        pci-ide, instance #0
            ide, instance #0
                sd, instance #0
            ide (driver not attached)
        pci10de,5c, instance #0
            display, instance #0
        pci10de,cb84, instance #0
        pci10de,5d (driver not attached)
        pci10de,5d (driver not attached)
        pci10de,5d (driver not attached)
        pci10de,5d (driver not attached)
        pci1022,1100, instance #0
        pci1022,1101, instance #1
        pci1022,1102, instance #2
        pci1022,1103 (driver not attached)
        pci1022,1100, instance #3
        pci1022,1101, instance #4
        pci1022,1102, instance #5
        pci1022,1103 (driver not attached)
    pci, instance #1
        pci10de,5e (driver not attached)
        pci10de,cb84 (driver not attached)
        pci10de,cb84, instance #1
        pci10de,5d (driver not attached)
        pci10de,5d (driver not attached)
        pci10de,5d (driver not attached)
        pci10de,5d (driver not attached)
        pci1022,7458, instance #1
        pci1022,7459 (driver not attached)
        pci1022,7458, instance #2
            pci8086,1011, instance #0
            pci8086,1011, instance #1
            pci1000,3060, instance #0
                sd, instance #1
                sd, instance #2
        pci1022,7459 (driver not attached)
    ioapics (driver not attached)
        ioapic, instance #0 (driver not attached)
        ioapic, instance #1 (driver not attached)
    fw, instance #0
        cpu (driver not attached)
        cpu (driver not attached)
        cpu (driver not attached)
        cpu (driver not attached)
        sb, instance #1
    used-resources (driver not attached)
    iscsi, instance #0
    fcoe, instance #0
    pseudo, instance #0
    options, instance #0
    xsvc, instance #0
    vga_arbiter, instance #0
使用例 1-3  x86: システム構成情報の表示

次の例は、x86 ベースのシステムで prtconf コマンドを –v オプションとともに使用して、システムに接続されているディスク、テープ、および DVD デバイスを識別する方法を示しています。このコマンドの出力では、デバイスが存在しないデバイスインスタンスの横に "driver not attached" メッセージが表示されます。

$ prtconf -v | more
System Configuration:  Oracle Corporation  i86pc
Memory size: 8192 Megabytes
System Peripherals (Software Nodes):

i86pc
    System properties:
        name='#size-cells' type=int items=1
            value=00000002
        name='#address-cells' type=int items=1
            value=00000003
        name='relative-addressing' type=int items=1
            value=00000001
        name='MMU_PAGEOFFSET' type=int items=1
            value=00000fff
        name='MMU_PAGESIZE' type=int items=1
            value=00001000
        name='PAGESIZE' type=int items=1
            value=00001000
        name='acpi-status' type=int items=1
            value=00000013
        name='biosdev-0x81' type=byte items=588
            value=01.38.74.0e.08.1e.db.e4.fe.00.d0.ed.fe.f8.6b.04.08.d3.db.e4.fe
.
.
.

詳細は、driver(4)driver.conf(4)、および prtconf(1M) のマニュアルページを参照してください。

管理者が提供する構成ファイルの作成方法の手順については、Oracle Solaris 11.2 でのデバイスの管理 の第 1 章Oracle Solaris でのデバイスの管理を参照してください。

システムの診断情報を表示する

prtdiag コマンドを使用して、システムの構成および診断情報を表示します。

$ prtdiag [-v] [-l]
–v

冗長モード。

–l

ログ出力。システムに障害やエラーがある場合は、この情報を syslogd (1M) のみに出力します。

使用例 1-4  SPARC: システムの診断情報を表示する

次の例は、SPARC ベースのシステムでの prtdiag – v コマンドの出力を示しています。簡潔にするために、この例は省略されています。

$ prtdiag -v | more
System Configuration:  Oracle Corporation  sun4v Sun Fire T200
Memory size: 16256 Megabytes

================================ Virtual CPUs ================================


CPU ID Frequency Implementation         Status
------ --------- ---------------------- -------
0      1200 MHz  SUNW,UltraSPARC-T1     on-line
1      1200 MHz  SUNW,UltraSPARC-T1     on-line
2      1200 MHz  SUNW,UltraSPARC-T1     on-line
3      1200 MHz  SUNW,UltraSPARC-T1     on-line
4      1200 MHz  SUNW,UltraSPARC-T1     on-line
5      1200 MHz  SUNW,UltraSPARC-T1     on-line
6      1200 MHz  SUNW,UltraSPARC-T1     on-line
.
.
.
======================= Physical Memory Configuration ========================
Segment Table:
--------------------------------------------------------------
Base           Segment  Interleave  Bank     Contains
Address        Size     Factor      Size     Modules
--------------------------------------------------------------
0x0            16 GB    4           2 GB     MB/CMP0/CH0/R0/D0
                                             MB/CMP0/CH0/R0/D1
                                    2 GB     MB/CMP0/CH0/R1/D0
                                             MB/CMP0/CH0/R1/D1
                                    2 GB     MB/CMP0/CH1/R0/D0
                                             MB/CMP0/CH1/R0/D1
                                    2 GB     MB/CMP0/CH1/R1/D0
.
.
System PROM revisions:
----------------------
OBP 4.30.4.d 2011/07/06 14:29

IO ASIC revisions:
------------------
Location             Path                                   Device
                  Revision
-------------------- ------------------
IOBD/IO-BRIDGE                                     /pci@780      SUNW,sun4v-pci     0
.
.
.
使用例 1-5  x86: システムの診断情報を表示する

次の例は、x86 ベースのシステムでの prtdiag – l コマンドの出力を示しています。

$ prtdiag -l
System Configuration: ... Sun Fire X4100 M2
BIOS Configuration: American Megatrends Inc. 0ABJX104 04/09/2009
BMC Configuration: IPMI 1.5 (KCS: Keyboard Controller Style)

==== Processor Sockets ====================================

Version                          Location Tag
-------------------------------- --------------------------
Dual-Core AMD Opteron(tm) Processor 2220 CPU 1
Dual-Core AMD Opteron(tm) Processor 2220 CPU 2

==== Memory Device Sockets ================================

Type        Status Set Device Locator      Bank Locator
----------- ------ --- ------------------- ----------------
unknown     empty  0   DIMM0                NODE0
unknown     empty  0   DIMM1                NODE0
DDR2        in use 0   DIMM2                NODE0
DDR2        in use 0   DIMM3                NODE0
unknown     empty  0   DIMM0                NODE1
unknown     empty  0   DIMM1                NODE1
DDR2        in use 0   DIMM2                NODE1
DDR2        in use 0   DIMM3                NODE1

==== On-Board Devices =====================================
 LSI serial-SCSI #1
 Gigabit Ethernet #1
 ATI Rage XL VGA

==== Upgradeable Slots ====================================

ID  Status    Type             Description
--- --------- ---------------- ----------------------------
1   available PCI Express      PCIExp SLOT0
2   available PCI Express      PCIExp SLOT1
3   available PCI-X            PCIX SLOT2
4   available PCI Express      PCIExp SLOT3
5   available PCI Express      PCIExp SLOT4
$