- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Porting psrinfo (TRU64-HP-UX)
Operating System - HP-UX
1752786
Members
6010
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2007 09:52 PM
тАО03-27-2007 09:52 PM
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?
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2007 11:52 PM
тАО03-27-2007 11:52 PM
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2007 12:42 AM
тАО03-28-2007 12:42 AM
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?
anyway, do you know any command which can give us output similar to that of psrinfo?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP