1.-bash-3.00$ prtconf | more //查看配置信息可以看到大部分配置信息。

-bash-3.00$ prtconf | more
System Model: IBM,9110-51A
Machine Serial Number: 0697AC0
Processor Type: PowerPC_POWER5
Number Of Processors: 2
Processor Clock Speed: 2097 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 1 06-97AC0
Memory Size: 1904 MB
Good Memory Size: 1904 MB
Platform Firmware level: Not Available
Firmware Version: IBM,SF240_332
Console Login: enable
Auto Restart: true
Full Core: false
 
Network Information
        Host Name: aix
        IP Address: 192.168.X.18
        Sub Netmask: 255.255.255.0
        Gateway: 192.168.1.1
        Name Server: XXX.XXX.30.29
        Domain Name:
...skipping...
System Model: IBM,9110-51A
Machine Serial Number: 0697AC0
Processor Type: PowerPC_POWER5
Number Of Processors: 2
Processor Clock Speed: 2097 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 1 06-97AC0
Memory Size: 1904 MB
Good Memory Size: 1904 MB
Platform Firmware level: Not Available
Firmware Version: IBM,SF240_332
Console Login: enable
Auto Restart: true
Full Core: false
 
Network Information
        Host Name: aix
        IP Address: 192.168.1.18
        Sub Netmask: 255.255.255.0
        Gateway: 192.168.1.1
        Name Server: XXX.XXX.30.29
        Domain Name:
 
Paging Space Information
        Total Paging Space: 512MB
        Percent Used: 9%
 
Volume Groups Information
==============================================================================
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0            active            546         417         109..90..00..109..109
==============================================================================
 
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                                              System Object
+ sysplanar0                                        System Planar
* vio0                                              Virtual I/O Bus
* vsa1             U788C.001.AAA8364-P1-T7          LPAR Virtual Serial Adapter
* vty1             U788C.001.AAA8364-P1-T7-L0       Asynchronous Terminal
* vsa0             U788C.001.AAA8364-P1-T6          LPAR Virtual Serial Adapter
* vty0             U788C.001.AAA8364-P1-T6-L0       Asynchronous Terminal
* pci2             U788C.001.AAA8364-P1             PCI Bus
* pci1             U788C.001.AAA8364-P1             PCI Bus
* pci0             U788C.001.AAA8364-P1             PCI Bus
* pci13            U788C.001.AAA8364-P1             PCI Bus
+ ent0             U788C.001.AAA8364-P1-T1          2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
+ ent1             U788C.001.AAA8364-P1-T2          2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
* pci14            U788C.001.AAA8364-P1             PCI Bus
+ usbhc0           U788C.001.AAA8364-P1             USB Host Controller (33103500)
+ usbhc1           U788C.001.AAA8364-P1             USB Host Controller (33103500)
* pci15            U788C.001.AAA8364-P1             PCI Bus
* ide1             U788C.001.AAA8364-P1-T12         ATA/IDE Controller Device
+ cd0              U788C.001.AAA8364-P1-D5          IDE DVD-ROM Drive
* pci16            U788C.001.AAA8364-P1             PCI Bus
+ sisscsia1        U788C.001.AAA8364-P1             PCI-X Dual Channel Ultra320 SCSI Adapter
+ scsi2            U788C.001.AAA8364-P1-T10         PCI-X Dual Channel Ultra320 SCSI Adapter bus
+ scsi3            U788C.001.AAA8364-P1-T11         PCI-X Dual Channel Ultra320 SCSI Adapter bus
+ hdisk1           U788C.001.AAA8364-P1-T11-L5-L0   16 Bit LVD SCSI Disk Drive (73400 MB)
+ hdisk0           U788C.001.AAA8364-P1-T11-L8-L0   16 Bit LVD SCSI Disk Drive (73400 MB)
+ ses1             U788C.001.AAA8364-P1-T11-L15-L0  SCSI Enclosure Services Device
* pci17            U788C.001.AAA8364-P1             PCI Bus
* pci18            U788C.001.AAA8364-P1-C14-C1      PCI Bus
+ lai1             U788C.001.AAA8364-P1-C14-C1-T1   GXT135P Graphics Adapter
+ L2cache0                                          L2 Cache
+ mem0                                              Memory
+ proc0                                             Processor
+ proc2                                             Processor
* mouse0           U788C.001.AAA8364-P1-T3-L1       USB mouse
* kbd0             U788C.001.AAA8364-P1-T4-L1       USB keyboard


2.-bash-3.00$ lsdev -Cc processor//查看系统有几个cpu
proc0 Available 00-00 Processor
proc2 Available 00-02 Processor

-bash-3.00$ lsdev -Cc disk//查看所有磁盘
hdisk0 Available 0G-08-01-8,0 16 Bit LVD SCSI Disk Drive
hdisk1 Available 0G-08-01-5,0 16 Bit LVD SCSI Disk Drive

-bash-3.00$ lsdev -Cc if//查看网络设备
en0 Available 0D-08 Standard Ethernet Network Interface
en1 Defined   0D-09 Standard Ethernet Network Interface
en2 Defined   0D-08 Standard Ethernet Network Interface
en3 Defined   0D-09 Standard Ethernet Network Interface
et0 Defined   0D-08 IEEE 802.3 Ethernet Network Interface
et1 Defined   0D-09 IEEE 802.3 Ethernet Network Interface
et2 Defined   0D-08 IEEE 802.3 Ethernet Network Interface
et3 Defined   0D-09 IEEE 802.3 Ethernet Network Interface
lo0 Available       Loopback Network Interface

-bash-3.00$ lsdev -Cc adapter//查看所有适配器
ent0      Available 0D-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
ent1      Available 0D-09 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
ide1      Available 0F-08 ATA/IDE Controller Device
lai1      Available 0I-00 GXT135P Graphics Adapter
sisscsia1 Available 0G-08 PCI-X Dual Channel Ultra320 SCSI Adapter
usbhc0    Available 0E-08 USB Host Controller (33103500)
usbhc1    Available 0E-09 USB Host Controller (33103500)
vsa0      Available       LPAR Virtual Serial Adapter
vsa1      Available       LPAR Virtual Serial Adapter

-bash-3.00$ lsattr -El proc0//查看cpu属性
frequency   2096901000     Processor Speed       False
smt_enabled true           Processor SMT enabled False
smt_threads 2              Processor SMT threads False
state       enable         Processor state       False
type        PowerPC_POWER5 Processor type        False

lscfg [-vps] [-l Name ]

-bash-3.00$ lscfg -vl hdisk0//查看hdisk0的序列号和属性
  hdisk0           U788C.001.AAA8364-P1-T11-L8-L0  16 Bit LVD SCSI Disk Drive (73400 MB)

        Manufacturer................IBM   H0
        Machine Type and Model......HUS153073VL3800
        FRU Number..................03N5282    
        ROS Level and ID............53343130
        Serial Number...............004F478B
        EC Level....................H17923Y  
        Part Number.................03N5281    
        Device Specific.(Z0)........000004129F00013A
        Device Specific.(Z1)........VBPSS410   
        Device Specific.(Z2)........0068
        Device Specific.(Z3)........08076
        Device Specific.(Z4)........0001
        Device Specific.(Z5)........22
        Device Specific.(Z6)........H17923Y  
        Brand.......................H0

-bash-3.00$ lscfg -vp -l hdisk1 //两种方法查看属性。
  hdisk1           U788C.001.AAA8364-P1-T11-L5-L0  16 Bit LVD SCSI Disk Drive (73400 MB)

        Manufacturer................IBM   H0
        Machine Type and Model......HUS153073VL3800
        FRU Number..................03N5282    
        ROS Level and ID............53343130
        Serial Number...............004F4A8F
        EC Level....................H17923Y  
        Part Number.................03N5281    
        Device Specific.(Z0)........000004129F00013A
        Device Specific.(Z1)........VBPSS410   
        Device Specific.(Z2)........0068
        Device Specific.(Z3)........08076
        Device Specific.(Z4)........0001
        Device Specific.(Z5)........22
        Device Specific.(Z6)........H17923Y  
        Brand.......................H0


  PLATFORM SPECIFIC

  Name:  sd
    Node:  sd
    Device Type:  block

3.-bash-3.00$ lsvg -o //查看激活的卷组
rootvg

 

4.-bash-3.00$ smit mktcpip//用smit来设置ip地址
                        Minimum Configuration & Startup

 To Delete existing configuration data, please use Further Configuration menus

Type or select values in entry fields.
Press Enter AFTER making all desired changes.
 
[MORE...2]                                              [Entry Fields]
  Network MASK (dotted decimal)                      [255.255.255.0]
* Network INTERFACE                                   en0
  NAMESERVER
           Internet ADDRESS (dotted decimal)         [xxx.xxx.30.29]
           DOMAIN Name                               []
  Default Gateway
       Address (dotted decimal or symbolic name)     [192.168.1.1]
       Cost                                          [0]                      #
       Do Active Dead Gateway Detection?              no                     +
  Your CABLE Type                                     N/A                    +
  START Now                                           no                     +
[BOTTOM]
 
F1=Help             F2=Refresh          F3=Cancel           F4=List
Esc+5=Reset         Esc+6=Command       Esc+7=Edit          Esc+8=Image      
Esc+9=Shell         Esc+0=Exit          Enter=Do