prtconf 命令

用途

显示系统配置信息。

语法

Prtconf [ -c ] [ -k ] [ -L ] [ 命令 ] [ -s ] [ -v ]

描述

如果不带任何标志运行 prtconf 命令,会显示系统型号、机器序列号、处理器类型、处理器数目、处理器时钟速度、cpu 类型、总内存大小、网络信息、文件系统信息、调页空间信息和设备信息。

标志

描述
-c 显示 cpu 类型,例如 32-bit 或 64-bit。
-k 显示正在使用的内核,例如,32-bit 或 64-bit。
-L 如果它是 LPAR 分区,显示 LPAR 分区数和分区名,否则返回“-1 NULL”。
-M 显示系统内存。
-s 以兆赫兹为单位显示处理器时钟速度。
-v 显示设备的定制 VPD 对象类中找到的 VPD。

退出状态

0
命令成功完成。
>0
发生错误。

示例

  1. 要显示系统配置信息,请输入:
    prtconf
    系统显示与以下内容类似的消息:
    System Model: IBM,7025-F50
    Machine Serial Number: 1025778
    Processor Type: PowerPC_604
    Number Of Processors: 2
    Processor Clock Speed: 332 MHz
    CPU Type: 32-bit
    Kernel Type: 32-bit
    LPAR Info: -1 NULL
    Memory Size: 512 MB
    Good Memory Size: 512 MB
    Firmware Version: IBM,L02113
    Console Login: enable
    Auto Restart: false
    Full Core: false
    
    Network Information
    Host Name: vd01.austin.ibm.com
    IP Address: 9.3.207.112
    Sub Netmask: 255.255.255.128
    Gateway: 9.3.207.1
    Name Server: 9.3.199.2
    Domain Name: austin.ibm.com
    Paging Space Information
    
    
    Total Paging Space: 512MB
    Percent Used: 1%
    
    Volume Groups Information
    ============================================================================== 
    rootvg:
    PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
    hdisk0            active            537         394         107..43..29..107..108
    ==============================================================================
    
    INSTALLED RESOURCE LIST
    
    The following resources are installed on the machine.
    +/- = Added or deleted from Resource List.
    * = Diagnostic support not available.
    
    Model Architecture: chrp
    Model Implementation: Multiple Processor, PCI bus
    
    + sys0 00-00 System Object
    + sysplanar0 00-00 System Planar
    + mem0 00-00 Memory
    etc.
  2. 要显示处理器时钟速度,请输入:
    prtconf -s
    系统显示与以下内容类似的消息:
    Processor Clock Speed: 332 MHz
  3. 要显示定制数据库中所有物理设备的 VPD,请输入:
    prtconf -v
    系统显示与以下内容类似的消息:
    INSTALLED RESOURCE LIST WITH VPD
    
    The following resources are installed on your machine.
            
      Model Architecture: chrp
      Model Implementation: Uni-Processor, PCI bus
    
      sys0             P1-C1       System Object
      sysplanar0                   System Planar
      mem0                         Memory
      L2cache0                     L2 Cache
      proc0            P1-C1       Processor
    
            Device Specific.(YL)........P1-C1
    
      pci0             P1          PCI Bus
    
            Device Specific.(YL)........P1
    
      isa0             P1          ISA Bus
    
            Device Specific.(YL)........P1
    
      fda0             P1/D1       Standard I/O Diskette Adapter
    
            Device Specific.(YL)........P1/D1
    
      fd0              P1-D1       Diskette Drive
      siokma0          P1/K1       Keyboard/Mouse Adapter
    
            Device Specific.(YL)........P1/K1
    
      sioka0           P1-K1       Keyboard Adapter
      kbd0             P1-K1-Lkbd  PS/2 keyboard
      sioma0           P1-O1       Mouse Adapter
      mouse0           P1-O1-Lmouse3 button mouse
      siota0           P1/Q1       Tablet Adapter
    
            Device Specific.(YL)........P1/Q1
    
      paud0            P1/Q2       Ultimedia Integrated Audio
    
            Device Specific.(YL)........P1/Q2
    
      ppa0             P1/R1       CHRP IEEE1284 (ECP) Parallel Port Adapter
    
            Device Specific.(YL)........P1/R1
    
      sa0              P1/S1       Standard I/O Serial Port
    
            Device Specific.(YL)........P1/S1
    
      tty0             P1/S1-L0    Asynchronous Terminal
      sa1              P1/S2       Standard I/O Serial Port
    
            Device Specific.(YL)........P1/S2
    
      ent0             P1/E1       IBM 10/100 Mbps Ethernet PCI Adapter (23100020)
    
            Network Address.............0004AC2A0419
            Displayable Message.........PCI Ethernet Adapter (23100020) 
            Device Specific.(YL)........P1/E1
    
      scsi0            P1/Z1       Wide/Fast-20 SCSI I/O Controller
    
            Device Specific.(YL)........P1/Z1
    
      cd0              P1/Z1-A3    SCSI Multimedia CD-ROM Drive (650 MB)
    
            Manufacturer................IBM     
            Machine Type and Model......CDRM00203
            ROS Level and ID............1_00
            Device Specific.(Z0)........058002028F000018
            Part Number.................97H7608     
            EC Level....................F15213    
            FRU Number..................97H7610     
    
      hdisk0           P1/Z1-A5    16 Bit SCSI Disk Drive (4500 MB)
    
            Manufacturer................IBM     
            Machine Type and Model......DDRS-34560W     
            FRU Number..................83H7105     
            ROS Level and ID............53393847
            Serial Number...............RDHW5008
            EC Level....................F21433    
            Part Number.................03L5256     
            Device Specific.(Z0)........000002029F00003A
            Device Specific.(Z1)........00K0159S98G 
            Device Specific.(Z2)........0933
            Device Specific.(Z3)........0299 
            Device Specific.(Z4)........0001
            Device Specific.(Z5)........22
            Device Specific.(Z6)........F21390    
    
      bl0              P1.1-I2/G1  GXT255P Graphics Adapter
    
          GXT255P 2D Graphics Adapter:
            EC Level....................E76756
            FRU Number..................93H6267
            Manufacture ID..............IBM053
            Part Number.................93H6266
            Serial Number...............88074164
            Version.....................RS6K
            Displayable Message.........GXT255P
            ROM Level.(alterable).......02
            Product Specific.(DD).......00
            Product Specific.(DG).......00
            Device Specific.(YL)........P1.1-I2/G1
    
      pci1             P1.1        PCI Bus
    
            Device Specific.(YL)........P1.1
  4. 要显示正在使用的内核类型,请输入:
    prtconf -k
    系统显示如下的内核类型信息:
    Kernel Type: 32-bit
  5. 要显示内存,请输入:
    prtconf -m
    系统如下显示内存:
    Memory Size: 512 MB

文件

描述
/usr/sbin/prtconf 包含 prtconf 命令。