1833861 Members
1957 Online
110063 Solutions
New Discussion

Re: swlist, error

 
SOLVED
Go to solution
Gary L
Super Advisor

swlist, error

Hi

I wanna check and install some pathes into my HP-UX PA-RISC B.11.11 system. but when I run
# swlist
# Initializing...
# Contacting target "sys069"...
ERROR: Could not contact host "sys069". 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 sys069:/var/adm/sw/swagentd.log).

I stop and start swagentd daemond so many times, but doen't work.
I need your kindly helps, thank you very much.

brgs
-Gary
11 REPLIES 11
Doug Burton
Respected Contributor
Solution

Re: swlist, error

Try "swlist -l product" or "swlist -l bundle" to see what you have.

The "swinstall" command works for installing patches.
Gary L
Super Advisor

Re: swlist, error

Thanks Boug Burton, thank you very much for your quickly reply.
When I use swlist -l product | grep ... the same error responds like swlist.
And swinstall SD Install said error could not contact host "sys069".
As you know, I wanna install DST change patches into system.

-Gary
James George_1
Trusted Contributor

Re: swlist, error

Hi

check and make sure that the swagentd daemon is running ..

# ps -ef | grep swagentd

If not start it ..

#/usr/sbin/swagentd start

rgds/ James
forum is for techies .....heaven is for those who are born again !!
Ivan Krastev
Honored Contributor

Re: swlist, error

Check host name and resolving. Try to resolv "sys069". Also check for errors in /etc/hosts and netconf files.


regards,
ivan
Gary L
Super Advisor

Re: swlist, error

Hi James George

thanks for your reply,
I have stop and start swagentd so many times, here is the detail:
# swlist -l product
# Initializing...
# Contacting target "sys069"...
ERROR: Could not contact host "sys069". 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 sys069:/var/adm/sw/swagentd.log).
# ps -ef | grep swagentd
root 27408 24685 1 15:48:54 pts/th 0:00 grep swagentd
root 26302 1 0 14:21:32 ? 0:00 /usr/sbin/swagentd -r

# /sbin/init.d/swagentd stop
The swagentd daemon is stopped.
# /sbin/init.d/swagentd start
#
# ps -ef | grep swagentd
root 27439 1 0 15:50:38 ? 0:00 /usr/sbin/swagentd -r
root 27445 24685 1 15:50:49 pts/th 0:00 grep swagentd
# swlist
# Initializing...
# Contacting target "srs069"...
ERROR: Could not contact host "srs069". 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 srs069:/var/adm/sw/swagentd.log).
#
Sheriff Andy
Trusted Contributor

Re: swlist, error

Gary,

What results do you get when you do a nslookup on your short, and full hostname? Looks like it has something to do with that. I really think that you have a problem with resolving your hostname properly.

This may work for you as well. If you know your IP address on your box try the following;

# export RPC_SUPPORTED_NETADDRS=ip:n.n.n.n
# /usr/sbin/swagentd -r
Reshma Malusare
Trusted Contributor

Re: swlist, error

Hi Gary,
According me your system is facing host name resolution problem.
1.first check your /etc/hosts file.
If the HOSTNAME and/or IP have changed, it is important to confirm these changes were made correctly. Incomplete changes will cause inconsistent information, so consider using the set_parms command to be safe.
2.then also check by nslookup command:
nslookup is a program to query Internet domain name servers. nslookup has been extended to follow the configured name resolution algorithm of the host and to query NIS, as well as, DNS and host tables.
By default, nslookup accesses name services for name and address resolution based on the policy information obtained from the switch configuration file /etc/nsswitch.conf
3.I suggest for good practice check netconf file
/etc/rc.config.d/netconf
4.Find the HP-UX revision of your system by entering:
uname -a
5.Find the version of SD installed by entering:
what /usr/sbin/swinstall
6.Verify that SD is properly installed by entering:

swverify SW-\*
7.Look at the contents of the log files under /var/adm/sw/sw*.log. It may be helpful to have the data for the entire session. In SD log files, sessions are delineated by lines beginning with =========. (If there is too much data in the log, locate the first sign of trouble and the next several error messages.)
8.You may also want to have available information from the swagent.log files stored in depots (for example, /var/spool/sw/swagent.log). The swagent daemon creates these when it reads or writes from a depot containing information written by swagent. Depots at other locations have a similar swagent.log.
9.swagent daemon
The roles of UNIX target and source systems require two processes known as the daemon and agent. For most purposes, the distinction between these two processes is invisible to the user and they can be viewed as a single process.
Each SD command interacts with the daemon and agent to perform its requested tasks.
The swagentd daemon process must be scheduled before a UNIX system is available as a target or source system. This can be done either manually or in the system start-up script. The swagent agent process is executed by swagentd to perform specific software management tasks
so,after changes restart the process.

Then to check & install pathches use swlist & swinstall commands.
Refer follwing site:
http://docs.hp.com/en/SD/faq.html

Regards,
Reshma
Reshma Malusare
Trusted Contributor

Re: swlist, error

hi,
If your query is solved,then can you please assign the points.

Thanks & Regards,
Reshma
Gary L
Super Advisor

Re: swlist, error

Hi Doug Burton, James, Ivan Krastev,Sheriff, Reshma Malusare,thank you very much for your kindly helps. Especially, thanks Reshma Malusare's detail fixing steps. I have solved that problems, Yes, that is host name resolution problems, fix /etc/hosts etc.

Buddies, Have a great day

-Gary
Reshma Malusare
Trusted Contributor

Re: swlist, error

Hey Gary,
Thanks. Now your problem is resolved. so please assign the points to reward the answers.

Thanks & Regards,
Reshma
Gary L
Super Advisor

Re: swlist, error

Hi all

Do you got the points?
I am sorry I forgot.

brgs
-Gary