- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Looking for a better way to determine active s...
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
тАО01-03-2005 03:47 AM - last edited on тАО01-02-2012 02:30 AM by Ajay-Kumar
тАО01-03-2005 03:47 AM - last edited on тАО01-02-2012 02:30 AM by Ajay-Kumar
We have two servers (crhcmax1 and crhcmax2). They are clustered together using ServiceGuard. I'm writing a script to determine which is the active server. Currently I'm doing a bdf and grepping for proddb01 which would not be mounted on the non-active server. Anyone have a better solution?
Thanks
Scott
-----------------------------------------------
P.S. This thread has been moved from Languages & Scripting to Service Guard - Forum Moderator
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2005 03:53 AM
- Tags:
- cmscancl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2005 03:55 AM
тАО01-03-2005 03:55 AM
Re: Looking for a better way to determine active server instead of bdf
- Tags:
- cmviewcl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2005 04:04 AM
тАО01-03-2005 04:04 AM
Re: Looking for a better way to determine active server instead of bdf
Check the output of the cmviewcl.
cmviewcl -p package_name |grep running |awk '{print $5}'
This is the host on which the package "package_name" is currently running. substitute the package_name with the name of the package that contains the filesystem "proddb01"
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2005 06:15 AM
тАО01-03-2005 06:15 AM
Re: Looking for a better way to determine active server instead of bdf
Thanks very much!!!