1843905 Members
3119 Online
110226 Solutions
New Discussion

swlist error

 
SOLVED
Go to solution
Jollyjet
Valued Contributor

swlist error

Hi All,

Swlist gives me the below error any one can help me in it.

swlist
(SW_NOTE: SW_SESSION_BEGINS) on ipkhp020: Fri Feb 2 11:47:38 IST 2007
ERROR: /opt/corp/local/slap-1.1/work/swlist.reply.ipkhp020.7954 No such file or
directory
- call stack -
Sw_utility::fatal_error() called from /opt/corp/local/slap-1.1/lib/Sw_utility.pm
[2021]
Sw_utility::parse_output_file() called from /opt/corp/local/slap-1.1/lib/Sw_util
ity.pm[1673]
Sw_utility::check_software_on_targets() called from /opt/corp/local/slap-1.1/lib
/Swlist.pm[280]
Swlist::check_software() called from /opt/corp/local/slap-1.1/lib/Sw_utility.pm[
650]
Sw_utility::selection() called from /opt/corp/local/slap-1.1/lib/Sw_utility.pm[5
86]
Sw_utility::invoke() called from /opt/corp/local/bin/swlist[64]
7 REPLIES 7
Fabio Ettore
Honored Contributor
Solution

Re: swlist error

Hello,

very strange message, never seen that message on swlist.
What is that slap under /opt??

Have you /var filesystem normally mounted? Check by bdf.

Just a try: stop/start again the swagentd daemon:

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

Does it solve the problem?

Best regards,
Fabio
WISH? IMPROVEMENT!
Peter Godron
Honored Contributor

Re: swlist error

Hi,
can you check that you are running HPUX version:
what `which swlist`

should point into /usr/sbin/swlist.

If not try the command:
/usr/sbin/swlist
Robert-Jan Goossens_1
Honored Contributor

Re: swlist error

Hi,

Could you check your "echo $PATH" env? Does it begin with /opt/corp/local?

Regards,
Robert-Jan
Jollyjet
Valued Contributor

Re: swlist error

HI Peter,

/usr/sbin/swlist works fine

normal swlist doesn't work.



Could you check your "echo $PATH" env? Does it begin with /opt/corp/local?


out put for this

"echo $PATH" env?
ksh: echo /usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/pd/bin:/
opt/upgrade/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/perf/bin:/opt/corp/local/
bin:/opt/corp/tools/bin:/usr/sbin:/opt/hpnp//bin:/opt/hparray/bin:/opt/CC/bin:/o
pt/langtools/bin: not found





Dennis Handly
Acclaimed Contributor

Re: swlist error

>/usr/sbin/swlist works fine
>normal swlist doesn't work.

That's your problem, you should be using absolute paths for SD tools or you need to hunt down and remove the bogus swlist. You can find it by "whence swlist". Or fix your PATH.

>output for this: "echo $PATH" env?

(The correct command is: echo $PATH)

Your bogus swlist is in one of those locations, probably /opt/corp/local/bin/, which is before /usr/sbin/.
Peter Godron
Honored Contributor

Re: swlist error

Hi,
as I suggest in my first post, you are running a 'wrong' version of swlist.

Either use the full path (/usr/sbin/swlist) and/or change the PATH for the root user to search /usr/sbin towards the beginning.

On most of our machines PATH for root is set to "/usr/bin:/usr/sbin" via
export PATH="/usr/bin:/usr/sbin"

To track your PATH assignment, check /etc/profile and ~/.profile for root user.

This should fix your problem. After you have tested my solution, could you please update this thread by awarding points to helpful answers and summarising the solution for you, before you close the thread.



Jollyjet
Valued Contributor

Re: swlist error

Thanks for all your help