Prtdiag is Not working in Solaris 8 Ver

Hello Guys, :confused:

I have tried Up to my Levels

pls help me if u know any solution

Pls look out the following O/P,
Log Messages

SUN> pwd
/usr/platform/SUNW,Sun-Fire-V240/sbin
SUN>
SUN>
SUN> prtdiag -v
bash: prtdiag: command not found
SUN>

SUN> pwd
/usr/platform/sun4u/sbin
SUN> ls
eeprom prtdiag wrsmconf wrsmstat
SUN> prtdiag -v
ksh: prtdiag: not found
SUN> prtdiag
ksh: prtdiag: not found
SUN>

SUNFSD26> cat /etc/release
Solaris 8 HW 7/03 s28s_hw3wos_05a SPARC
Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
Assembled 11 June 2003
SUNFSD26>

SUN> ./prtdiag -v
picl_initialize failed: General system failure
SUN>

The patch which is used for prtdiag

SUN> pkginfo -l SUNWkvm
PKGINST: SUNWkvm
NAME: Core Architecture, (Kvm)
CATEGORY: system
ARCH: sparc.sun4u
VERSION: 11.8.0,REV=2000.01.08.18.12
BASEDIR: /
VENDOR: Sun Microsystems, Inc.
DESC: core software for a specific hardware platform group
PSTAMP: on28-patch20031120190653
INSTDATE: Jan 13 2006 17:15
HOTLINE: Please contact your local service provider
STATUS: completely installed
FILES: 226 installed pathnames
49 shared pathnames
54 directories
10 executables
3 setuid/setgid executables
1645 blocks used (approx)

SUN>

Thanks and rgds

Suresh

Have you try typing the whole path?

/usr/platform/sun4u/sbin/prtdiag

This should work..

/usr/platform/`uname -i`/sbin/prtdiag -v

Oh.. I just saw the error you are getting...

Try running it as root.
If this works then check the permisions on /var/run/picld_door

Running JASS sometimes does this, the JASS finish script sets default CMASK to 027.

The permisions should be set to 444
ie:
ls -l /var/run/picld_door
Dr--r--r-- 1 root root 0 Aug 27 07:40 /var/run/picld_door

This is the fix:

chmod 444 /var/run/picld_door

it is working If we give the full path.

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

its not working If i give only "prtdiag -v"

Can I have a reason for this. It requires any Patch.

and the system is getting very slow.

I have checked this also

SUN> ls -l picld*
-rwxr--r-- 3 root sys 328 Jul 5 2000 picld
SUNFSD26> chmod

SUN> ls -l picld*
Dr--r--r-- 1 root other 0 Nov 20 04:50 picld_door

SUN> chmod 444 /var/run/picld_door

SUN> ls -l picld*
Dr--r--r-- 1 root other 0 Nov 20 04:50 picld_door
SUN> pwd

This is not what you had in your first post..
In your first post using the full path didn't work and you had the error: picl_initialize failed: General system failure

The problem you are now describing is related to your path.

No patch is required, all you need to do is add /usr/platform/sun4u/sbin/ to your path variable..

To check you path type:
echo $PATH

This is indeed correct behaviour for Solaris 8. From solaris 9 it can be run from /sbin and hence is in the default path for root.

I've had this problem before and I've discovered that sometimes all that needs to be done is that you need to start picld.

If /var/run/picld_door is not present, and 'ps -ef | fgrep picld' returns nothing, then doing the following may fix your problem:

/etc/init.d/picld start