- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Weird random script hang
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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-22-2004 08:07 AM
03-22-2004 08:07 AM
Weird random script hang
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 08:34 AM
03-22-2004 08:34 AM
Re: Weird random script hang
Did you run it as root? or as a user?
Are the OSs the same on each of the servers?
Where does it hang? when it is trying to assess the ttys?
----------------------------------------------------
It might be more elegant to use a CASE structure instead of sooo many if/then/else statements...
Seems like a rework is in order.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 08:49 AM
03-22-2004 08:49 AM
Re: Weird random script hang
Same hardware (all rp2430s)... all at Rel_B.11.00 with same patches.
Definitely run as root. (Script would exit immediately since that's the first thing I check.)
It appears to hang at the very end from what she could tell. I have yet to witness a failure during all the time I was testing during development. According to her, all of the logs indicated it had done everything it was supposed to do... other than it just hung at the very end before exiting and the system didn't reboot.
As for so many if/then/else statements vs. case statements, I don't think it matters much. Nearly all of the if statements are error checking so it would be at least as ugly with "case"s. (Or maybe I just know how to be elegant. :)
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 09:12 AM
03-22-2004 09:12 AM
Re: Weird random script hang
Elegant may be an overstatement, but CASE statements definintely help imho...
My thought is this about scripting...
1) make them easy to read
2) make them Modular so they can be updated easily
3) Document to help understand what you are doing...6 months later when you cant remember what it was supposed to do. :D
I might rewrite it with a command script which calls "modules" so you can troubleshoot easier...
Or as you probably have done add echo statements to track where the script is and what it is doing at the moment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 10:12 AM
03-22-2004 10:12 AM
Re: Weird random script hang
See
http://docs.hp.com/hpux/onlinedocs/B2355-90046/00/01/117-con.html
good luck
fwc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2004 05:40 PM
03-22-2004 05:40 PM
Re: Weird random script hang
However, if I were to make a bet, it would be that it is hanging here
/usr/sbin/diag/contrib/pdcinfo
I wouldn't put too much money on it though.