Operating System - HP-UX
1846920 Members
4666 Online
110256 Solutions
New Discussion

sam, swlist, swverify, etc don't work

 
ESO HP Sysadmin
Occasional Contributor

sam, swlist, swverify, etc don't work

Hi,

I have a strange problem. I have a J5000, hp-ux 11. After some patches were added sam, sw would not work, they will not even give error messages they just hang. I cannot role back on the patches, none of the sw commands work. Does anybody have any ideas?

I found out that sam command is a script, so I ran it with sh -xv option and compared this with a machine that is working OK. They were identical expcept for some process id's that would be different.

Laters


Ean
8 REPLIES 8
MANOJ SRIVASTAVA
Honored Contributor

Re: sam, swlist, swverify, etc don't work

Hi ESO


Do a nslookup < local hostname > and check how does it resolve . It looks that the nssswitch.conf points it to reslove by DNS whereas the /etc/resolv.conf is wither not tehre or pointing to wrong address . Easiest way is to mv /etc/resolv.conf to some other (if you cant the DNS figured out ) and then again doa nslookup , now it should be able to resolve the name using /etc/hosts .

Now stop adn start the swgentd from /sbin/init.d/swagentd .


Manoj Srivastava
Helen French
Honored Contributor

Re: sam, swlist, swverify, etc don't work

Hi,

Do you have any error message in the swagentd.log ? Did you try restarting the swagentd daemon ?

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

HTH,
Shiju
Life is a promise, fulfill it!
pap
Respected Contributor

Re: sam, swlist, swverify, etc don't work

Hi,

Can you check whether your network configuration is proper?

also check syslog.log file unser /var/adm/syslog dir. Is it says something about swagentd daemon ?

If it is not started properly then sam doesn't work neither swlist.

Otherwise, reboot the machine and try again watch for the booting messages and failure of any services.



"Winners don't do different things , they do things differently"
Clemens van Everdingen
Honored Contributor

Re: sam, swlist, swverify, etc don't work

Hi

Try to stop and start the swagentd daemon.
This will probably solve the issue.

See also this thread:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2dcc3bd5184bd61190000090279cd0f9,00.html

Clemens
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
MANOJ SRIVASTAVA
Honored Contributor

Re: sam, swlist, swverify, etc don't work

Hi ESO

If you haver problems even starting SAM then definaltetly it is name resolution thing as the system is not able to resolve its name properly , mv /etc/resolve.conf to some other file and then retry starting SAM you should be good to go . For the sw install you need to restart the swagent .



Manoj Srivastava
nancy rippey
Trusted Contributor

Re: sam, swlist, swverify, etc don't work

If you are still having problems after stopping and starting swagentd check your hosts file making sure the hostname and loopback are set correctly.
nancy
nrip
Clemens van Everdingen
Honored Contributor

Re: sam, swlist, swverify, etc don't work

Hi,

I would check the thread I previously mentioned as you said sam is not working as well.

I would put my money on the solution from Manoj, at least if you are using DNS etc.

Clemens
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Clemens van Everdingen
Honored Contributor

Re: sam, swlist, swverify, etc don't work

Hi,

Is this problem solved ?
Assign point to show us what the answer or conclusion was !!

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !