Operating System - HP-UX
1834621 Members
2388 Online
110069 Solutions
New Discussion

Verify spooler in several machines

 
hboo
Frequent Advisor

Verify spooler in several machines

Hello all

I want to know, how I can compare the spool in two different HPUX 11.11 servers, I mean, if I have the same printers configured in both machines.

Thanks...
Hayse:)
5 REPLIES 5
Ivan Ferreira
Honored Contributor

Re: Verify spooler in several machines

What about running lpc stat or lpstat on both machines and comparing the resulsts?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Redhat
Trusted Contributor

Re: Verify spooler in several machines

compare the files on the folder "/var/spool/lp/request/ in both the server.

Geoff Wild
Honored Contributor

Re: Verify spooler in several machines

run
lpstat -v >/tmp/`uname -n`.lpdevices.out
on both servers

Then scp/rcp one of those files to the other machine and do a diff on them.


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
hboo
Frequent Advisor

Re: Verify spooler in several machines

Hello

lpstat results is:
List with status each of the queues every server, doesn't work because is a very long list

*************************************

The result of compare /var/spool/lp/request/print_queue_name in both servers is the same file in both servers

*************************************
I exec lpstat -v >/tmp/`uname -n`.lpdevices.out in both servers, then copy one file to another server, and make a diff command, but the result I don't know how to interpret it

Thanks for ypur help.
Dennis Handly
Acclaimed Contributor

Re: Verify spooler in several machines

>I don't know how to interpret it

If you could attach your diff output we could help. If the lpstat -v output is not sorted the same on each system and each is one line, you could do:
$ lpstat -v | sort >/tmp/$(uname -n).lpdevices.out

Then diff the two files.