Operating System - HP-UX
1834136 Members
2454 Online
110064 Solutions
New Discussion

Re: swlist is not working

 
prasathc
Frequent Advisor

swlist is not working

Hi all
I have encounter a problem while putting swlist in a hp-ux based machine ( J5600 series ).

swlist is working when i am entering as root, but when i enter as user, is giving as following messages like

swlist
# Initializing...
# Contacting target "sunlight"....


There is no error messages ,just it initializing and contacting the host then it's giving prompt. So anyone can helpme. please

thanks in advance
10 REPLIES 10
Srinivasan Sankar
New Member

Re: swlist is not working


I think you have to check the /etc/hosts and make surethe entry for sunlist is OK.

ta
we can solve anything!!
Stefan Farrelly
Honored Contributor

Re: swlist is not working


swlist should work for a non root user. Have you tried swlist -v, does it give more output before crashing to the prompt ?

Im from Palmerston North, New Zealand, but somehow ended up in London...
prasathc
Frequent Advisor

Re: swlist is not working

Hi All
I have tried
1) /etc/hosts
-rw-rw-r-- 1 root root 496 Feb 23 20:27 /etc/hosts
2) swlist -v,
swlist -v
# Initializing...
# Contacting target "sunlight"...

but still it is in the same position
no improvement

please guide me

thanks



Stefan Farrelly
Honored Contributor

Re: swlist is not working

Might be some sort of permission problem. This isnt going to be easy to diagnose.

Have your tried some options;

swlist -l bundle
or
swlist -l fileset

Can you give us the output of swlist when run as root please.
Im from Palmerston North, New Zealand, but somehow ended up in London...
prasathc
Frequent Advisor

Re: swlist is not working

Hi stefan
I had tryed out with swlist -l bundle and product , but i got same out. Here i am attaching the swlist for sunlight as root

thanks
Stefan Farrelly
Honored Contributor

Re: swlist is not working


your problem could possibly be becuase you arent running an uptodate quarterly patch bundle. Recent one is March2001. Why arent you using them ? you have a few selected patches instead.

I cant see you have installed to important patches for software distributor;

PHCO_21492 1.0 Software Distributor (SD-UX) Cumulative Patch
PHCO_22044 1.0 HP-UX Software Distributor commands

Try installing them or preferrably a quarterly patch bundle and see if that resolves it. (One of these patches may superceed the other - check first)
Im from Palmerston North, New Zealand, but somehow ended up in London...
James R. Ferguson
Acclaimed Contributor

Re: swlist is not working

Hi:

My guess would be that you do not have the correct permissions set for the 'swlist' codefile.

Do an 'ls -l' and make sure of the ownership and particularly the setuid bit status of the codefile. It should look something like this:

-r-sr-xr-x 11 root bin 1609728 Dec 15 1998 /usr/sbin/swlist

If this is not the case, as necessary, do:

# chown root:bin /usr/sbin/swlist
# chmod 4555 /usr/sbin/swlist

...JRF...
prasathc
Frequent Advisor

Re: swlist is not working

Hi
I don't think so it is due to PATCH which u mentioned. Why because yesterday it was fine. But problem is today only. More over the /usr/sbin/swlist file permission is same which James mentioned. If the Patch problem means swlist sould not work for root also.

And James this the status of file permission and ownership as follows
# ll /usr/sbin/swlist
-r-sr-xr-x 10 root bin 1478656 May 30 1996 /usr/sbin/swlist
the problem is not fix so far

thanks




Stefan Farrelly
Honored Contributor

Re: swlist is not working


Time for you to start allocating points for those whove spent time trying to help so far.

And yes, a patch could very easily affect only non-root users.

If it was working yesterday and not now, whats happened inbetween ? sometone installed something ? have you tried rebooting your server as it could be simply environment.
Im from Palmerston North, New Zealand, but somehow ended up in London...
James R. Ferguson
Acclaimed Contributor

Re: swlist is not working

Hi:

OK. You might try to restart the swagentd daemon:

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

...JRF...