GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: script for mwm
Operating System - HP-UX
1847052
Members
4935
Online
110261
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
Forums
Discussions
Discussions
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
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
07-26-2005 07:01 AM
07-26-2005 07:01 AM
script for mwm
Need a script for mwm - that monitors and sleep for a few minutes then starts the daemon when it is down.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2005 07:15 AM
07-26-2005 07:15 AM
Re: script for mwm
mwa status | grep -e scopeux -e midaemon -e ttd -e alarmgen -e agdbserver -e perflbd -e rep_server > /tmp/checkfile
cat /tmp/checkfile | while read line
do
firstword=`echo $line | awk {'print $1'}`
if [ "$firstword" != "Running" ]
then
mwa restart
fi
done
you can fire-up this script from cron every so many minutes or you can put it in a
while true
do
above_script
sleep $NUMBER # waits NUMBER seconds
done
I prefer cron approach though.
You can go more elaborate and parse the line in the script for the subsystem and if one subsystem fails you can only start or restart that one.
Also keep in mind that these subsystems are specific to one of my servers. Yours may be different. If so, change the "grep -e" phrases on the first line to reflect which subsytems running on your server. You can get that information by simply running
mwa status
command.
Hope this helps
cat /tmp/checkfile | while read line
do
firstword=`echo $line | awk {'print $1'}`
if [ "$firstword" != "Running" ]
then
mwa restart
fi
done
you can fire-up this script from cron every so many minutes or you can put it in a
while true
do
above_script
sleep $NUMBER # waits NUMBER seconds
done
I prefer cron approach though.
You can go more elaborate and parse the line in the script for the subsystem and if one subsystem fails you can only start or restart that one.
Also keep in mind that these subsystems are specific to one of my servers. Yours may be different. If so, change the "grep -e" phrases on the first line to reflect which subsytems running on your server. You can get that information by simply running
mwa status
command.
Hope this helps
________________________________
UNIX because I majored in cryptology...
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2005 08:00 AM
07-26-2005 08:00 AM
Re: script for mwm
Earl,
Are you having a problem with the MWA processes running ? In the 10 years running MWA there were only two reasons that I have had issues. 1) filesystem full 2) corrupt log file usually due to a filesystem full issue.
You may be chasing the tail of some other problem. Fix the source if it exists.
Are you having a problem with the MWA processes running ? In the 10 years running MWA there were only two reasons that I have had issues. 1) filesystem full 2) corrupt log file usually due to a filesystem full issue.
You may be chasing the tail of some other problem. Fix the source if it exists.
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.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP