- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- hostname lookup by application
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
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
тАО11-11-2004 01:06 AM
тАО11-11-2004 01:06 AM
hostname lookup by application
Maybe many times asked by others, but we
have an application which has to return
the hostname.
But in our MC-Serviceguard it will give
the hostname of the active node, instead of
returning the packagename.
We cannot modify the application and do not
want to give both nodes the same hostname.
Is there a way of fooling the application?
Regards,
Ceesjan
ps. I do not know what the application uses
internally 'hostname; uname...'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2004 01:42 AM
тАО11-11-2004 01:42 AM
Re: hostname lookup by application
By system call like uname(), gethostname(), gethostbyname() etc.?
Or is it parsing the output from an external command?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2004 01:44 AM
тАО11-11-2004 01:44 AM
Re: hostname lookup by application
Maybe, could you run a syscall tracer like tusc on the process to get more insight?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2004 05:03 AM
тАО11-11-2004 05:03 AM
Re: hostname lookup by application
The packages are listed in cmviewcl. How you gain access to the package is often via the IP address that is given to the package, which sits in the hosts files and in DNS for the clients, so that the clients don't have to know which node the package is running on.
If you cannot modify the application and do not know how it works then there really isn't much you can do to the app.
Ensuring that your application works in a package and isn't locked to a hostname is a key feature of serviceguard and should be in everyone's test plan.
I have seen projects get stuck on this issue with respect to software licencing checks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2004 05:25 AM
тАО11-11-2004 05:25 AM
Re: hostname lookup by application
For instance, changing the hostname to the package IP alias will break SG commands.
The section labeled "Designing Applications to Run on Multiple Systems" in the "Managing Serviceguard" manual describes the correct approach:
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B3936-90079/B3936-90079_top.html&con=/hpux/onlinedocs/B3936-90079/00/00/68-con.html&toc=/hpux/onlinedocs/B3936-90079/00/00/68-toc.html&searchterms=bind&queryid=20041111-112425
-sd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2004 08:25 AM
тАО11-13-2004 08:25 AM
Re: hostname lookup by application
Uhmm, I sorta hate to offer this as a suggestion, and you might break something doing it, but you could try creating some small scripts from 'hostname' and 'uname' and putting them in a directory at the start of your PATH variable that would just echo out the hostname you want. Sorta a bad hack, but might resolve the problem.
Otherwise, contacting your application vendor to see how to do it would be the next best thing.
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2004 12:02 AM
тАО11-16-2004 12:02 AM
Re: hostname lookup by application
We've found a way to set a fixed
'ServerName' into the applicationconfig.
Setting this var on the packagename
was the only way to solve it.
We didn't see the clue on page 229 of
the our appl.manual in very small letters.
Anyway,
thanks to you all.
Regards,
Ceesjan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2004 12:04 AM
тАО11-16-2004 12:04 AM