cancel
Showing results for 
Search instead for 
Did you mean: 

swinstall error

gany59
Regular Advisor

swinstall error

Hi Guru's


There is a error while installing the package.
OS version is 10.20,
The error is :

# swinstall -s /opt/zlib-1[1][1].1.4-sd-10.20.depot \*

======= 02/02/10 07:40:51 EST BEGIN swinstall SESSION
(non-interactive)

* Session started for user "root@tsbell".

* Beginning Selection
ERROR: Could not contact host "tsbell". Make sure the hostname is
correct.
* Target connection failed for "tsbell:/".
ERROR: More information may be found in the daemon logfile on this
target (default location is tsbell:/var/adm/sw/swagentd.log).
* Selection had errors.



======= 02/02/10 07:40:52 EST END swinstall SESSION (non-interactive)
-----------------------------------------------

so i am opened the /var/adm/sw/swagentd.log file. the output is:

# tail -f /var/adm/sw/swagentd.log
in isolating this problem.

======= 01/27/10 10:02:28 EST BEGIN swagentd (pid = 29170).

WARNING: An attempt to get the network host entry for "tsbell" failed.
This may result in denial of access to users and agents at
this host. Check the spelling of this name, then your
"/etc/hosts" file, or your "/etc/resolv.conf" file and DNS
resolver configuration. The nslookup program may be helpful
in isolating this problem.
-----------------------------------------------

While doing the nslookup, i am not aware whether it resolve the correct ip address and host name..
# nslookup tsbell
Name Server: toroondc000.bell.corp.bce.ca
Address: 142.182.48.71

*** toroondc000.bell.corp.bce.ca can't find tsbell: Non-existent domain
# nslookup 142.182.48.71
Name Server: toroondc000.bell.corp.bce.ca
Address: 142.182.48.71

Name: toroondc000.bell.corp.bce.ca
Address: 142.182.48.71

Pls tell me how to resolve the above issue.

Thanks in advance!!!!!!

8 REPLIES
Johnson Punniyalingam
Honored Contributor

Re: swinstall error

Please try below

# /sbin/init.d/swagentd stop
# /sbin/init.d/swagentd start

or

#/usr/sbin/swagentd -r

HTH,

Johnson
Problems are common to all, but attitude makes the difference
gany59
Regular Advisor

Re: swinstall error

Hello Johnson,

I already tried out that, and restart the deamon., then also i am getting the same error.
Amitav
Frequent Advisor

Re: swinstall error

Did u check ur /etc/hosts entry...??

r u trying to install the depot from the same server or it's located remotely....??
R.K. #
Honored Contributor

Re: swinstall error

Hi Gany,

A host may be specified by its host name, domain name, or Internet address. A directory must be specified by an absolute path.

Also try:
# swinstall -s host:/directory
Don't fix that what ain't broke
Jupinder Bedi
Respected Contributor

Re: swinstall error

nslookup is not necessary . you can check your /etc/hosts file and if the hostname is correct or not . beccause according to your output it doesnt seem that entry is available in the DNS server

also check your /etc/resolv.conf and see if the correct entry is available for DNS or not.

and yes everything is fine

# /sbin/init.d/swagentd stop
# /sbin/init.d/swagentd start


Good Luck
All things excellent are as difficult as they are rare
Johnson Punniyalingam
Honored Contributor

Re: swinstall error

Suspecting could be "nsswitch.conf"

Can you check your "nsswitch.conf" and comapre with "Other working Server"

Please see below "example "nsswitch.conf"

more /etc/nsswitch.conf
passwd: files
group: files
hosts: files [NOTFOUND=continue] dns
ipnodes: files
services: files
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files

Hope This Helps.

Johnson
Problems are common to all, but attitude makes the difference
AVV
Super Advisor

Re: swinstall error

Hi,

You have to check /etc/hosts & nsswitch.conf and set those correctly. Time being point to "files dns" order in nsswitch.conf and try.
Javed Khan_1
Valued Contributor

Re: swinstall error

paste the output of

cat /etc/hosts
cat /etc/resolv.conf
cat /etc/nsswitch.conf
uname -n
Never Give Up