- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Remsh to stop / start measureware on HP-UX 11.00
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
Discussions
Discussions
Forums
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
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
тАО08-05-2004 01:39 AM
тАО08-05-2004 01:39 AM
Remsh to stop / start measureware on HP-UX 11.00
#!/bin/sh -x
dbexec="/opt/pgsql/bin/psql -t -U username -d web -c "
query="SELECT server
FROM usa_mwa
WHERE status LIKE '%Down'"
stop="/sbin/init.d/mwa stop"
start="/sbin/init.d/mwa start"
for i in $($dbexec "$query"); do
remsh $i "$stop; $start"
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2004 01:50 AM
тАО08-05-2004 01:50 AM
Re: Remsh to stop / start measureware on HP-UX 11.00
Interesting Idea
Try 2 x remsh
1 to stop
1 to start
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2004 01:57 AM
тАО08-05-2004 01:57 AM
Re: Remsh to stop / start measureware on HP-UX 11.00
Thanks for the input, just tried using two remsh's but it hung on the second as before. Definitely a good idea though...
I guess it is also helpful to know that I have tried running the stop / start process under different shells as well as a background command with the same results. I think it is more of an issue with the MeasureWare start script where it wants a terminal...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2004 03:39 AM
тАО09-03-2004 03:39 AM
Re: Remsh to stop / start measureware on HP-UX 11.00
/sbin/init.d/mwa restart all
When I tried doing a stop & start w/in the same script, it created some problems. However the mwa restart all works very well. It takes quite a while before all of the processes come online though. You can check by doing a mwa status.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2004 03:50 AM
тАО09-03-2004 03:50 AM
Re: Remsh to stop / start measureware on HP-UX 11.00
remsh with -n will take care of background issues. Try
Start the shell with 'set -x' to ensure that things are working the way expected.
remsh $i -n "$stop:$start"
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2004 04:15 AM
тАО09-03-2004 04:15 AM
Re: Remsh to stop / start measureware on HP-UX 11.00
dbexec="/opt/pgsql/bin/psql -t -U username -d web -c "
query="SELECT server
FROM usa_mwa
WHERE status LIKE '%Down'"
stop="/sbin/init.d/mwa stop"
start="/sbin/init.d/mwa start"
for i in $($dbexec "$query"); do
ssh -n $i "$stop"
ssh -n $i "$start"
done
at now + 5 minutes << EOF
/usa/bin/usa_mwacheck.sh
EOF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2004 04:19 PM
тАО09-03-2004 04:19 PM
Re: Remsh to stop / start measureware on HP-UX 11.00
remsh $i -n "$stop;$start"
If you are doing with ssh then,
ssh -n $i "$stop;$start" ( secure way )
Regards
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2004 04:29 PM
тАО09-03-2004 04:29 PM
Re: Remsh to stop / start measureware on HP-UX 11.00
/sbin/init.d/mwa restart all
It has the same effect as a stop & start, but I think that it is actually cleaner.