1833184 Members
3222 Online
110051 Solutions
New Discussion

Re: server problem

 
SOLVED
Go to solution
Fadia Almarei
Super Advisor

server problem

Dear All
i have a test server that i istall hp11i on it when i do a swlist comman i have the following error" # swlist
# Initializing...
# Contacting target "SYSIT"...
ERROR: Could not contact host "SYSIT". 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 SYSIT:/var/adm/sw/swagentd.log)."
i reconfigure the name for the server many times but give me the same problem, what should i do for that
fadia.marei
10 REPLIES 10
Stf
Esteemed Contributor

Re: server problem

Hi,

Check your /etc/hosts file to see if you don't have multiple lines for your hostname.

And check your /etc/nsswitch.conf too see if the hosts' line show:
hosts files

stf
Slawomir Gora
Honored Contributor

Re: server problem

HI,

1. check hostname resolution
2. try to restart swagentd daemon

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


Robert-Jan Goossens
Honored Contributor

Re: server problem

Hi Fadia,

Could you post the errors from /var/adm/sw/swagentd.log

check if the hostname is correct

# uname -a
# hostname

Regards,
Robert-Jan
Fadia Almarei
Super Advisor

Re: server problem

thanks to All
but i check all these things
1- /etc/hosts
172.16.1.135 SYSIT
127.0.0.1 localhost loopback
172.16.4.17 TSD
2-nsswitch.conf
not found
3-# /sbin/init.d/swagentd start
Running /usr/lib/sw/mx/configure to reset hostname.
ERROR: Failed to package AgentConfig into /var/opt/mx/depot11.
swpackage did not run or produced no output.
ERROR: Failed to package AgentConfig into /var/opt/mx/depot10.
swpackage did not run or produced no output.
WARNING: Could not properly configure SD into ServiceControl.
You may try again later by running /usr/lib/sw/mx/configure.


that i what i have
fadia.marei
Robert-Jan Goossens
Honored Contributor
Solution

Re: server problem

Hi,

# cp /etc/nsswitch.files /etc/nsswitch.conf

edit /etc/hosts
add
172.16.1.135 sysit SYSIT

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

Regards,
Robert-Jan
Fadia Almarei
Super Advisor

Re: server problem

thanks Robert
the problem solved , but is that mean that the cause of the problem that i use the capetal latter, tell me please,to avoid getting such problem.
fadia.marei
Robert-Jan Goossens
Honored Contributor

Re: server problem

no, the problem is the missing /etc/nsswitch.conf file. It is recommended to use the lowercase hostname and uppercase as an alias (dont think it realy makes a differense).

Regards,
Robert-Jan
Fadia Almarei
Super Advisor

Re: server problem

but Robert i have install another server same hp11i and it havent nsswitch.conf file and it work fine without problem, so why?
fadia.marei
Robert-Jan Goossens
Honored Contributor

Re: server problem

could you check

# grep HOSTNAME /etc/rc.config.d/netconf

Regards,
Robert-Jan

Fadia Almarei
Super Advisor

Re: server problem

the output
# grep HOSTNAME /etc/rc.config.d/netconf
# HOSTNAME: Name of your system for uname -S and hostname
HOSTNAME="SYSIT"
fadia.marei