- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- swcopy : cannot contact host
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
09-17-2004 07:55 AM
09-17-2004 07:55 AM
Could not contact host "vspweb". Make sure the hostname is correct
and an absolute pathname is specified (beginning with "/").
uname -n returns correct name, and an nslookup resolves the host through /etc/hosts since the server isn't in DNS yet.
Any ideas ?? Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2004 08:01 AM
09-17-2004 08:01 AM
Re: swcopy : cannot contact host
Try a recycle of the agent
swagentd -r
and retry, post the results
HTH
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2004 08:07 AM
09-17-2004 08:07 AM
Re: swcopy : cannot contact host
swagentd -r
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2004 08:22 AM
09-17-2004 08:22 AM
Re: swcopy : cannot contact host
if I move resolv.conf out of the way swcopy works but since the servers are not in DNS yet
I don't see what difference this would make.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2004 08:50 AM
09-17-2004 08:50 AM
SolutionIn HP-UX without nsswitch.conf , if you have /etc/resolv.conf file, ONLY DNS server is tried. If the entry is not found in DNS, /etc/hosts file WILL NOT BE TRIED.
nslookup will succeed, since it doesnt use gethostbyname() and gethostbyaddr() functions other HP-UX commands use.
Check if you have a /etc/nsswitch.conf file. I bet you dont :-)
Create a /etc/nsswitch.conf file with the following entry
hosts: dns [NOTFOUND=continue] files
restore your /etc/resolv.conf. It will work !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2004 09:17 AM
09-17-2004 09:17 AM
Re: swcopy : cannot contact host
In doing a lot of digging around through man pages and posts online regarding name resolution problems and binary compatibility between 10.20 and 11.00, here's what I've determined.
As a document a coworker found online mentioned rather cryptically, the problem arises because of the difference in the default way name resolutions occur between 10.X and 11.X. The critical part here is that in 10.X the default behavior is to return to the calling routine on any status other than UNAVAIL and on 11.X the default behavior is to continue on any status other than SUCCESS. The new logic is contained in the 11.X libc.2 library. The libc.1 library is still available for backwards compatibility with 10.X binaries linked to that library. Therefore, any binary compiled on a 10.X system that is run on an 11.X system is going to exhibit the name resolution behavior of the 10.X system because of the use of the old APIs in libc.1.
Our /etc/nsswitch.conf is set up as follows:
hosts: files dns
Since the default behavior under 11.00 is the intuitive one, this works fine for 11.00 binaries like nslookup, nsquery, ping, etc. However, the 10.X binaries interpret this file as follows:
hosts: files [SUCCESS=return NOTFOUND=return UNAVAIL=continue TRYAGAIN=return] dns
The only way to resolve this is to change the policy in /etc/nsswitch.conf to explicitly state the 11.00 default behavior as follows:
hosts: files [SUCCESS=return NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] dns
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2004 10:13 AM
09-17-2004 10:13 AM
Re: swcopy : cannot contact host
Yes, you are right about the libc.1 thing. Even on 11.0, SD-UX binaries are linked to libc.1 and not to libc.2
But the whole discussion is valid ONLY when there is a nsswitch.conf with entries but
If there is no nsswitch.conf, the default name resolution policy used by 11.X is
dns [NOTFOUND=return TRYAGAIN=return] nis [NOTFOUND=return] files
Mike, you will be good to go if you have the following entry in /etc/nsswitch.conf file
hosts: dns [SUCCESS=return NOTFOUND=continue UNAVAIL=continue
TRYAGAIN=continue] files
- Sundar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2004 11:51 PM
09-19-2004 11:51 PM
Re: swcopy : cannot contact host
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 05:03 AM
09-21-2004 05:03 AM
Re: swcopy : cannot contact host
Since you havent closed the case yet, I just wanted to post some additional information that I found out. Could be useful to you or anyone that reaches this thread by searching the forum :-).
With 11.0, SD-UX binaries are linked to libc.1 and thus you would see them exhibit the name resolution behaviour of 10.X binaries.
With 11.11 and above, SD-UX binaries are linked to libc.2 and thus the name resolution behaviour of SD-UX binaries will be consistent with the other binaries that use the gethostbyname() and gethostbyaddr() system calls.
In 11.0 without the patch PHCO_28847, SD-UX binaries do not support NIS+.
Installing PHCO_28847 will link the SD-UX binaries to libc.2 that will make the name resolution behaviour of these binaries consistent.
- Sundar.