Chapter 8. Open system servers - Linux for xSeries 281
You can use uptime to narrow down a problem to your server or the network. If, for example, a
network application is running poorly, run uptime and you will see if the system load is high or
not (see Example 8-8). If not, the problem may more likely be related to your network than to
your server.
Example 8-8 Sample output of uptime
7:22pm up 2:31, 3 users, load average:1.12, 1.04, 0.77
For more information about uptime, see the online help (uptime) or the man pages on uptime.
8.3.2 dmesg
With dmesg, you can determine what hardware is installed in your server. During every boot,
Linux checks your hardware and logs this information. You can view these logs using dmesg.
You can see information about the CPU, DS6000 disk subsystem, network adapters, and
amount of memory that is installed. Example 8-9 illustrates the output of the dmesg command.
Example 8-9 Sample output of dmesg
Linux version 2.4.7-10 (bhcompile@stripples.devel.redhat.com)(gcc version 2.96
20000731 (Red Hat Linux 7.1 2.96-98))#1 Thu Sep 6 17:27:27 EDT 2001
...
Initializing CPU#0
Detected 448.957 MHz processor.
...
Memory:252964k/262128k available (1269k kernel code,6844k reserved,90k data,
220k init,0k highmem)
...
CPU:Before vendor init,caps:0183fbff 00000000 00000000,vendor =0
CPU:L1 I cache:16K,L1 D cache:16K
CPU:L2 cache:512K
...
CPU:Intel Pentium II (Deschutes)stepping 02
...
SCSI subsystem driver Revision:1.00
(scsi0)<Adaptec AIC-7895 Ultra SCSI host adapter>found at PCI 0/6/1
(scsi0)Wide Channel B,SCSI ID=7,32/255 SCBs
(scsi0)Downloading sequencer code...383 instructions downloaded
(scsi1)<Adaptec AIC-7895 Ultra SCSI host adapter>found at PCI 0/6/0
(scsi1)Wide Channel A,SCSI ID=7,32/255 SCBs
(scsi1)Downloading sequencer code...383 instructions downloaded
scsi0 :Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI)5.2.4/5.2.0
<Adaptec AIC-7895 Ultra SCSI host adapter>
scsi1 :Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI)5.2.4/5.2.0
<Adaptec AIC-7895 Ultra SCSI host adapter>
scsi2 :IBM PCI ServeRAID 4.72.00 <ServeRAID 3H>
Vendor:IBM Model:SERVERAID Rev:1.0
Type:Direct-Access ANSI SCSI revision:01
Vendor:IBM Model:SERVERAID Rev:1.0
Type:Processor ANSI SCSI revision:01
Vendor:SDR Model:GEM200 Rev:2
Type:Processor ANSI SCSI revision:02
Attached scsi disk sda at scsi2,channel 0,id 0,lun 0
SCSI device sda:53313536 512-byte hdwr sectors (27297 MB)
Note: You can also use w, who, or finger instead of uptime. They also provide information
about who is currently logged onto the machine and what the user is doing.

Get IBM TotalStorage DS6000 Series: Performance Monitoring and Tuning now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.