- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Service Guard and gethostby name()
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
07-01-2003 09:59 AM
07-01-2003 09:59 AM
Service Guard and gethostby name()
I have an application that is running in a service guard environment.It calls gethostbyname to determine which node it is running on. The info returned is for the actual system where the process is running.
Is there some way to get the information for the floating IP address returned?
Thanx in Advacne,
Ken
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 10:03 AM
07-01-2003 10:03 AM
Re: Service Guard and gethostby name()
If however, you expect gethostbyname to return your package name then it wont, it will return the host name.
Regards
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 10:20 AM
07-01-2003 10:20 AM
Re: Service Guard and gethostby name()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 10:27 AM
07-01-2003 10:27 AM
Re: Service Guard and gethostby name()
http://docs.hp.com/hpux/pdf/B3936-90065.pdf and note the appendices , particularly D, Designing Applications to run on Multiple Systems, especially page 331.
Also see page 82 on gethostbyname and how hte Network manager works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2003 05:24 AM
07-02-2003 05:24 AM
Re: Service Guard and gethostby name()
You can do something like this to find out which node a package is running on:
cmviewcl |grep yourpackage |awk '{print $5}'
For floating ip, if you are trying to determine which host it is running on...how about:
echo quit |telnet floatingipdnsname 25 | grep 220 |awk '{print $2}'
Rgds...Geoff