lpstat issues


 
Thread Tools Search this Thread
Operating Systems AIX lpstat issues
# 8  
Old 08-24-2009
Well I think I'd delete all of the files/queues and then start over.

Here are the steps I do when I have to migrate print queues from one machine to another. I don't recall ever having an issue after doing these steps.

1. Copy /etc/qconfig file over to new system
2. Refresh the qconfig file by typing, "enq -d"
3. Copy /var/spool/lpd/pio/@local/custom files to new system
4. Copy /var/spool/lpd/pio/@local/dev files to new system
5. Copy /var/spool/lpd/pio/@local/ddi files to new system
6. Copy /etc/hosts file to new system
7. vi qmigrate.sh and paste in the following

#!/bin/ksh

cp /usr/lpp/printers.rte/inst_root/var/spool/lpd/pio/@local/smit/* \
/var/spool/lpd/pio/@local/smit

cd /var/spool/lpd/pio/@local/custom
chmod 775 /var/spool/lpd/pio/@local/custom
for file in `ls`
do
chmod 664 $file
QNAME=`echo $file | cut -d':' -f1`
DEVICE=`echo $file | cut -d':' -f2`
chvirprt -q $QNAME -d $DEVICE
done

8. chmod 700 qmigrate.sh
9. ./qmigrate.sh
10. Test print queue(s)
# 9  
Old 08-24-2009
Hi,

I tried it and it does not work.

I tried this command and I get these messages:

lppchk -c
lppchk: 0504-208 Size of /usr/lib/lpd/digest is 44634,
expected value was 44874.
lppchk: 0504-208 Size of /usr/lib/lpd/qstatus is 60220,
expected value was 60236.
lppchk: 0504-212 The checksum for file /usr/lib/lpd/rembak is 44075,
expected value is 49331.
lppchk: 0504-208 Size of /usr/lib/lpd/pio/etc/piodigest is 126236,
.....

There is a lot of lines located in /usr/lib/lpd

Quote:
Originally Posted by homeyjoe
Well I think I'd delete all of the files/queues and then start over.

Here are the steps I do when I have to migrate print queues from one machine to another. I don't recall ever having an issue after doing these steps.

1. Copy /etc/qconfig file over to new system
2. Refresh the qconfig file by typing, "enq -d"
3. Copy /var/spool/lpd/pio/@local/custom files to new system
4. Copy /var/spool/lpd/pio/@local/dev files to new system
5. Copy /var/spool/lpd/pio/@local/ddi files to new system
6. Copy /etc/hosts file to new system
7. vi qmigrate.sh and paste in the following

#!/bin/ksh

cp /usr/lpp/printers.rte/inst_root/var/spool/lpd/pio/@local/smit/* \
/var/spool/lpd/pio/@local/smit

cd /var/spool/lpd/pio/@local/custom
chmod 775 /var/spool/lpd/pio/@local/custom
for file in `ls`
do
chmod 664 $file
QNAME=`echo $file | cut -d':' -f1`
DEVICE=`echo $file | cut -d':' -f2`
chvirprt -q $QNAME -d $DEVICE
done

8. chmod 700 qmigrate.sh
9. ./qmigrate.sh
10. Test print queue(s)
# 10  
Old 08-25-2009
Hi,

I haven't worked with printers on AIX since ages but generally:
please do a lslpp -L | grep printer and check the output.
You should have 2 filesets ... they should be in state committed or at least applied.
Run lppchk -v and lppchk -c on these files. If they are indeed corrupted, you can do a forced overwrite from the current patchset or install a newer patch level of the filesets...

A nice help page about printing on AIX can be found here http://www.angelfire.com/il2/sgillen/printers.html ... a bit old but some things never really change Smilie

Kind regards
zxmaus
# 11  
Old 08-28-2009
Hi,

I resolved the issues, I installed the good version of the files from another server. Now it works fine.

Thanks guys
Quote:
Originally Posted by zxmaus
Hi,

I haven't worked with printers on AIX since ages but generally:
please do a lslpp -L | grep printer and check the output.
You should have 2 filesets ... they should be in state committed or at least applied.
Run lppchk -v and lppchk -c on these files. If they are indeed corrupted, you can do a forced overwrite from the current patchset or install a newer patch level of the filesets...

A nice help page about printing on AIX can be found here pSeries Tech Tips/Printing ... a bit old but some things never really change Smilie

Kind regards
zxmaus
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Lpstat output in mb?

Hi all, Newbie to the site here and fairly novice to UNIX\LINUX so please bear with me.:) My question is; can the lpstat -t command show the size of the print jobs in mb or gb instead of bytes? They would be much easier to view this way. For more information of what I'm on about; please... (1 Reply)
Discussion started by: Melikins
1 Replies

2. UNIX for Advanced & Expert Users

lpstat ?

Hi, can somebody tell me what is the difference between `lpstat -s` and `lpstat -v` command. thanks. (3 Replies)
Discussion started by: anandgodse
3 Replies

3. Solaris

Need help with lpstat command

Hi lpstat reports me "Failed to contact service for xxxxxx: not-found" lpstat -p test -l printer test unknown state. enabled since Oct 27 12:01 2009. available. Remote Name: XXXXXX Remote Server: sunsrv Failed to contact service for xxxxxx: not-found can someone help... (1 Reply)
Discussion started by: xtreams
1 Replies

4. Shell Programming and Scripting

lpstat

Hi, here is lpstat command with queue name. queue name is not valid but lpstat takes my local queue and shows the following results.is there any way that i can stop it after waring message and dont take local print queue. i would like to print a message that queue is not valid but when lpstat... (4 Replies)
Discussion started by: sagii
4 Replies

5. Shell Programming and Scripting

lpstat throughs warning

Hi Guys, I am geting this message ".status: (WARNING): 0781-102 Invalid printer name: xerox".i m reading printer name from a text file.i try to print the value reading from file is correct xerox. if run lpstat -pxerox -l it works fine but when i try to read from file it throughs warining.please... (1 Reply)
Discussion started by: sagii
1 Replies

6. Shell Programming and Scripting

How to compare result lpstat with hostsfile

Hi there all, I got a long list of printers installed and a longer list of printers in my hosts file. In the hosts file I got a even longer list of printers in the hosts file I got the IP adress of all printers next to the printer name. How can I get a script working to get the printers... (0 Replies)
Discussion started by: draco
0 Replies

7. HP-UX

Lpstat

Hi there all.. I got 4 HP ux systems and 4 AIX systems here. when I let LPSTAT make a report in aix with -W I get a really nice report. Example: Queue Dev Status Job Files User PP % Blks Cp Rnk -------------------- -------------- --------- ------ ------------------ ---------- ---- ---... (12 Replies)
Discussion started by: draco
12 Replies

8. SCO

non root user can't use lpstat

I don't know if anyone still looks at this forum or not, but here goes. I've got two identical SCO OpenServer 5.0.7 machines, fully patched and updated. On one the non-root user can do lpstat -p and it will display a list of printers and their status, on the other: $ lpstat -p UX:lpstat: ERROR:... (3 Replies)
Discussion started by: checkpro
3 Replies

9. UNIX for Advanced & Expert Users

lpstat

Hi, I have been using Hp so far and I am a new user to Solaris.. well, in HP Unix, if I type 'lpstat' if gives me the list of printers connected to the network and their status.. but in solaris it only gives the details if there is any job on the queue. I just want to know what is the... (3 Replies)
Discussion started by: sskb
3 Replies

10. UNIX for Dummies Questions & Answers

lpstat -t

When you do a lpstat -t it displays all your printers and tty values. Where is the file that stores this information in SCO 5.0.5? Thanks in advance Stufine (2 Replies)
Discussion started by: stufine
2 Replies
Login or Register to Ask a Question