1835141 Members
3389 Online
110077 Solutions
New Discussion

Re: lpsstat error

 
catastro
Super Advisor

lpsstat error

Hi. I have a server with HP-UX 11iv1 and when I try to run the command lpsched a new line appears and is telling me: Memory fault; and there is no coredump at all in the directory.
I have looked already at the memory error logs and there are none, and the are no HPMC from the CPU either.
There are no patches or fileset corrupted either. Any idea on what is happening?
Thanks for the help
28 REPLIES 28
V. Nyga
Honored Contributor

Re: lpsstat error

Hi,

are you up-to-date with patches?
The last 'lpspool subsystem cumulative patch' is PHCO_34993:
http://www12.itrc.hp.com/service/patch/patchDetail.do?patchid=PHCO_34993&sel={hpux:11.11,}&BC=main|search|

Volkmar

*** Say 'Thanks' with Kudos ***
Steven E. Protter
Exalted Contributor

Re: lpsstat error

Shalom,

I think it likely that this is dealt with in one of the following ways:

1) Remove the lpsched binary and replace with one from another system.
2) A recent bi-annual patch set.
3) Making sure the environment is correct when running lpsched

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
V. Nyga
Honored Contributor

Re: lpsstat error

A search for 'lpstat' also point to the 'cumulative SAM patch' - PHCO_35520, or the latest: PHCO_36562, but it has only one star, so not yet tested by much customers.

So I suggest to install SAM and lpspool patches

V.
*** Say 'Thanks' with Kudos ***
catastro
Super Advisor

Re: lpsstat error

Hi V. Nyga. I have the patches up to date for now. SEP, I´ll try to replace the binary now and see how it works.

guadalaj:/root#swlist -l patch | grep PHCO_34993
# PHCO_34993 1.0 lpspool subsystem cumulat
ive patch
# PHCO_34993.LP-SPOOL 1.0 PrinterMgmt.LP-SPOO
L committed
# PHCO_34993.LPSP-ENG-A-MAN 1.0 PrinterMgmt.LPSP-EN
G-A-MAN committed
PHCO_34993.LP-SPOOL 1.0 PrinterMgmt.LP-SPOOL committed

PHCO_34993.LPSP-ENG-A-MAN 1.0 PrinterMgmt.LPSP-ENG-A-MAN
committed
guadalaj:/root#swlist -l patch -a state | grep PHCO_34993
# PHCO_34993
# PHCO_34993.LP-SPOOL configured
# PHCO_34993.LPSP-ENG-A-MAN configured
PHCO_34993.LP-SPOOL configured
PHCO_34993.LPSP-ENG-A-MAN configured


guadalaj:/root#swlist -l patch | grep PHCO_35520
PHCO_35520.INETSVCS-BOOT 1.0 InternetSrvcs.INETSVCS-BOOT
committed
PHCO_35520.UX-CORE 1.0 OS-Core.UX-CORE committed
# PHCO_35520 1.0 cumulative SAM patch
# PHCO_35520.INETSVCS-BOOT 1.0 InternetSrvcs.INETS
VCS-BOOT committed
# PHCO_35520.SAM 1.0 SystemAdmin.SAM
committed
# PHCO_35520.SAM-ENG-A-MAN 1.0 SystemAdmin.SAM-ENG
-A-MAN committed
# PHCO_35520.SAM-HELP 1.0 SystemAdmin.SAM-HEL
P committed
# PHCO_35520.UX-CORE 1.0 OS-Core.UX-CORE
committed
PHCO_35520.SAM 1.0 SystemAdmin.SAM committed
PHCO_35520.SAM-ENG-A-MAN 1.0 SystemAdmin.SAM-ENG-A-MAN
committed
PHCO_35520.SAM-HELP 1.0 SystemAdmin.SAM-HELP committed

guadalaj:/root#swlist -l patch -a state | grep PHCO_35520
PHCO_35520.INETSVCS-BOOT configured
PHCO_35520.UX-CORE configured
# PHCO_35520
# PHCO_35520.INETSVCS-BOOT configured
# PHCO_35520.SAM configured
# PHCO_35520.SAM-ENG-A-MAN configured
# PHCO_35520.SAM-HELP configured
# PHCO_35520.UX-CORE configured
PHCO_35520.SAM configured
PHCO_35520.SAM-ENG-A-MAN configured
PHCO_35520.SAM-HELP configured
catastro
Super Advisor

Re: lpsstat error

By the way Steven, which one of this two files should i replace?

/usr/sbin/lpsched
/usr/lib/lpsched

And I guess I should stop the lpsched before?
V. Nyga
Honored Contributor

Re: lpsstat error

Check the binary that is used by 'which lpsched'.

But at the end I think you should compare both and change both.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Dennis Handly
Acclaimed Contributor

Re: lpsstat error

>Steven: Remove the lpsched binary and replace with one from another system.

Before you do that you may want to use "swverify \*" to detect if lpsched or other files have been corrupted or have the wrong permissions.
skt_skt
Honored Contributor

Re: lpsstat error



root [/home/kumarts] ll /usr/lib/lpsched
lr-sr-xr-t 1 root sys 17 Dec 14 2005 /usr/lib/lpsched -> /usr/sbin/lpsched
root [/home/kumarts] whereis lpsched
lpsched: /usr/sbin/lpsched /usr/share/man/man1m.Z/lpsched.1m
root [/home/kumarts] ll /usr/sbin/lpsched
-r-sr-xr-x 1 root bin 57344 Jul 15 2006 /usr/sbin/lpsched
catastro
Super Advisor

Re: lpsstat error

Hi Dennis. With swverify I get this:

ERROR: File "/usr/bin/lpstat" should have mtime "1153012225" but the
ERROR: File "/usr/bin/lpstat" should have cksum "3517407409" but the
ERROR: File "/usr/lib/lp/model/HPGL1" should have mode "444" but the
ERROR: File "/usr/lib/lp/model/HPGL1" should have owner,uid "bin,2"
ERROR: File "/usr/lib/lp/model/HPGL1" should have mtime "974188800"
ERROR: File "/usr/lib/lp/model/HPGL1" should have size "1961" bytes
ERROR: File "/usr/lib/lp/model/HPGL2" should have mode "444" but the
ERROR: File "/usr/lib/lp/model/HPGL2" should have owner,uid "bin,2"
ERROR: File "/usr/lib/lp/model/HPGL2" should have mtime "974188800"
ERROR: File "/usr/lib/lp/model/HPGL2" should have size "1805" bytes
ERROR: File "/usr/lib/lp/model/HPGL2.cent" should have mode "444" but
ERROR: File "/usr/lib/lp/model/HPGL2.cent" should have owner,uid
ERROR: File "/usr/lib/lp/model/HPGL2.cent" should have mtime
ERROR: File "/usr/lib/lp/model/HPGL2.cent" should have size "1370"
ERROR: File "/usr/lib/lp/model/PCL1" should have mtime "974188800"
ERROR: File "/usr/lib/lp/model/PCL1" should have size "6357" bytes
ERROR: File "/usr/lib/lp/model/PCL2" should have mode "444" but the
ERROR: File "/usr/lib/lp/model/PCL2" should have owner,uid "bin,2"
ERROR: File "/usr/lib/lp/model/PCL2" should have mtime "974188800"
ERROR: File "/usr/lib/lp/model/PCL2" should have size "7358" bytes
ERROR: File "/usr/lib/lp/model/PCL3" should have mode "444" but the
ERROR: File "/usr/lib/lp/model/PCL3" should have owner,uid "bin,2"
ERROR: File "/usr/lib/lp/model/PCL3" should have mtime "974188800"
ERROR: File "/usr/lib/lp/model/PCL3" should have size "18009" bytes
ERROR: File "/usr/lib/lp/model/PCL4" should have mtime "974188800"
ERROR: File "/usr/lib/lp/model/PCL4" should have size "23987" bytes
ERROR: File "/usr/lib/lp/model/PCL5" should have mtime "974188800"
ERROR: File "/usr/lib/lp/model/PCL5" should have size "51877" bytes
ERROR: File "/usr/lib/lp/model/deskjet1200C" should have mtime
ERROR: File "/usr/lib/lp/model/deskjet1200C" should have size "46641"
ERROR: File "/usr/lib/lp/model/dumb" should have mode "444" but the
ERROR: File "/usr/lib/lp/model/dumb" should have owner,uid "bin,2"
ERROR: File "/usr/lib/lp/model/dumb" should have mtime "974188800"
ERROR: File "/usr/lib/lp/model/dumb" should have size "3658" bytes
ERROR: File "/usr/lib/lp/model/dumbplot" should have mode "444" but
ERROR: File "/usr/lib/lp/model/dumbplot" should have owner,uid
ERROR: File "/usr/lib/lp/model/dumbplot" should have mtime
ERROR: File "/usr/lib/lp/model/dumbplot" should have size "450" bytes
ERROR: File "/usr/lib/lp/model/hp256x.cent" should have mode "444"
ERROR: File "/usr/lib/lp/model/hp256x.cent" should have owner,uid
ERROR: File "/usr/lib/lp/model/hp256x.cent" should have mtime
ERROR: File "/usr/lib/lp/model/hp256x.cent" should have size "8161"
ERROR: File "/usr/lib/lp/model/hp2684a" should have mode "444" but
ERROR: File "/usr/lib/lp/model/hp2684a" should have owner,uid "bin,2"
ERROR: File "/usr/lib/lp/model/hp2684a" should have mtime "974188800"
ERROR: File "/usr/lib/lp/model/hp2684a" should have size "18396"
ERROR: File "/usr/lib/lp/model/hpC1208a" should have mtime
ERROR: File "/usr/lib/lp/model/hpC1208a" should have size "39326"
ERROR: File "/usr/lib/lp/model/postscript" should have mode "444" but
ERROR: File "/usr/lib/lp/model/postscript" should have owner,uid
ERROR: File "/usr/lib/lp/model/postscript" should have mtime
ERROR: File "/usr/lib/lp/model/postscript" should have size "6689"
ERROR: File "/usr/lib/lp/model/rmodel" should have mtime "974188800"
ERROR: File "/usr/lib/lp/model/rmodel" should have size "5256" bytes
ERROR: Fileset "PrinterMgmt.LP-SPOOL,l=/,r=B.11.11" had file errors.
ERROR: File "/usr/bin/lpstat" should have mtime "1153012225" but the
ERROR: File "/usr/bin/lpstat" should have cksum "3517407409" but the
ERROR: Fileset "PHCO_34993.LP-SPOOL,l=/,r=1.0" had file errors.

Santhosh I get the same outputs as you.
Dennis Handly
Acclaimed Contributor

Re: lpsstat error

>With swverify I get this:
ERROR: File "/usr/bin/lpstat" should have mtime "1153012225" but the
ERROR: File "/usr/bin/lpstat" should have cksum "3517407409" but the

Did you copy the files from somewhere else, as suggested?
If you had the same software, that would explain the mtime (if you didn't preserve the time) but the cksum should be the same.

>Santhosh I get the same outputs as you.

I didn't see lpsched on the list of bad files.
catastro
Super Advisor

Re: lpsstat error

Hi Dennis.
I did not change the lpstat file, as it is in use. Everything is working fine excapt the lpstat. How can I solve the chksum issue? Is there any patch for lpstat? Or any fileset?
Thanks to all
whiteknight
Honored Contributor

Re: lpsstat error



Catastro,

# swverify -v -x fix=true PrinterMgmt.LP-SPOOL

This will fix your permission of your lpstat, hope this help.

WK

don't forget to assign points
Problem never ends, you must know how to fix it
catastro
Super Advisor

Re: lpsstat error

Hi whiteknight. This is the output of swjob after the swverify command. Could be solved installing some patch here? Thanks

ERROR: File "/usr/bin/lpstat" should have mtime "1153012225" but the
actual mtime is "1203415424".
ERROR: File "/usr/bin/lpstat" should have cksum "3517407409" but the
actual cksum is "1827412722".
ERROR: File "/usr/lib/lp/model/HPGL1" should have mtime "974188800"
but the actual mtime is "833439600".
ERROR: File "/usr/lib/lp/model/HPGL1" should have size "1961" bytes
but the actual size is "1978" bytes.
ERROR: File "/usr/lib/lp/model/HPGL2" should have mtime "974188800"
but the actual mtime is "833439600".
ERROR: File "/usr/lib/lp/model/HPGL2" should have size "1805" bytes
but the actual size is "1822" bytes.
ERROR: File "/usr/lib/lp/model/HPGL2.cent" should have mtime
"974188800" but the actual mtime is "877939200".
ERROR: File "/usr/lib/lp/model/HPGL2.cent" should have size "1370"
bytes but the actual size is "1372" bytes.
ERROR: File "/usr/lib/lp/model/PCL1" should have mtime "974188800"
but the actual mtime is "998366685".
ERROR: File "/usr/lib/lp/model/PCL1" should have size "6357" bytes
but the actual size is "6373" bytes.
ERROR: File "/usr/lib/lp/model/PCL2" should have mtime "974188800"
but the actual mtime is "833439600".
ERROR: File "/usr/lib/lp/model/PCL2" should have size "7358" bytes
but the actual size is "7375" bytes.
ERROR: File "/usr/lib/lp/model/PCL3" should have mtime "974188800"
but the actual mtime is "833439600".
ERROR: File "/usr/lib/lp/model/PCL3" should have size "18009" bytes
but the actual size is "18029" bytes.
ERROR: File "/usr/lib/lp/model/PCL4" should have mtime "974188800"
but the actual mtime is "998366686".
ERROR: File "/usr/lib/lp/model/PCL4" should have size "23987" bytes
but the actual size is "23719" bytes.
ERROR: File "/usr/lib/lp/model/PCL5" should have mtime "974188800"
but the actual mtime is "998366686".
ERROR: File "/usr/lib/lp/model/PCL5" should have size "51877" bytes
but the actual size is "51624" bytes.
ERROR: File "/usr/lib/lp/model/deskjet1200C" should have mtime
"974188800" but the actual mtime is "998366689".
ERROR: File "/usr/lib/lp/model/deskjet1200C" should have size "46641"
bytes but the actual size is "46395" bytes.
ERROR: File "/usr/lib/lp/model/dumb" should have mtime "974188800"
but the actual mtime is "877939200".
ERROR: File "/usr/lib/lp/model/dumb" should have size "3658" bytes
but the actual size is "3674" bytes.
ERROR: File "/usr/lib/lp/model/dumbplot" should have mtime
"974188800" but the actual mtime is "877939200".
ERROR: File "/usr/lib/lp/model/dumbplot" should have size "450" bytes
but the actual size is "467" bytes.
ERROR: File "/usr/lib/lp/model/hp256x.cent" should have mtime
"974188800" but the actual mtime is "877939200".
ERROR: File "/usr/lib/lp/model/hp256x.cent" should have size "8161"
bytes but the actual size is "8164" bytes.
ERROR: File "/usr/lib/lp/model/hp2684a" should have mtime "974188800"
but the actual mtime is "833439600".
ERROR: File "/usr/lib/lp/model/hp2684a" should have size "18396"
bytes but the actual size is "18412" bytes.
ERROR: File "/usr/lib/lp/model/hpC1208a" should have mtime
"974188800" but the actual mtime is "998366688".
ERROR: File "/usr/lib/lp/model/hpC1208a" should have size "39326"
bytes but the actual size is "39055" bytes.
ERROR: File "/usr/lib/lp/model/postscript" should have mtime
"974188800" but the actual mtime is "877939200".
ERROR: File "/usr/lib/lp/model/postscript" should have size "6689"
bytes but the actual size is "6696" bytes.
ERROR: File "/usr/lib/lp/model/rmodel" should have mtime "974188800"
but the actual mtime is "998366689".
ERROR: File "/usr/lib/lp/model/rmodel" should have size "5256" bytes
but the actual size is "5263" bytes.
ERROR: Fileset "PrinterMgmt.LP-SPOOL,l=/,r=B.11.11" had file errors.


ERROR: Verify failed PrinterMgmt.LP-SPOOL,l=/,r=B.11.11

PD: don´t woryy about the points, I have them in mind
skt_skt
Honored Contributor

Re: lpsstat error

try

"swconfig \*"

and see any lp related filesets reporting corrupted..
Dennis Handly
Acclaimed Contributor

Re: lpsstat error

>WK: # swverify -v -x fix=true PrinterMgmt.LP-SPOOL
>This will fix your permission of your lpstat,

I would NOT do this to fix lpstat since there is a cksum and mtime problem.

>I did not change the lpstat file, as it is in use.

It is trivial to change if in use, if that is the solution.

You don't know where you got it? What is the date of that file?

>ERROR: File "/usr/bin/lpstat" should have mtime "1153012225" but the actual mtime is "1203415424".

This indicates you have a newer version?

>How can I solve the cksum issue?

By getting the proper file back.
catastro
Super Advisor

Re: lpsstat error

Hi. There are no corrupted filesets, or at least they don´t appear. I have no clue on what is happening.
catastro
Super Advisor

Re: lpsstat error

Hi Dennis. Thanks for the replies. The thing is that this is not my server, I only give support. I can not be sure that noone changed the file, but I think noone did it although. And the other question now is, how do I get the older file? This happens since I updates from HPUX 11.00 to 11iv1 (a cold intallation).
I already installed on the server the last bundle of patches (SupportPlus 0712).
Dennis Handly
Acclaimed Contributor

Re: lpsstat error

>I can not be sure that no one changed the file

swverify says it was changed.

>And the other question now is, how do I get the older file?

Either from a patch or the original install CD.
I'll check later to see what the proper date and cksum lpstat should have.
Dennis Handly
Acclaimed Contributor

Re: lpsstat error

On my 11.11 system I have:
/var/adm/sw/products/PrinterMgmt/LP-SPOOL/INFO:path /usr/bin/lpstat
-r-sr-xr-x 1 lp bin 53248 Jun 2 2006 /usr/bin/lpstat
$ stat_date -t 1153012225
time_t value is: 07/15/06 18:10:25 PDT
$ stat_date -t 1203415424
time_t value is: 02/19/08 02:03:44 PST

So your lpstat was changed recently and the version it wants is newer than my version.

$ cksum /usr/bin/lpstat
1827412722 53248 /usr/bin/lpstat

This matches with PHCO_34822. Yours matches with PHCO_34993.

So just install PHCO_34993 again.
catastro
Super Advisor

Re: lpsstat error

Hi Dennis. I just reinstalled the patch you just said, the PHCO_34993, and it keeps saying that. I looked at the cheksum, and is the same as the one that appears in the patch description:

guadalaj:/var/adm#cksum /usr/bin/lpstat
3517407409 53248 /usr/bin/lpstat

In the patch description it appears:
3517407409 53248 /usr/bin/lpstat

I don´t see what is going on here. Anyone does?
Dennis Handly
Acclaimed Contributor

Re: lpsstat error

>I just reinstalled the patch you just said, the PHCO_34993, and it keeps saying that. I looked at the checksum, and is the same as the one that appears in the patch description:

At least the swverify output should be good.

Your original problem was with lpsched?
Are you running it as root to try to see if you can get a core file?
catastro
Super Advisor

Re: lpsstat error

Hi Dennis. My original problem was with lpstat.
With the swverufy now I get the following error

ERROR: Verify failed PrinterMgmt.LP-SPOOL,l=/,r=B.11.11

It does not say anything now about the mtime or about the printers. I do not get any core file
Dennis Handly
Acclaimed Contributor

Re: lpsstat error

ERROR: Verify failed PrinterMgmt.LP-SPOOL,l=/,r=B.11.11
>It does not say anything now about the mtime or about the printers.

What does the swjob details say is wrong?

>I do not get any core file

Do you get that Memory fault?
catastro
Super Advisor

Re: lpsstat error

That is the output of the swjob. I keep having the memory fault error, but no coredumps.