1756678 Members
2723 Online
108852 Solutions
New Discussion юеВ

Re: swinstall error

 
UnixT
Frequent Advisor

swinstall error

Hello,

I was trying to create a depot by executing the script that I downloaded from HP site but when I gets the below error

ERROR: Could not start a management session for
"DPSERVER:/var/patch/HWEnable/depot". The system
administrator for host "DPSERVER" may have disabled the
swagentd daemon or there may be a networking problem affecting
the operation. If the swagentd daemon has been disabled, it
can be enabled by the system administrator on "DPSERVER" by
setting the "SW_ENABLE_SWAGENTD" entry in
/etc/rc.config.d/swconfig to "1" and executing
"/usr/sbin/swagentd -r".
* Target connection failed for
"DPSERVER:/var/patch/HWEnable/depot".

===
I tried to restart the swagentd with or optiona nd it shows me ok but when I ran the command again same thisngs happening.

# ps -ef | grep swagent
root 4339 2023 1 09:18:45 console 0:00 grep swagent
root 3610 1 0 08:55:52 ? 0:00 /usr/sbin/swagentd -r
#
# ps -ef | grep swagent
root 4339 2023 1 09:18:45 console 0:00 grep swagent
root 3610 1 0 08:55:52 ? 0:00 /usr/sbin/swagentd -r
#

6 REPLIES 6
likid0
Honored Contributor

Re: swinstall error

For starters you can check if you can resolve your hostname ok, with nslookup or dig.

And also check you don't have any strange lines referencing dpserver on your /etc/hosts file.

Can you do a normal swlist -l bundle for example ?
Windows?, no thanks
UnixT
Frequent Advisor

Re: swinstall error

/etc/hosts looks good and I could do a

swlist -l bundle also with no issue
UnixT
Frequent Advisor

Re: swinstall error

Hi,

Please also tell me how to come out form the below error.


ERROR: "SERVER:/var/patch/HWEnable/depot": You do not have the
required permissions to select this target. Check permissions
using the "swacl" command or see your system administrator for
assistance. Or, toon in
the "sd" man page.
* Target connection failed for
"SERVER:/var/patch/HWEnable/depot".
Vishu
Trusted Contributor

Re: swinstall error

Try to see if your depot is registered with

# swlist -l :

Also, you are getting the error
****
Target connection failed for
"SERVER:/var/patch/HWEnable/depot".
*********

so, try checing /etc/hosts for the proper entry for that hosts. or use nslookup to see if that hostname is resolving properly.


Bob E Campbell
Honored Contributor

Re: swinstall error

What is your full command line? YOu can get into trouble with "@" in the wrong spot. Try using:

swinstall -s DPSERVER:/var/patch/HWEnable/depot

as the first part of your command. If you are thinking swlist when you build the command you can get the above error.
Nafez ALNajjar
Frequent Advisor

Re: swinstall error

Hi,

I remembers going through the exact same issue before , and found that the name resolution did not report the right values, checked this by nslookup , and when checking the /etc/hosts i found the the server same hostname were given to two IP addresses one for the physical NIC and one for virtual ip (cluster)and the line for the virtual were before the physical , and as the resolver find it first an error appears , just swapping the lines fixed it....
I hope this could help!

Good Luck
Nafez ALNajjar