闪电借款手续费多少:比较命令lscfg和lsdev

来源:百度文库 编辑:九乡新闻网 时间:2024/04/28 13:19:02
下面分别是2个命令在本系统的输出结果,为了比较方便,把2者列表中相同的条目合并到lscfg结果的列表中,并使用以下办法来识别1为lscfg结果,2为lsdev的结果。有几个发现:
1、  2个命令列出来的设备lscfg仅仅列出的是物理设备,lsdev会把物理和逻辑设备都列出来。比如ent0为物理设备,en0,et0是对应的逻辑设备。Lscfg会仅仅列出ent0。后者则把ent0、en0、et0都列了出来。
2、 2个命令都会列出设备的location code,但是使用的表示法不一样。Lscfg使用了物理位置编号,lsdev使用AIX系统位置编号。如
+ ent0      P1/E1(物理编号)       IBM 10/100 Mbps Ethernet PCI Adapter (23100020)
ent0   Available 10-60(系统编号)IBM 10/100 Mbps Ethernet PCI Adapter (23100020)
3、2个命令列表标题差异
lscfg :[DeviceName:Location Code: Description]
lsdev :[DeviceName:Status:Location Code:Description]
4、lscfg会列出系统一下体系方面的信息。比如chrp,pci结构
5、任何一个命令输出的DeviceName都可以作为lsattr命令可用的设备名来进行设备属性查询。
6、lscfg 命令参数为v :显示VPD;P:显示平台具体信息;r显示rspc系统上平台具体设备的信息。显示的内容就可以包括该物理设备的SN等信息,在这方面lsdev好像无能为力,看看下面的结果,你会发现对hdisk1的查询lsdev只是把这个设备的信息单独地列出来而已。这么看应该可以这样理解,lsdev只是提供查询设备的名称等简单的信息,就好像可以让用户知道有这么个物理(逻辑)设备存在。Lscfg可以把设备的外在属性列出来。性能属性就需要使用lsattr命令来列表了。
# lscfg -vpsl hdisk1
  hdisk1           P1/Z1-A8
        16 Bit LVD SCSI Disk Drive (9100 MB)
        Manufacturer................IBM
        Machine Type and Model......DPSS-309170N
        FRU Number..................07N3675
        ROS Level and ID............53393646
        Serial Number...............ZD1BB604
        (省略部分属性)
  PLATFORM SPECIFIC
  Name:  sd
    Node:  sd
    Device Type:  block
# lsdev -Cl hdisk1
hdisk1 Available 10-80-00-8,0 16 Bit LVD SCSI Disk Drive
7、进一步查询确认这些DevideName都来自ODM中的CuDv(或者PtDv,由lsdev的P或者C参数决定)类。
#odmget CuDv
CuDv:
    name = "sys0"
    status = 1
    chgstatus = 1
    ddins = "planar_pal_chrp"
    location = ""
    parent = ""
    connwhere = ""
    PdDvLn = "sys/node/chrp"
CuDv:
  name = "sysplanar0"
(省略余下条目)

以下为列表内容
lscfg
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: Uni-Processor, PCI bus
1+ sys0                         System Object
2sys0       Available              System Object
1+ sysplanar0                   System Planar
2sysplanar0 Available              System Planar
1* pci0             P1          PCI Bus
2pci0       Available              PCI Bus
1* isa0             P1          ISA Bus
2isa0       Available 10-58        ISA Bus
1+ fda0             P1/D1       Standard I/O Diskette Adapter
2fda0       Available 01-D1        Standard I/O Diskette Adapter
+ fd0              P1-D1       Diskette Drive
fd0        Available 01-D1-00-00  Diskette Drive
* siokma0          P1/K1       Keyboard/Mouse Adapter
siokma0    Available 01-K1        Keyboard/Mouse Adapter
+ sioka0           P1/K1       Keyboard Adapter
sioka0     Available 01-K1-00     Keyboard Adapter
+ sioma0           P1/K1       Mouse Adapter
  sioma0     Available 01-K1-01     Mouse Adapter
+ siota0           P1/Q1       Tablet Adapter
siota0     Available 01-Q1        Tablet Adapter
+ paud0            P1/Q2       Ultimedia Integrated Audio
paud0      Available 01-Q2        Ultimedia Integrated Audio
+ ppa0             P1/R1       CHRP IEEE1284 (ECP) Parallel Port Adapter
ppa0       Available 01-R1        CHRP IEEE1284 (ECP) Parallel Port Adapter
+ sa0              P1/S1       Standard I/O Serial Port
sa0        Available 01-S1        Standard I/O Serial Port
+ sa1              P1/S2       Standard I/O Serial Port
sa1        Available 01-S2        Standard I/O Serial Port
+ ent0             P1/E1       IBM 10/100 Mbps Ethernet PCI Adapter (23100020)
ent0       Available 10-60        IBM 10/100 Mbps Ethernet PCI Adapter (23100020)
+ scsi0            P1/Z1       Wide/Fast-20 SCSI I/O Controller
scsi0      Available 10-80        Wide/Fast-20 SCSI I/O Controller
+ hdisk0           P1/Z1-A0    Other SCSI Disk Drive
hdisk0     Available 10-80-00-0,0 Other SCSI Disk Drive
+ cd0              P1/Z1-A3    16 Bit SCSI Multimedia CD-ROM Drive (650 MB)
cd0        Available 10-80-00-3,0 16 Bit SCSI Multimedia CD-ROM Drive
+ hdisk1           P1/Z1-A8    16 Bit LVD SCSI Disk Drive (9100 MB)
hdisk1     Available 10-80-00-8,0 16 Bit LVD SCSI Disk Drive
+ mtn0             P1.1-I3/G1  GXT3000P Graphics Adapter
mtn0       Available 10-90        GXT3000P Graphics Adapter
* pci1             P1.1        PCI Bus
pci1       Defined   10-b8        PCI Bus
+ L2cache0                     L2 Cache
L2cache0   Available              L2 Cache
+ mem0                         Memory
mem0       Available              Memory
+ proc0            P1-C1       Processor
proc0      Available 00-00        Processor


lsdev –C
aio0       Defined                Asynchronous I/O (Legacy)
en0        Available 10-60        Standard Ethernet Network Interface
et0        Available 10-60        IEEE 802.3 Ethernet Network Interface
gxme0      Available              Graphics Data Transfer Assist Subsystem
hd1        Defined                Logical volume
hd2        Defined                Logical volume
hd3        Defined                Logical volume
hd4        Defined                Logical volume
hd5        Defined                Logical volume
hd6        Defined                Logical volume
hd8        Defined                Logical volume
hd10opt    Defined                Logical volume
hd9var     Defined                Logical volume
inet0      Available              Internet Network Extension
iscsi0     Available              iSCSI Protocol Device
kbd0       Defined   01-K1-00-00   PS/2 keyboard
lft0       Available              Low Function Terminal Subsystem
lo0        Available              Loopback Network Interface
lvdd       Available              LVM Device Driver
posix_aio0 Defined                Posix Asynchronous I/O
pty0       Available              Asynchronous Pseudo-Terminal
rcm0       Available              Rendering Context Manager Subsystem
rootvg     Defined                Volume group
testlv     Defined                Logical volume