[疑问]swlist命令用不了了

houzi105
[疑问]swlist命令用不了了

# swlist
# Initializing...
# Contacting target "l1000"...
ERROR:   Could not contact host "l1000".  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 l1000:/var/adm/sw/swagentd.log).
# hostname
l1000
# ps -ef | grep -i swagent
    root  1740     1  0 14:42:23 ?         0:00 /usr/sbin/swagentd -r
#

这个问题怎么解决呢?没了思路。

ksa13
1.去看看/var/adm/sw/swagentd.log的输出
2.重写host文件并重启网络服务,/sbin/init.d/net stop     前同 start

五“宅”一生
hostname不规范,报错很明显,检查一下设置。