- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Menu script
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
тАО06-28-2000 12:01 PM
тАО06-28-2000 12:01 PM
Thank You,
John
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2000 12:27 PM
тАО06-28-2000 12:27 PM
Re: Menu script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2000 12:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2000 01:47 PM
тАО06-28-2000 01:47 PM
Re: Menu script
For the most part, I tied the functioning and control of a particular bcv set with the machine that has primary use of it. First I remsh a command to the machine that needs to perform a particular function. For instance, in the case of a backup I commad the production machine to suspend writes to the database and message online users, telling them what's going on. I have NFS mounts between the machines where I set flags to indicate back to origin machine that a particular command evolution has completed. If the machine is dead and this is a failover situation, the flags are ignored. The originating script loops looking for this file flag and starts the split when it sees it. I have a timeout there to send a message to ops if the evolution takes too long. As soon as the split starts, I clear the flag and signal back to the production machine to resume processing. I then prepare and mount the bcv set on the machine that does the backups and away it goes. In actuality, this entire thing is completely automated with Maestro (not my choice) starting the whole chain of events .
At the time that all of this was written there was a limitation from EMC that would not allow more than one set of bcv's from being attached at any one time. Because of this I perform an extensive amount of bcv status commands and parse the output to determine the overall state of things. I added a lot of code to my scripts that would error based on the status prior to attempting to perform any illegal function (eg: can't mount a set that has not been split). In the case of a refresh for the test machine, I would have to split the backup set first, before I could sync up the refresh set. There were a variety of other options there too. Like keep the backup bcv's from resyncing while doing an upgrade to the production box until all was well. The key to it all was looping on the flags, lots of status checks, and lots of code there to handle most any error condition. It took a while to write and fully test all this stuff, but when the second machine group came around, it took less than a day to build from scratch and have it fully functional.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2000 01:52 PM
тАО07-17-2000 01:52 PM
Re: Menu script
#!/bin/sh
# Run Bourne shell
#
# gohome.sh and getcoffee.sh are
# user supplied scripts.
#
banner "MY MENU"
while : ; do
echo " "
echo "0. Exit script"
echo "1. Go home"
echo "2. Get coffee"
echo "3. who is on"
echo "Select option number from above ?c"
read q
case "$q" in
0) echo "Exit"; exit ;;
1) sh gohome.sh ;;
2) sh getcoffee.sh ;;
3) echo "Who Is Logged On"
who -uH
echo " "
echo "Press ENTER c"
read w ;;
*) echo "$q option unknown";;
esac
done