免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 3468 | 回复: 10
打印 上一主题 下一主题

为什么??? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-04-05 12:34 |只看该作者 |倒序浏览
各位老大,这几天我在hp-ux11.0上执行swinstall/swlist,系统都报告无法连接主机,这是为什么?救命啊!
# swlist
# Initializing...
# Contacting target \"ynhr\"...
ERROR:   Could not contact host \"ynhr\".  Make sure the hostname is
         correct and an absolute pathname is specified (beginning with
         \"/\".
ERROR:   More information may be found in the daemon logfile on this
         target (default location is ynhr:/var/adm/sw/swagentd.log).
#

论坛徽章:
0
2 [报告]
发表于 2003-04-05 17:08 |只看该作者

为什么???

是不是改主机名了?/etc/hosts文件对吗?
如果都没错,禁用DNS看看。

论坛徽章:
0
3 [报告]
发表于 2003-04-05 20:30 |只看该作者

为什么???

原帖由 \"423\" 发表:
各位老大,这几天我在hp-ux11.0上执行swinstall/swlist,系统都报告无法连接主机,这是为什么?救命啊!
# swlist
# Initializing...
# Contacting target \"ynhr\"...
ERROR:   Could not contact host \"ynhr\".  M..........


Try several ways:
1. Restart your swagentd by \"swagentd -r\"; then do swlist/swinstall again to see if it solves the problem.

2. Do as Mr. hpux suggested to check the /etc/hosts file, make sure your system can resolve its own hostname (ynhr).

One question for you: have you changed the hostname or IP address recently?

Good luck.

论坛徽章:
0
4 [报告]
发表于 2003-04-06 16:47 |只看该作者

为什么???

To shad
     前几天我曾经修改过ip,不过我已经改回来了。我没有更改过主机名。swagentd -r 以后还是不行!

论坛徽章:
0
5 [报告]
发表于 2003-04-06 16:49 |只看该作者

为什么???

这里是我的hosts文件,好像也没有错误,请各位帮我看看!
# cat hosts
## Configured using SAM by root on Wed Mar 12 14:11:35 2003
# @(#)hosts $Revision: 1.9.214.1 $ $Date: 96/10/08 13:20:01 $
#
# The form for each entry is:
# <internet address>;    <official hostname>; <aliases>;
#
# For example:
# 192.1.2.34    hpfcrm  loghost
#
# See the hosts(4) manual page for more information.
# Note: The entries cannot be preceded by a space.
#       The format described in this file is the correct format.
#       The original Berkeley manual page contains an error in
#       the format description.
#

192.168.1.2     ynhr
127.0.0.1       localhost       loopback
192.168.1.56    qinyue
#

论坛徽章:
0
6 [报告]
发表于 2003-04-06 16:53 |只看该作者

为什么???

TO hpux:
     老大怎样才能查看我是否启用了dns,不过我好像没有启用。
   怎样禁用dns呢?

论坛徽章:
0
7 [报告]
发表于 2003-04-07 08:49 |只看该作者

为什么???

#ping ynhr
看看结果!

如果没问题,禁用DNS:
1、检查/etc/nsswitch.conf是否存在,如果不存在可以从/usr/newconfig/etc拷贝一个;
2、#vi nsswitch.conf
...
hosts: files nis dns
...
3、如果存在/etc/resolv.conf 文件,执行:
#mv /etc/resolv.conf  /etc/resolv.conf.bak

论坛徽章:
0
8 [报告]
发表于 2003-04-07 11:30 |只看该作者

为什么???

TO:hpux
我ping ynhr,结果如下:
64 bytes from 192.168.1.2: icmp_seq=1. time=0. ms
.......
ping 192.168.1.2也是这样的结果
一直不会停,是不是该禁用dns?

论坛徽章:
0
9 [报告]
发表于 2003-04-07 14:35 |只看该作者

为什么???

TO hpux:
     你说的两个文件在我的系统里都没有找到,还有什么办法?

论坛徽章:
0
10 [报告]
发表于 2003-04-07 14:42 |只看该作者

为什么???

TO hpux:
     报告斑竹我搞定了!我在sam中停止了dns,就可以了!不过为什么我的机器里没有你告诉我的这两个文件?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP