La commande 'lsconf', alias de 'prtconf' permet d'afficher les principales informations de la partition courante.
La syntaxe de la commande est montrée ci-dessous :
Usage: prtconf [-c] [-k] [-L] [-m] [-s] [-v]
Exemple ci-dessous de l'affichage de la commande 'lsconf'.
# lsconf
System Model: IBM,9117-570
Machine Serial Number: 0611220
Processor Type: PowerPC_POWER5
Processor Implementation Mode: POWER 5
Processor Version: PV_5_2
Number Of Processors: 1
Processor Clock Speed: 1900 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 10 vcadinet1
Memory Size: 5120 MB
Good Memory Size: 5120 MB
Platform Firmware level: SF240_382
Firmware Version: IBM,SF240_382
Console Login: enable
Auto Restart: true
Full Core: false
Network Information
Host Name: server1
IP Address: 192.168.208.13
Sub Netmask: 255.255.255.0
Gateway: 192.168.208.254
Name Server: 192.168.207.80
Domain Name:
Paging Space Information
Total Paging Space: 10240MB
Percent Used: 20%
Volume Groups Information
==============================================================================
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk0 active 559 275 110..00..00..53..112
==============================================================================
fsvg1_produits:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk6 active 127 8 00..00..00..00..08
==============================================================================
0516-010 : Volume group must be varied on; use varyonvg command.
==============================================================================
fsvg1_data:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk2 active 4091 0 00..00..00..00..00
hdisk10 active 3195 315 00..00..00..00..315
==============================================================================
fsvg2_appli:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk1 active 383 283 77..00..53..76..77
==============================================================================
fsvg2_data:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk4 active 511 89 00..00..00..00..89
==============================================================================
fsvg1_appli:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk5 active 3067 1554 125..00..202..613..614
==============================================================================
0516-010 : Volume group must be varied on; use varyonvg command.
==============================================================================
0516-010 : Volume group must be varied on; use varyonvg command.
==============================================================================
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
* pci4 U7879.001.DQDXTWP-P1 PCI Bus
* pci6 U7879.001.DQDXTWP-P1 PCI Bus
+ ent3 U7879.001.DQDXTWP-P1-C3-T1 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
+ ent4 U7879.001.DQDXTWP-P1-C3-T2 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
* vio0 Virtual I/O Bus
* ent5 U9117.570.0634C00-V10-C6-T1 Virtual I/O Ethernet Adapter (l-lan)
* ent0 U9117.570.0634C00-V10-C2-T1 Virtual I/O Ethernet Adapter (l-lan)
* vscsi1 U9117.570.0634C00-V10-C28-T1 Virtual SCSI Client Adapter
* hdisk0 U9117.570.0634C00-V10-C28-T1-L810000000000 Virtual SCSI Disk Drive
* vscsi0 U9117.570.0634C00-V10-C18-T1 Virtual SCSI Client Adapter
* hdisk10 U9117.570.0634C00-V10-C18-T1-L890000000000 Virtual SCSI Disk Drive
* hdisk7 U9117.570.0634C00-V10-C18-T1-L860000000000 Virtual SCSI Disk Drive
* hdisk5 U9117.570.0634C00-V10-C18-T1-L810000000000 Virtual SCSI Disk Drive
* hdisk6 U9117.570.0634C00-V10-C18-T1-L850000000000 Virtual SCSI Disk Drive
* hdisk3 U9117.570.0634C00-V10-C18-T1-L870000000000 Virtual SCSI Disk Drive
* hdisk4 U9117.570.0634C00-V10-C18-T1-L840000000000 Virtual SCSI Disk Drive
* hdisk1 U9117.570.0634C00-V10-C18-T1-L820000000000 Virtual SCSI Disk Drive
* hdisk2 U9117.570.0634C00-V10-C18-T1-L830000000000 Virtual SCSI Disk Drive
* vsa0 U9117.570.0634C00-V10-C0 LPAR Virtual Serial Adapter
* vty0 U9117.570.0634C00-V10-C0-L0 Asynchronous Terminal
+ L2cache0 L2 Cache
+ mem0 Memory
+ proc0 Processor
Ci-dessous l'extrait de la documentation IBM
Commands Reference, Volume 4, n - r
prtconf Command
Purpose
Displays system configuration information.
Syntax
prtconf [ -c ] [ -k ] [ -L ] [ -m ] [ -s ] [ -v ]
Description
If you run the prtconf command without any flags, it displays the system model, machine serial, processor type, number of processors, processor
clock speed, cpu type, total memory size, network information, filesystem information, paging space information, and devices information.
Flags
-c
Displays cpu type, for example, 32-bit or 64-bit.
-k
Display the kernel in use, for example, 32-bit or 64-bit.
-L
Displays LPAR partition number and partition name if this is an LPAR partition, otherwise returns "-1 NULL".
-m
Displays system memory.
-s
Displays processor clock speed in MegaHertz.
-v
Displays the VPD found in the Customized VPD object class for devices.
Exit Status
0
The command completed successfully.
>0
An error occurred.
Examples
1 To display the system configuration information, enter:
prtconf
The system displays a message similar to the following:
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 To display the processor clock speed, enter:
prtconf -s
The system displays a message similar to the following:
Processor Clock Speed: 332 MHz
3 To display the VPD for all physical devices in the Customized database, enter:
prtconf -v
The system displays a message similar to the following:
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 To display the kernel type in use, type:
prtconf -k
The system displays information for the kernel type as follows:
Kernel Type: 32-bit
5 To display memory, type:
prtconf -m
The system displays memory, as follows:
Memory Size: 512 MB
Files
/usr/sbin/prtconf
Contains the prtconf command.
Related Information
The lsattr command, lsconn command, lsdev command, lsparent command, lscfg command.