首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

swlist下令

2012-07-31 
swlist命令在机上执行swlist命令返回结果如下# swlist# Initializing...# Contacting target SD4GJXJ...

swlist命令

在机上执行swlist命令返回结果如下

# swlist
# Initializing...
# Contacting target "SD4GJXJ"...
ERROR:?? Could not contact host "SD4GJXJ".? 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 SD4GJXJ:/var/adm/sw/swagentd.log).

?

google了一下,发现网络上解决的办法基本上都是在/etc/目录新建或者是配置名为nsswitch.conf的文件

增加如下内容:

netgroup: nis???? [NOTFOUND=return UNAVAIL=continue] files
hosts: files dns
按上面方法处理,没有效果,后有一帖子提出执行

nslookup SD4GJXJ

,执行后没有返回主机信息,执行结果如下:

Using /etc/hosts on:? SD4GJXJ

looking up FILES
Trying DNS
***? can't find SD4GJXJ: No response from server

?

?

于是查看/etc/hosts文件,发现IP对应的一个SSTF,于是怀疑这个地方配置有误,将hosts文件中下面SSTF改为SD4GJXJ后,执行nslookup和swlist成功。

127.0.0.1?????? localhost?????? loopback
10.1.18.158??? SSTF

热点排行