Solaris hardware related commands

xiaoxiao2021-03-06  42

Digest:

http://chinaunix.net/jh/6/208547.html

http://www.chinaunix.net Author: solstice Posted: 2003-11-24 11:15:10

Because customers often load them, customers often ask such hardware issues such as some new machines, so after reading an article related to hardware, it is simple to sum up, I hope to help everyone!

Solaris hardware related commands

1. View the type and speed of the current processor (frequency)

# psrinfo -v

STATUS OF Processor 1 as of: 11/24/01 10:34:41

Processor Has Been on-line Since 11/24/01 10:18:20.

The Sparcv9 Processor Operates AT 432 MHz,

AND HAS A Sparcv9 floating pointsor.

STATUS OF Processor 3 as: 11/24/01 10:34:41

Processor Has Been on-line Since 11/24/01 10:18:22.

The Sparcv9 Processor Operates AT 432 MHz,

AND HAS A Sparcv9 floating pointsor.

2. Print the current OBP version number

# prtconf -v

OBP 3.20.0 2000/10/24 10:47

# / usr / platform / sun4u / sbin / prtdiag -v | grep OBP

OBP 3.20.0 2000/10/24 10:47 POST 6.1.0 2000/10/24 10:49

Ok. .version

Release 3.20 Version 0 Created 2000/10/24 10:47

OBP 3.20.0 2000/10/24 10:47

POST 6.1.0 2000/10/24 10:49

Obdiag 4.5.1 2000/10/24 10:48

3. View Hard Drive Physical Information (Vendor, RPM, Capacity)

# iostat -e

SD0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0

Vendor: Seagate Product: ST34371W Sun 4.2G Revision: 7462 Serial No: JDX394220KW EBC

Size: 4.29GB <4292075520 BYTES>

Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

Illegal Request: 0 Predictive Failure Analysis: 0

SD2 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0

Vendor: Fujitsu Product: Maj3364m Sun36G Revision: 0804 Serial No: 01M18144

Size: 36.42GB <36418595328 Bytes>

Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

Illegal Request: 0 Predictive Failure Analysis: 0

SD3 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0

Vendor: Fujitsu Product: Maj3364m Sun36G Revision: 0804 Serial No: 01M16199Size: 36.42GB <36418595328 BYTES>

Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

Illegal Request: 0 Predictive Failure Analysis: 0

SD21 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0

Vendor: Toshiba Product: DVD-ROM SD-M1401 Revision: 1007 Serial NO: 06/22/00

Size: 18446744073.71GB <-1 Bytes>

Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

Illegal Request: 0 Predictive Failure Analysis: 0

4. View the geometric parameters of the disk and partition information

# prtvtoc / dev / rdsk / c0t0d0s

* / dev / rdsk / c0t0d0s0 partition map

*

* DIMENSIONS:

* 512 BYTES / SECTOR

* 135 SECTORS / TRACK

* 16 TRACKS / CYLINDER

* 2160 SECTORS / CYLINDER

* 3882 Cylinders

* 3880 Accessible Cylinders

*

* Flags:

* 1: unmountable

* 10: Read-only

*

* UNALLOCATED SPACE:

* First Sector Last

* Sector Count Sector

* 8277120 103680 8380799

*

* First Sector Last

* Partition Tag Flags Sector Count Sector Mount Directory

0 2 00 0 2049840 2049839 /

1 3 01 2049840 615600 2665439

2 5 00 0 8380800 8380799

5 0 00 2665440 2458080 5123519 / OPT

6 4 00 5123520 3073680 8197199 / USR

7 8 00 8197200 79920 8277119 / EXPORT / HOME

5. Display I-node number that has been used and unused

# DF-F UFS -O I I

FileSystem iused ifree% iused mounted on

/ DEV / DSK / C0T0D0S0 7859 479821 2% /

/ DEV / DSK / C0T0D0S6 37763 339517 10% / USR

/ DEV / DSK / C0T0D0S5 722 301102 0% / OPT

/ DEV / DSK / C0T0D0S7 4 24380 0% / Export / Home

6. Show the highest CPU usage process # ps -eo pid, pcpu, args | sort 1n

This command outputs the PID, CPU usage and command description of the current system process, and sorted by PCPU

7. Displays the highest amount of memory

# ps - eo pid, vsz, args | sort 1n

This command outputs the PID, memory usage rate, and command description of the current system process, and sorted by vsz

8. 32-bit or 64-bit kernel mode for the launch system

64-bit mode

# isalist -v

SPARCV9 VIS SPARCV9 SPARCV8PLUS VIS SPARCV8PLUS SPARCV8 SPARCV8-FSMULD SPARCV7 SPARC

# isainfo -v

64-bit Sparcv9 Applications

32-bit Sparc Applications

# isainfo -b

64

Start 64-bit kernel mode

Ok. Boot kernel / sparcv9 / unix

32-bit mode

# isalist -v

Sparcv8plus Vis SPARCV8PLUS SPARCV8 SPARCV8-FSMULD SPARCV7 SPARC

# isainfo -v

32-bit Sparc Applications

# isainfo -b

32

Start 32-bit mode

Ok. Boot kernel / unix

9. View current OpenWindows version

# swrev -w

OpenWindows Version:

X11 Version 6.4.1 5 November 2001

10. View the current CDE version

# / usr / ccs / bin / what / usr / dt / bin / dtmail

/ USR / DT / BIN / DTMAIL:

CDE VERSION 1.4.6_06

CDeversion1.4.6_06

11. Determination of current display refresh frequencies

/ usr / sbin / ffbconfig -rev /?

Valid Values ​​for -res Option Are:

1024x768x60 [1]

1024x768x70 [1]

1024x768x75 [1] [2]

1024x768x77

1024x800x84

1152x900x66

1152x900x76

1280x800x76 [1] [2]

1280x1024x60 [1] [2]

1280x1024x67

1280x1024x76

1280x1024x85 [1] [2]

960x680x112s

960x680x108s

640x480x60 [1] [2]

640x480x60i [1]

768x575x50i [1]

1440x900x76 [1] [2]

1600x1000x66 [1] [2]

1600x1000x76 [1] [2]

1600x1280x76 [1] [2]

1920x1080x72 [1] [2]

1920x1080x76 [1] [2]

1920x1200x70 [1] [2]

1920x1200x75 [1] [2]

SVGA [1]

1152

1280

Stereo

VGA [1] [2]

NTSC [1]

PAL [1]

None

NOTES:

[1] Monitor Does Not Support this resolution.

[2] This version of ffb (ffb1) Does Not Support this Resolution

12. View system configuration

# / usr / platform / sun4u / sbin / prtdiag -v

System Configuration: Sun Microsystems Sun4u Sun Enterprise 450 (2 x UltraSparc-II 432MHz)

System Clock Frequency: 86 MHz

Memory Size: 1024 megabytes

========================= CPUS ========================================================================================================================================================================== =

Run Ecache CPU CPU

BRD CPU MODULE MHZ MB IMPL. MASK

--More--

- - - - -------- ---------- ----------

SYS 1 1 432 4.0 US-II 10.0

SYS 3 3 432 4.0 US-II 10.0

=========================MORY =========================================================================================================================================================================================== =

Interlv. Socket Size

Bank Group Name (MB) status

---- ---------- ---- ------

0 none 1901 256 ok

0 none 1902 256 ok

0 none 1903 256 ok

0 none 1904 256 ok

0 none 1701 256 ok

0 none 1702 256 ok

========================= io cards ======================================================================================================================================================================== ==

No Failures Found in System

===========================

========================= Environmental status ========================================================= == System Temperature (CELSIUS):

------------------------------

Ambient 20

CPU 1 40

CPU 3 40

==========================================================================================================================================================

Front Status Panel:

-------------------

KeySwitch position is in mode.

System LED Status: Power General Error Activity

[ON] [OFF] [ON]

Disk error thermal error Power Supply Error

[OFF] [OFF] [OFF]

Disk LED Status: OK = Green Error = YELLOW

Disk 2: [OK] Disk 3: [OK]

Disk 0: [OK] DISK 1: [EMPTY]

==========================================================================================================================================================

Fans:

-----

Fan Bank Speed ​​Status

-------- ----------

CPU 49 ok

PWR 31 OK

Power Supplies:

---------------

Supply Rating Temp Status

------ ------ ---- ------

0 550 W 33 OK

1 550 W 33 OK

========================= hw revisions ======================================================================================================================================================================================== ==

ASIC Revisions:

---------------

STP2223BGA: REV 4

STP2223BGA: REV 4STP2223BGA: REV 4

STP2003QFP: REV 1

STP2205BGA: REV 1

System PROM Revisions:

----------------------

OBP 3.20.0 2000/10/24 10:47 POST 6.1.0 2000/10/24 10:49

# sysdef

*

* Hostid

*

80FEE99B

*

* Sun4U Configuration

*

*

* DEVICES

*

Packages (Driver NOTTCHED)

Terminal-Emulator (Driver not attached)

Deblocker (Driver NOT ATACHED)

OBP-TFTP (Driver NOT ATTACHED)

Disk-label (Driver not attached)

Sunw, Builtin-Drivers (Driver NOTTATATACHED)

Sun-keyboard (driver not attached)

UFS-File-System (Driver NOT ATTACHED)

Chosen (Driver NOTTACHED)

OpenPROM (Driver NOT ATTACHED)

Client-Services (driver not attached)

Options, Instance # 0

Aliases (Driver not attached)

Memory (Driver NOT ATTACHED)

Virtual-Memory (Driver not attached)

Associations (Driver NOT ATTACHED)

Slot2disk (Driver NOT ATTACHED)

Slot2led (Driver NOT ATTACHED)

Slot2dev (Driver not attached)

PCI, Instance # 0

Ebus, instance # 0

AUXIO (Driver not attached)

......

# prtconf -d

System Configuration: Sun Microsystems Sun4u

Memory Size: 1024 megabytes

System Peripherals: Software Nodes:

Sunw, ULTRA-4

Packages

Terminal-Emulator

Deblocker

OBP-TFTP

Disk-label

Sunw, Builtin-Drivers

Sun-Keyboard

UFS-file-system

Chosen

OpenPROM

Client-Services

Options, Instance # 0 (Driver Name: Options)

Aliases

Memory

Virtual-memory

Associations

Slot2disk

Slot2led

Slot2dev

PCI, Instance # 0 (Driver Name: PCIPSY)

Ebus, Instance # 0 (Driver Name: EBUS)

AUXIO

Power (Driver Name: Power)

SUNW, PLL

SC

SE, Instance # 0 (Driver Name: SE)

Su, Instance # 0 (Driver Name: SU)

... ..

13. View patchs that have been applied in the current system

# swrev -p

Patch: 109618-01 Obsoletes: Requires: Incompatibles: SUNWEUXWE, SUN

Weuezt, Sunweudlg, Sunweudda

PATCH: 109889-01 Obsoletes: 109353-04 Requires: Incompatibles: package: sunwk

VMX, SUNWKVM, SUNWMDB, Sunwhea, Sunwpstl, SUNWPSTLX

PATCH: 110369-05 Obsoletes: 110709-02 Requires: Incompatibles: Packages: SUNWK

VMX, SUNWCARX, SUNWCSR

PATCH: 110370-03 Obsoletes: 111643-01 Requires: Incompatibles: package: sunwk

VMX, SUNWKVM, SUNWMDB, Sunwhea, Sunwpstl, SUNWPSTLX

PATCH: 110373-04 Obsoletes: 111508-01 Requires: Incompatibles: package: sunwk

VMX, SUNWCARX, SUNWCSR

Patch: 110374-08 Obsoletes: 110136-02, 110516-02 Requires: incompatibles: Pack

Ages: Sunwkvmx, SUNWCARX, SUNWCAR, SUNWCSR, SUNWMDBX

... ..

14. Show current run levels

# Who -rh

Name Line Time Idle Pid Comments

Run-Level 3 Nov 24 10:18 3 0 S

15. Find a package from a file

# pkgchk -lp / usr / lib / sendmail

Pathname: / usr / lib / sendmail

TYPE: Regular File

Expected Mode: 4555

Expected Owner: root

Expected Group: bin

Expected File Size (bytes): 761368

Expected Sum (1) of Contents: 41707

Expected Last Modification: Sep 24 03:13:13 2001

Reference by The Following package PACKAGES:

SUNWSNDMU

Current Status: Installed

16. View current bind version information

# nslookup -class = chaos -q = txt version.bind

Server: ns.lnpta.net.cn

Address: 202.96.64.68

Version.bind text = "9.2.1"

转载请注明原文地址:https://www.9cbs.com/read-57745.html

New Post(0)