Operating System - HP-UX
1752786 Members
6010 Online
108789 Solutions
New Discussion юеВ

Porting psrinfo (TRU64-HP-UX)

 
Ravindra_
Advisor

Porting psrinfo (TRU64-HP-UX)

Hello,

I have following snippet on Tru64 to check processors

# /usr/sbin/psrinfo | \
# while read proc state dummy
# do
# ((ctr = ctr + 1))
# if [ "$state" != "on-line" ]
#
# then
# echo "WARNING: Processor $proc is OFFLINE. It wil be re-enabled "
# /usr/sbin/online $proc
# err=$TRUE
# ((ctr = ctr - 1))

# fi
# done

Now my system is migrated on HP-UX 11.23 and I want to port this code.

I have tried to check with top, mpched, sar, mpctl but I could not got exact porting.
Could you suggest anything?
2 REPLIES 2

Re: Porting psrinfo (TRU64-HP-UX)

Ravindra

Can you take a step back here - what excatly are you trying to achieve. This code looks to me like it would on-line and off-line CPUs it finds. Maybe there's a good reason to do that on Tru64, but I'm struggling to think of any on HP-UX. The only way a processor might be marked as offline is if the OS beleives the CPU is failing. In these sceanrios, you wouldn't want to re-enable the CPU anyway - you'd want to shutdown the box and replace the failing CPU when you can.

So what are you looking for this code to achieve?

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Ravindra_
Advisor

Re: Porting psrinfo (TRU64-HP-UX)

thanks Duncan for your replying and highlighting the reason. this code has been historic and at present no one is aware about real cause to put this.

anyway, do you know any command which can give us output similar to that of psrinfo?