01.12.2012 Views

Problem Solving and Troubleshooting in AIX 5L - IBM Redbooks

Problem Solving and Troubleshooting in AIX 5L - IBM Redbooks

Problem Solving and Troubleshooting in AIX 5L - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

echo “\033)0B\c”<br />

The comm<strong>and</strong> used to set the pitch to 12 cpi is:<br />

echo “\033(s12H\033)s12H\c”<br />

To make changes to character sets not supported by the script, you will have to<br />

add changes to the <strong>in</strong>terface script. In this case, the user chooses the pitch with<br />

the lp -o pitch=condensed or similar comm<strong>and</strong>.<br />

In PowerPC virtual pr<strong>in</strong>ters, the pr<strong>in</strong>ter is <strong>in</strong>itialized by the ci attribute sequences.<br />

These are set from SMIT, the Web-based System Manager, or lsvirprt. Users<br />

can select the pr<strong>in</strong>t style <strong>and</strong> pitch with the qprt -s style -p pitch flags. To<br />

support font sizes or styles not supported by the virtual pr<strong>in</strong>ter requires special<br />

customization. For PCL pr<strong>in</strong>ters, this is usually done with the mU attribute.<br />

What is the LANG variable set to?<br />

For the PowerPC pr<strong>in</strong>t subsystem us<strong>in</strong>g virtual pr<strong>in</strong>ters, the <strong>in</strong>stallation LANG<br />

variable will set the <strong>in</strong>put translation table for the particular virtual pr<strong>in</strong>ter. This will<br />

show up <strong>in</strong> the _X attribute. For example:<br />

# lsvirprt -q asc -d lp0 -a X<br />

Name Description Value<br />

_X CODE PAGE of pr<strong>in</strong>t file ISO8859-1<br />

The default codepage for the US is ISO8859-1. One of the problems that people<br />

experience is that files with box characters do not pr<strong>in</strong>t the boxes correctly when<br />

this codepage is used. To pr<strong>in</strong>t a simple ASCII text file that conta<strong>in</strong>s l<strong>in</strong>e draw<strong>in</strong>g<br />

characters, specify the <strong>IBM</strong>850 codepage by chang<strong>in</strong>g the X attribute, or us<strong>in</strong>g<br />

the follow<strong>in</strong>g comm<strong>and</strong>:<br />

$ qprt -X<strong>IBM</strong>850 -Ptext /tmp/testfile<br />

12.1.8 The pr<strong>in</strong>t job requests the wrong paper size<br />

For PCL or other ASCII pr<strong>in</strong>ters, make sure the default paper size is set right <strong>in</strong><br />

the virtual pr<strong>in</strong>ter or <strong>in</strong>terface script. Next, make sure the comm<strong>and</strong> for the paper<br />

size is not embedded <strong>in</strong> the file. For PostScript files, the paper size is often<br />

def<strong>in</strong>ed <strong>in</strong>side the pr<strong>in</strong>t file itself, <strong>and</strong> there is little you can do <strong>in</strong> the virtual pr<strong>in</strong>ter<br />

or <strong>in</strong>terface script to change it. You should go back to the application that creates<br />

the file.<br />

12.1.9 Network pr<strong>in</strong>t jobs fail to pr<strong>in</strong>t<br />

When pr<strong>in</strong>t<strong>in</strong>g to network pr<strong>in</strong>t servers <strong>and</strong> network pr<strong>in</strong>ters, the goal of<br />

troubleshoot<strong>in</strong>g is to isolate the problem to the pr<strong>in</strong>t client or server <strong>and</strong> then to<br />

do local problem determ<strong>in</strong>ation.<br />

374 <strong>Problem</strong> <strong>Solv<strong>in</strong>g</strong> <strong>and</strong> <strong>Troubleshoot<strong>in</strong>g</strong> <strong>in</strong> <strong>AIX</strong> <strong>5L</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!