Operating System - HP-UX
1825795 Members
2288 Online
109687 Solutions
New Discussion

Re: Problems with swlist, swcopy, swverify etc

 
SOLVED
Go to solution
Fernando_86
Occasional Advisor

Problems with swlist, swcopy, swverify etc

Hi everybody,

I'm with a problem on a HP-UX 11.23 (rp3440) related with the swXXXX commands.
When I try to run the commands swlist, swinstall, swverify, etc., I got no return from the system, no core file and nothing logged on the log files.
Just after run one of these commands I got the prompt and no message at all.
Someone has a tip about this issue?

Thanks in advance,
Fernando
17 REPLIES 17
Fred Ruffet
Honored Contributor

Re: Problems with swlist, swcopy, swverify etc

verify you don't have DISPLAY ver set to something bad.

Also verify content of /var/adm/sw/swagent/log file

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
harry d brown jr
Honored Contributor

Re: Problems with swlist, swcopy, swverify etc

check to make sure your DISPLAY variable is set to YOUR desktop.

If you aren't using X, then can you post the entire command line you were trying to execute?

live free or die
harry d brown jr
Live Free or Die
Fernando_86
Occasional Advisor

Re: Problems with swlist, swcopy, swverify etc

Hi

I'm not using an X terminal, I'm acessing the machine using telnet and my TERM variable is set to vt100.

As I said there is nothing logged in the log files (swagent.log, swagentd.log, swverify.log, etc).

I just executed on of the commands, for exmaple:
# swlist
#

and prompts returns without answer.

Some other idea?
Thanks,
Fernando

Fred Ruffet
Honored Contributor

Re: Problems with swlist, swcopy, swverify etc

Is swagent running ?

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Cheryl Griffin
Honored Contributor

Re: Problems with swlist, swcopy, swverify etc

What does the following show?
# ll /var/adm/sw/products
# bdf |grep var
"Downtime is a Crime."
Fernando_86
Occasional Advisor

Re: Problems with swlist, swcopy, swverify etc

Yes it is running.
I had verified this before. I stop and started the swagend again => same problem
So I reboot the system => same problem.

Another tip?

Thanks anyway,
Fernando
Fernando_86
Occasional Advisor

Re: Problems with swlist, swcopy, swverify etc

Hi Cheryl,

The first command shows everything was installed on the system (products, patches) - please see the attached file.

The second commmand shows:
# bdf | grep var
/dev/vg00/lvol8 4718592 2825112 1885808 60% /var

Thanks,
Fernando
Cheryl Griffin
Honored Contributor

Re: Problems with swlist, swcopy, swverify etc

The INDEX is there. It looks like you installed something on Nov 3:
-rw-r--r-- 1 root sys 3506765 Nov 3 16:39 INDEX

What about permissions on /var/adm/sw/products?
# ll -d /var/adm/sw/products
"Downtime is a Crime."
Fred Ruffet
Honored Contributor

Re: Problems with swlist, swcopy, swverify etc

This may sound stupid, but... What about launching swlist through sam ? (software management -> list software)

Did you recently changed hostname or IP adress ?

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Fernando_86
Occasional Advisor

Re: Problems with swlist, swcopy, swverify etc

Hi Cheryl,

Actually this machine is not being used for me, another person on the company ask me for a help. Unfortunately I don't know exactly what was done on this box.

Here is the command result:

# ll -d /var/adm/sw/products
dr-x------ 394 root sys 9216 Jul 1 06:16 /var/adm/sw/products

Thanks,
Fernando
Cheryl Griffin
Honored Contributor

Re: Problems with swlist, swcopy, swverify etc

(Fred - that doesn't sound stupid at all.)

Also check /var/adm/sw/swagent.log for errors.
"Downtime is a Crime."
Fred Ruffet
Honored Contributor

Re: Problems with swlist, swcopy, swverify etc

Cheryl,

swagent.log has already been asked :)
I said my question sounds stupid, cause sam uses swlist has anybody does, doesn't it ? (any extra-options ? Doesn't seem to in sam log)

Fernando,

Are there core file generated ? issue a "find / -name core" cause they may not be generated in current dir.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Fernando_86
Occasional Advisor

Re: Problems with swlist, swcopy, swverify etc

Hi Fred / Cheryl,

The hostname and ip address were not changed.
When I tried to do swlist through SAM I have no answer at all.

There is no error message on swagent.log.

Thanks,
Fernando
Fernando_86
Occasional Advisor

Re: Problems with swlist, swcopy, swverify etc

Hi Fred,

I have already looked for core files and I couldn't find any core file on this box.

Thanks,
Fernando
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: Problems with swlist, swcopy, swverify etc

Hi Fernando,

Could you check the permissions of /, /usr, /usr/sbin and the sw files inside /usr/sbin

# ll /usr/sbin | grep sw

mine are all from the same date.

Regards,
Robert-Jan
Fernando_86
Occasional Advisor

Re: Problems with swlist, swcopy, swverify etc

Hi Robert,

This was a basic thing I haven''t checked!
Here is the problem: All swXXXX commands (swlist, swcopy, etc) are in the /usr/sbin with 0 bytes !!!!!.

I really don't know what happened here.
Thanks for everybody that send me a tip.

Best Regards,
Fernando
Fernando_86
Occasional Advisor

Re: Problems with swlist, swcopy, swverify etc

Solved