Troubleshooting In Solaris: Unable to get any outputs from prtdiag command.
Troubleshooting In Solaris: Unable to get any outputs from prtdiag command.
Prtdiag is one of the most useful command to find out the hardware details in Solaris OS. But sometimes in real scenarios you will find that Prtdiag command will hung or not execute at all. In that case you need to restart a service called picl.
Below is the practical example of the same.
1.) Sometimes when we ran prtdiag command, but it just stuck and wont show any output.
ROOT@yogesh-test:/root # prtdiag -v | more
^C
2.) I identified the Solaris version, so that I can restart the picl deamon accordingly.
ROOT@yogesh-test:/root # uname -a
SunOS yogesh-test 5.10 Generic_142900-02 sun4v sparc SUNW,Sun-Fire-T200
3.) As the OS is solaris 10 so we need to use SMF i.e svcs utility in order to restart any services.
ROOT@yogesh-test:/root # svcs -a | grep picl
online Jun_05 svc:/system/picl:default
ROOT@yogesh-test:/root # svcadm restart svc:/system/picl:default
ROOT@yogesh-test:/root # svcs -a | grep picl
online 21:34:42 svc:/system/picl:default
Note: In case of any version other than Solaris10 i.e previous solaris versions you need to restart picld deamon from /etc/init.d.
ROOT@yogesh-test:/etc/init.d # cd /etc/init.d
ROOT@yogesh-test:/etc/init.d # ls -lrt picld
-rwxr–r– 3 root sys 327 Apr 6 2002 picld
ROOT@yogesh-test:/etc/init.d #./picld stop; ./picld start
ROOT@yogesh-test:/etc/init.d # ps -ef | grep -i picl
root 466 1 0 Oct 15 ? 0:47 /usr/lib/picl/picld
root 9857 9837 0 22:13:47 pts/1 0:00 grep -i picl
4.) Now just run prtdiag and you will be able to get the output. :)
ROOT@yogesh-test:/root # prtdiag -v
System Configuration: Sun Microsystems sun4v Sun Fire T200
Memory size: 32640 Megabytes
================================ Virtual CPUs ================================
CPU ID Frequency Implementation Status
—— ——— ———————- ——-
0 1200 MHz SUNW,UltraSPARC-T1 on-line
1 1200 MHz SUNW,UltraSPARC-T1 on-line
2 1200 MHz SUNW,UltraSPARC-T1 on-line
3 1200 MHz SUNW,UltraSPARC-T1 on-line
4 1200 MHz SUNW,UltraSPARC-T1 on-line
5 1200 MHz SUNW,UltraSPARC-T1 on-line
6 1200 MHz SUNW,UltraSPARC-T1 on-line
7 1200 MHz SUNW,UltraSPARC-T1 on-line
8 1200 MHz SUNW,UltraSPARC-T1 on-line
9 1200 MHz SUNW,UltraSPARC-T1 on-line
10 1200 MHz SUNW,UltraSPARC-T1 on-line
11 1200 MHz SUNW,UltraSPARC-T1 on-line
12 1200 MHz SUNW,UltraSPARC-T1 on-line
13 1200 MHz SUNW,UltraSPARC-T1 on-line
14 1200 MHz SUNW,UltraSPARC-T1 on-line
15 1200 MHz SUNW,UltraSPARC-T1 on-line
16 1200 MHz SUNW,UltraSPARC-T1 on-line
17 1200 MHz SUNW,UltraSPARC-T1 on-line
18 1200 MHz SUNW,UltraSPARC-T1 on-line
19 1200 MHz SUNW,UltraSPARC-T1 on-line
20 1200 MHz SUNW,UltraSPARC-T1 on-line
21 1200 MHz SUNW,UltraSPARC-T1 on-line
22 1200 MHz SUNW,UltraSPARC-T1 on-line
23 1200 MHz SUNW,UltraSPARC-T1 on-line
24 1200 MHz SUNW,UltraSPARC-T1 on-line
25 1200 MHz SUNW,UltraSPARC-T1 on-line
26 1200 MHz SUNW,UltraSPARC-T1 on-line
27 1200 MHz SUNW,UltraSPARC-T1 on-line
28 1200 MHz SUNW,UltraSPARC-T1 on-line
29 1200 MHz SUNW,UltraSPARC-T1 on-line
30 1200 MHz SUNW,UltraSPARC-T1 on-line
31 1200 MHz SUNW,UltraSPARC-T1 on-line
======================= Physical Memory Configuration ========================
Segment Table:
————————————————————–
Base Segment Interleave Bank Contains
Address Size Factor Size Modules
————————————————————–
0x0 32 GB 4 4 GB MB/CMP0/CH0/R0/D0
MB/CMP0/CH0/R0/D1
4 GB MB/CMP0/CH0/R1/D0
MB/CMP0/CH0/R1/D1
4 GB MB/CMP0/CH1/R0/D0
MB/CMP0/CH1/R0/D1
4 GB MB/CMP0/CH1/R1/D0
MB/CMP0/CH1/R1/D1
4 GB MB/CMP0/CH2/R0/D0
MB/CMP0/CH2/R0/D1
4 GB MB/CMP0/CH2/R1/D0
MB/CMP0/CH2/R1/D1
4 GB MB/CMP0/CH3/R0/D0
MB/CMP0/CH3/R0/D1
4 GB MB/CMP0/CH3/R1/D0
MB/CMP0/CH3/R1/D1
========================= IO Configuration =========================
IO
Location Type Slot Path Name Model
———– —– —- ——————————————— ————————- ———
IOBD/NET0 PCIE IOBD /pci@780/pci@0/pci@1/network@0 network-pciex8086,105e
IOBD/NET1 PCIE IOBD /pci@780/pci@0/pci@1/network@0,1 network-pciex8086,105e
IOBD/PCIE PCIE IOBD /pci@780/pci@0/pci@9/scsi@0 scsi-pciex1000,56 LSI,1064E
IOBD/NET2 PCIE IOBD /pci@7c0/pci@0/pci@2/network@0 network-pciex8086,105e
IOBD/NET3 PCIE IOBD /pci@7c0/pci@0/pci@2/network@0,1 network-pciex8086,105e
IOBD/PCIX PCIX IOBD /pci@7c0/pci@0/pci@1/pci@0/isa@2 isa
IOBD/PCIX PCIX IOBD /pci@7c0/pci@0/pci@1/pci@0/usb@5 usb-pciclass,0c0310
IOBD/PCIX PCIX IOBD /pci@7c0/pci@0/pci@1/pci@0/usb@6 usb-pciclass,0c0310
IOBD/PCIX PCIX IOBD /pci@7c0/pci@0/pci@1/pci@0/ide@8 ide-pci10b9,5229
========================= HW Revisions =======================================
System PROM revisions:
———————-
OBP 4.30.4 2009/08/19 07:24
IO ASIC revisions:
——————
Location Path Device Revision
——————– ——————————————— —————————— ———
IOBD/SAS-SATA-HBA /pci@780 SUNW,sun4v-pci 0
IOBD/SAS-SATA-HBA /pci@780/pci@0 pciex10b5,8532.bc 188
IOBD/SAS-SATA-HBA /pci@780/pci@0/pci@9 pciex10b5,8532.bc 188
IOBD/IO-BRIDGE /pci@7c0 SUNW,sun4v-pci 0
IOBD/PCI-SWITCH1 /pci@7c0/pci@0 pciex10b5,8532.bc 188
IOBD/PCI-BRIDGE /pci@7c0/pci@0/pci@1/pci@0,2 pciex8086,341.9 9
IOBD/GBE0 /pci@780/pci@0/pci@1/network@0 pciex8086,105e.108e.105e.6 6
IOBD/GBE0 /pci@780/pci@0/pci@1/network@0,1 pciex8086,105e.108e.105e.6 6
IOBD/GBE1 /pci@7c0/pci@0/pci@2/network@0 pciex8086,105e.108e.105e.6 6
IOBD/GBE1 /pci@7c0/pci@0/pci@2/network@0,1 pciex8086,105e.108e.105e.6 6
IOBD/SAS-SATA-HBA /pci@780/pci@0/pci@9/scsi@0 pciex1000,56.1000.1000.2 2
ROOT@yogesh-test:/root #
thx u so much yogesh
@Sailaja, you are most welcome.
 i want  to learn vcs. idont have knowledge vcs plz help me
@Sailaja, at our gurkulindia you will find posts on clusters from basic to complex including theory (for base) and tasks (for dev/prod. servers). I would suggest you to start going through these posts which will help you to make your base prepare for Cluster. Below is the link for the same “http://gurkulindia.com/main/category/veritas/veritas-cluster-services/”. Hope this helps you.
thx u so much