HP-UX
1748202 회원
3009 온라인
108759 솔루션
새 메시지

swlist hostname error

 
abirs
조언자

swlist hostname error

안녕하세요..

swlist 에러가 발생이 됩니다.

꼭 답변 주세요.





# swlist

# Initializing...

# Contacting target "rx4640"...

ERROR: Could not contact host "rx4640". 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 rx4640:/var/adm/sw/swagentd.log).
5 응답 5
양계전
초등학생

swlist hostname error

hostname 을 변경을 하셨는지요



#hostname



/etc/hosts 와 /etc/rc.config.d/netconf 의 호스트네임을 동일하게 하신후에



#/sbin/init.d/swagentd stop

#/sbin/init.d/swagentd start 하신후에



swlist 다시 한번 해보세요
abirs
조언자

swlist hostname error

hostname 변경을 하지 않았습니다.



/etc/hosts 파일에

X.X.X.X rx4640



/etc/rc.config.d/netconf

HOSTNAME="rx4640"



/sbin/init.d/swagentd stop

/sbin/init.d/swagentd start



hostname이 동일하게 되어 있습니다.

그리고 swagentd 데몬 재 시작을 했으나 동일한 오류가 발생 됩니다.



혹시 hostname 관련 파일이 어떻게 되는지 가르쳐 주세요.
양계전
초등학생

swlist hostname error

위의 에러는 rx4640이라는 호스트명을 접근하지 못해서 생기는



오류입니다.



ping rx4640 을 해보시고요



정상적으로 핑이 되는지 확인 해보세요



swlist,swinstall 등은 호스트네임 과 시스템 ip와 민감하게 반응하기



때문에 꼭 확인을 하셔야합니다
abirs
조언자

swlist hostname error

ping 체크 결과 hostname 을 못찾습니다.

왜 hostname을 못찾습니까?



ping rx4640

ping: unknown host rx4640



양계전
초등학생

swlist hostname error

/etc/hosts 를 다시한번 보시구요



다시 확인해봐야 할것은 /etc/nsswitch.conf 파일이 존재하는지



확인을 해보세요



없으시면 cp /etc/nsswitch.hp_defaults /etc/nsswitch.conf



로 복사시킨다음에



hosts 의 라인에



hosts: files dns



아래와 같이 변경을 해주시고



다시한번 ping을 날려보세요