Problems adding remote printer

  • Follow


OS:  Openserver 5.0.5
Task:   add a remote printer via rlpconf or scoadmin
What should happen:   printer queue should show up in output of lpstat
-t
What's happening instead: proper entries are created in /etc/printcap,
var/spool/lpd and /var/spool/lp/admins/lp/printers.   However when I
run lpstat -t the printer does not show up.
---output of lpstat -t-----
scheduler is running
no system default destination
device for s093ptr002: /dev/lp0
device for s093ptr003: s093ptr003@s093ptr003
s093ptr002 accepting requests since Sat Feb 13 12:42:23 2010
printer s093ptr002 is idle. enabled since Sat Feb 13 12:42:23 2010.
available.
---end----

 When I attempt to start scoadmin printer, I'm getting this in /var/
adm/syslog
----tail of syslog-----
Feb  9 10:28:36 scosysv syslog: SCOADM: localhost {sco_printer}
{s093ptr003} err
or SCO_OFACE_MSG_ERROR {error
{{SCO_OSA_ERR_PROCESSING_FAILURE_ON_ATTRIBUTE {Gen
eral failure occurred in processing attribute printerDescription}}
{SCO_NONSTD_C
MDS_ERR_lpstat {UX:lpstat: ERROR: Printer "s093ptr003" does not exist.
 TO FIX: Use the "lpstat -p all" command to list all known
printers}}}}

I had to delete a badly configured queue with the same name
(s093ptr003) before attempting to create this one.   I used the
scoadmin printer tool to delete the old queue.   I've also found that
if I manually delete the entries in printcap, lpd and lp/printers,
scoadmin will start just fine.   Ideas?

Thanks in advance.

Dave
0
Reply dthacker 2/9/2011 3:57:05 PM

This is a multi-part message in MIME format.
--------------040008070109040503040405
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

dthacker wrote:
> OS:  Openserver 5.0.5
> Task:   add a remote printer via rlpconf or scoadmin
> What should happen:   printer queue should show up in output of lpstat
> -t
> What's happening instead: proper entries are created in /etc/printcap,
> var/spool/lpd and /var/spool/lp/admins/lp/printers.   However when I
> run lpstat -t the printer does not show up.
> ---output of lpstat -t-----
> scheduler is running
> no system default destination
> device for s093ptr002: /dev/lp0
> device for s093ptr003: s093ptr003@s093ptr003
> s093ptr002 accepting requests since Sat Feb 13 12:42:23 2010
> printer s093ptr002 is idle. enabled since Sat Feb 13 12:42:23 2010.
> available.
> ---end----
>
>  When I attempt to start scoadmin printer, I'm getting this in /var/
> adm/syslog
> ----tail of syslog-----
> Feb  9 10:28:36 scosysv syslog: SCOADM: localhost {sco_printer}
> {s093ptr003} err
> or SCO_OFACE_MSG_ERROR {error
> {{SCO_OSA_ERR_PROCESSING_FAILURE_ON_ATTRIBUTE {Gen
> eral failure occurred in processing attribute printerDescription}}
> {SCO_NONSTD_C
> MDS_ERR_lpstat {UX:lpstat: ERROR: Printer "s093ptr003" does not exist.
>  TO FIX: Use the "lpstat -p all" command to list all known
> printers}}}}
>
> I had to delete a badly configured queue with the same name
> (s093ptr003) before attempting to create this one.   I used the
> scoadmin printer tool to delete the old queue.   I've also found that
> if I manually delete the entries in printcap, lpd and lp/printers,
> scoadmin will start just fine.   Ideas?
>
> Thanks in advance.
>
> Dave
>
>
>   
Dave, 

I have always felt that the SCO rlp was a poor choice. See this post on 
using rlpr: *http://preview.tinyurl.com/6dwq49e*

-- 
                                     Steve Fabac
                                      S.M. Fabac & Associates
                                       816/765-1670


--------------040008070109040503040405
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
dthacker wrote:
<blockquote
 cite="mida2ebf420-8a06-4e77-a069-82b15c8a8629@i40g2000yqh.googlegroups.com"
 type="cite">
  <pre wrap="">OS:  Openserver 5.0.5
Task:   add a remote printer via rlpconf or scoadmin
What should happen:   printer queue should show up in output of lpstat
-t
What's happening instead: proper entries are created in /etc/printcap,
var/spool/lpd and /var/spool/lp/admins/lp/printers.   However when I
run lpstat -t the printer does not show up.
---output of lpstat -t-----
scheduler is running
no system default destination
device for s093ptr002: /dev/lp0
device for s093ptr003: s093ptr003@s093ptr003
s093ptr002 accepting requests since Sat Feb 13 12:42:23 2010
printer s093ptr002 is idle. enabled since Sat Feb 13 12:42:23 2010.
available.
---end----

 When I attempt to start scoadmin printer, I'm getting this in /var/
adm/syslog
----tail of syslog-----
Feb  9 10:28:36 scosysv syslog: SCOADM: localhost {sco_printer}
{s093ptr003} err
or SCO_OFACE_MSG_ERROR {error
{{SCO_OSA_ERR_PROCESSING_FAILURE_ON_ATTRIBUTE {Gen
eral failure occurred in processing attribute printerDescription}}
{SCO_NONSTD_C
MDS_ERR_lpstat {UX:lpstat: ERROR: Printer "s093ptr003" does not exist.
 TO FIX: Use the "lpstat -p all" command to list all known
printers}}}}

I had to delete a badly configured queue with the same name
(s093ptr003) before attempting to create this one.   I used the
scoadmin printer tool to delete the old queue.   I've also found that
if I manually delete the entries in printcap, lpd and lp/printers,
scoadmin will start just fine.   Ideas?

Thanks in advance.

Dave


  </pre>
</blockquote>
Dave,&nbsp; <br>
<br>
I have always felt that the SCO rlp was a poor choice. See this post on
using rlpr: <b><a class="moz-txt-link-freetext" href="http://preview.tinyurl.com/6dwq49e">http://preview.tinyurl.com/6dwq49e</a></b><br>
<pre class="moz-signature" cols="360">-- 
                                     Steve Fabac
                                      S.M. Fabac &amp; Associates
                                       816/765-1670</pre>
</body>
</html>

--------------040008070109040503040405--
0
Reply Steve 2/9/2011 5:41:24 PM


dthacker wrote:
> OS:  Openserver 5.0.5
> Task:   add a remote printer via rlpconf or scoadmin
> What should happen:   printer queue should show up in output of lpstat
> -t
> What's happening instead: proper entries are created in /etc/printcap,
> var/spool/lpd and /var/spool/lp/admins/lp/printers.   However when I
> run lpstat -t the printer does not show up.
> ---output of lpstat -t-----
> scheduler is running
> no system default destination
> device for s093ptr002: /dev/lp0
> device for s093ptr003: s093ptr003@s093ptr003
> s093ptr002 accepting requests since Sat Feb 13 12:42:23 2010
> printer s093ptr002 is idle. enabled since Sat Feb 13 12:42:23 2010.
> available.
> ---end----
> 
>  When I attempt to start scoadmin printer, I'm getting this in /var/
> adm/syslog
> ----tail of syslog-----
> Feb  9 10:28:36 scosysv syslog: SCOADM: localhost {sco_printer}
> {s093ptr003} err
> or SCO_OFACE_MSG_ERROR {error
> {{SCO_OSA_ERR_PROCESSING_FAILURE_ON_ATTRIBUTE {Gen
> eral failure occurred in processing attribute printerDescription}}
> {SCO_NONSTD_C
> MDS_ERR_lpstat {UX:lpstat: ERROR: Printer "s093ptr003" does not exist.
>  TO FIX: Use the "lpstat -p all" command to list all known
> printers}}}}
> 
> I had to delete a badly configured queue with the same name
> (s093ptr003) before attempting to create this one.   I used the
> scoadmin printer tool to delete the old queue.   I've also found that
> if I manually delete the entries in printcap, lpd and lp/printers,
> scoadmin will start just fine.   Ideas?
> 
> Thanks in advance.
> 
> Dave
> 
> 

Dave,

I have always felt that the SCO rlp was a poor choice. See this
post on using rlpr: http://preview.tinyurl.com/6dwq49e


-- 
                                      Steve Fabac
                                       S.M. Fabac & Associates
                                        816/765-1670
0
Reply Steve 2/9/2011 11:52:08 PM

On Feb 9, 5:52=A0pm, "Steve M. Fabac, Jr." <smfa...@att.net> wrote:
> dthacker wrote:
> > OS: =A0Openserver 5.0.5
> > Task: =A0 add a remote printer via rlpconf or scoadmin
> > What should happen: =A0 printer queue should show up in output of lpsta=
t
> > -t
> > What's happening instead: proper entries are created in /etc/printcap,
> > var/spool/lpd and /var/spool/lp/admins/lp/printers. =A0 However when I
> > run lpstat -t the printer does not show up.
> > ---output of lpstat -t-----
> > scheduler is running
> > no system default destination
> > device for s093ptr002: /dev/lp0
> > device for s093ptr003: s093ptr003@s093ptr003
> > s093ptr002 accepting requests since Sat Feb 13 12:42:23 2010
> > printer s093ptr002 is idle. enabled since Sat Feb 13 12:42:23 2010.
> > available.
> > ---end----
>
> > =A0When I attempt to start scoadmin printer, I'm getting this in /var/
> > adm/syslog
> > ----tail of syslog-----
> > Feb =A09 10:28:36 scosysv syslog: SCOADM: localhost {sco_printer}
> > {s093ptr003} err
> > or SCO_OFACE_MSG_ERROR {error
> > {{SCO_OSA_ERR_PROCESSING_FAILURE_ON_ATTRIBUTE {Gen
> > eral failure occurred in processing attribute printerDescription}}
> > {SCO_NONSTD_C
> > MDS_ERR_lpstat {UX:lpstat: ERROR: Printer "s093ptr003" does not exist.
> > =A0TO FIX: Use the "lpstat -p all" command to list all known
> > printers}}}}
>
> > I had to delete a badly configured queue with the same name
> > (s093ptr003) before attempting to create this one. =A0 I used the
> > scoadmin printer tool to delete the old queue. =A0 I've also found that
> > if I manually delete the entries in printcap, lpd and lp/printers,
> > scoadmin will start just fine. =A0 Ideas?
>
> > Thanks in advance.
>
> > Dave
>
> Dave,
>
> I have always felt that the SCO rlp was a poor choice. See this
> post on using rlpr:http://preview.tinyurl.com/6dwq49e
>
Steve

rlpr looks interesting, but I'm not sure can take 140 servers down
that road right now.  In the meantime, I'm still looking for a
configuration file for scoadmin printers that might explain the error
message I'm receiving.

TIA

Dave


0
Reply dthacker 2/28/2011 9:22:26 PM

On 2/28/2011 1:22 PM, dthacker wrote:
> On Feb 9, 5:52 pm, "Steve M. Fabac, Jr."<smfa...@att.net>  wrote:
>> dthacker wrote:
>>> OS:  Openserver 5.0.5
>>> Task:   add a remote printer via rlpconf or scoadmin
>>> What should happen:   printer queue should show up in output of lpstat
>>> -t
>>> What's happening instead: proper entries are created in /etc/printcap,
>>> var/spool/lpd and /var/spool/lp/admins/lp/printers.   However when I
>>> run lpstat -t the printer does not show up.
>>> ---output of lpstat -t-----
>>> scheduler is running
>>> no system default destination
>>> device for s093ptr002: /dev/lp0
>>> device for s093ptr003: s093ptr003@s093ptr003
>>> s093ptr002 accepting requests since Sat Feb 13 12:42:23 2010
>>> printer s093ptr002 is idle. enabled since Sat Feb 13 12:42:23 2010.
>>> available.
>>> ---end----
>>
>>>   When I attempt to start scoadmin printer, I'm getting this in /var/
>>> adm/syslog
>>> ----tail of syslog-----
>>> Feb  9 10:28:36 scosysv syslog: SCOADM: localhost {sco_printer}
>>> {s093ptr003} err
>>> or SCO_OFACE_MSG_ERROR {error
>>> {{SCO_OSA_ERR_PROCESSING_FAILURE_ON_ATTRIBUTE {Gen
>>> eral failure occurred in processing attribute printerDescription}}
>>> {SCO_NONSTD_C
>>> MDS_ERR_lpstat {UX:lpstat: ERROR: Printer "s093ptr003" does not exist.
>>>   TO FIX: Use the "lpstat -p all" command to list all known
>>> printers}}}}
>>
>>> I had to delete a badly configured queue with the same name
>>> (s093ptr003) before attempting to create this one.   I used the
>>> scoadmin printer tool to delete the old queue.   I've also found that
>>> if I manually delete the entries in printcap, lpd and lp/printers,
>>> scoadmin will start just fine.   Ideas?
>>
>>> Thanks in advance.
>>
>>> Dave
>>
>> Dave,
>>
>> I have always felt that the SCO rlp was a poor choice. See this
>> post on using rlpr:http://preview.tinyurl.com/6dwq49e
>>
> Steve
>
> rlpr looks interesting, but I'm not sure can take 140 servers down
> that road right now.  In the meantime, I'm still looking for a
> configuration file for scoadmin printers that might explain the error
> message I'm receiving.
>
> TIA
>
> Dave
>
>

This may be simplistic, but how about just renaming the printer and 
documenting that that old name is not to be used in the future?

Or try grep'ing through the entire /usr/spool, /var/spool hierarchy for 
the name?

Have you manually emptied and deleted the spooler control files and the 
data files associated with the printer?

-- 
----------------------------------------------------
Pat Welch, UBB Computer Services, a WCS Affiliate
            SCO Authorized Partner
            Microlite BackupEdge Certified Reseller
            Unix/Linux/Windows/Hardware Sales/Support
            (209) 745-1401 Cell: (209) 251-9120
            E-mail: patubb@inreach.com
----------------------------------------------------
0
Reply Pat 3/1/2011 1:04:38 AM

This is a multi-part message in MIME format.
--------------070104090709070903010300
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

dthacker wrote:
> On Feb 9, 5:52 pm, "Steve M. Fabac, Jr." <smfa...@att.net> wrote:
>   
>> dthacker wrote:
>>     
>>> OS:  Openserver 5.0.5
>>> Task:   add a remote printer via rlpconf or scoadmin
>>> What should happen:   printer queue should show up in output of lpstat
>>> -t
>>> What's happening instead: proper entries are created in /etc/printcap,
>>> var/spool/lpd and /var/spool/lp/admins/lp/printers.   However when I
>>> run lpstat -t the printer does not show up.
>>> ---output of lpstat -t-----
>>> scheduler is running
>>> no system default destination
>>> device for s093ptr002: /dev/lp0
>>> device for s093ptr003: s093ptr003@s093ptr003
>>> s093ptr002 accepting requests since Sat Feb 13 12:42:23 2010
>>> printer s093ptr002 is idle. enabled since Sat Feb 13 12:42:23 2010.
>>> available.
>>> ---end----
>>>       
>>>  When I attempt to start scoadmin printer, I'm getting this in /var/
>>> adm/syslog
>>> ----tail of syslog-----
>>> Feb  9 10:28:36 scosysv syslog: SCOADM: localhost {sco_printer}
>>> {s093ptr003} err
>>> or SCO_OFACE_MSG_ERROR {error
>>> {{SCO_OSA_ERR_PROCESSING_FAILURE_ON_ATTRIBUTE {Gen
>>> eral failure occurred in processing attribute printerDescription}}
>>> {SCO_NONSTD_C
>>> MDS_ERR_lpstat {UX:lpstat: ERROR: Printer "s093ptr003" does not exist.
>>>  TO FIX: Use the "lpstat -p all" command to list all known
>>> printers}}}}
>>>       
>>> I had to delete a badly configured queue with the same name
>>> (s093ptr003) before attempting to create this one.   I used the
>>> scoadmin printer tool to delete the old queue.   I've also found that
>>> if I manually delete the entries in printcap, lpd and lp/printers,
>>> scoadmin will start just fine.   Ideas?
>>>       
>>> Thanks in advance.
>>>       
>>> Dave
>>>       
>> Dave,
>>
>> I have always felt that the SCO rlp was a poor choice. See this
>> post on using rlpr:http://preview.tinyurl.com/6dwq49e
>>
>>     
> Steve
>
> rlpr looks interesting, but I'm not sure can take 140 servers down
> that road right now.  In the meantime, I'm still looking for a
> configuration file for scoadmin printers that might explain the error
> message I'm receiving.
>
> TIA
>
> Dave
>
>
>
>   
Dave,

You have the same printer problem on 140 servers? or just one? Change 
the one with the problem and you will wonder why you waited. I know that 
I resisted using netcat for the longest time and after I converted on 
system I became a  true believer and apostle.

On a customer's SCO 5.0.5 system after I installed OSS646C  (April 
2008), the customer complained that the system was real slow and would 
not shut down and reboot. When I logged in and checked  there were 
repeated messages in syslog:

"unix lpd[9999] unknown printer: (BSD format)" repeated over and over 
10-20 times per second and inflated syslog to over 240Mb..

Removing OSS646C stopped the error message. Searching on the problem 
revealed OSS663a the lpd daemon patch (specific to 5.0.6) that installed 
after OSS646C was reinstalled and that fixed the problem of unknown 
printer messages logged to syslog.

>           Dear SCO Customer, 
>            
>           Support Level Supplement (SLS) OSS663A, the LPD supplement for 
>           OpenServer 5.0.6 with OSS646, addresses a problem that 
>           occurs when either OSS646a or OSS646b is installed on an 
>           OpenServer 5.0.6 system with lpd printers defined. 
>            
>           With OSS646 installed, lpd has a problem parsing 
>           /etc/printcap that results in a lot of entries in the 
>           syslog about unknown printer, similar to this: 
>            
>             Jul 24 15:16:27 scosysv lpd[9160]: unknown printer: 026 


Maybe your problem is related to OSS646C recently installed?

What I dislike with SCO's rlp is that lpstat -t has to go out to each 
printer host and ask for the printer's status. One printer, no problem. 
40 printers forget it. Also the problems with lpstat with rlp broke my 
printer administration menu:

                                                  
PRINTER=laser                
                    PRINTER CONTROL MENU FOR smf 
                            


                         1) ENABLE A PRINTER

                         2) DISABLE A PRINTER

                         3) CHANGE PRINTERS

                         4) KILL A PRINT REQUEST

                         5) MOVE PRINT REQUESTS FROM
                            ONE PRINTER TO ANOTHER

                         6) PRINTER STATUS

                         7) RESTART PRINTERS

                         8) KILL ALL JOBS ON SPECIFIED PRINTER

                         X) EXIT
PLEASE SELECT (or 'H' for HELP):

Nearly all of the above choices rely on using output of lpstat -p to get 
a working list of printers and jobs. The hang-up of a single rlp host 
prevents the scripts from running as designed.

#                       PRINTER CONTROL MENU
# @(#)  LPCMENU 1.6     9/6/96"
#
lplist() {
        lpstat -p | awk '{ printf "%-14s", $2
                           for (i = 2; i <= NF; i++ ) {
                                if ( $i == "enabled" )
                                    printf "%8s\n", $i
                                if ( $i == "disabled") {
                                    printf "%8s:", $i
                                    getline
                                    printf "%s\n", $0 } } } ';
}
prtpth=/usr/spool/lp/admins/lp/interfaces
trap '' 2
while(true)
do
tput clear
tput smso
echo  "                                                  
PRINTER=$LPDEST       
tput cuu1
echo  "                    PRINTER CONTROL MENU FOR 
$USER                      
tput rmso
cat <<!
....
        2)
        tput clear;
        echo "LIST OF PRINTERS......";
        echo "===============================";
        lplist
#        echo "";
        echo "===============================";
        echo "SELECT PRINTER TO DISABLE : ";
        read pra;
        if [ `lpstat -p $pra | awk ' { print $2 } ' | grep 
"${pra:-null}$"  ` ]
         then
                echo  "Enter a Reason for disabling " $pra "-c"
                read reason
         disable -r"${reason}" $pra;
        elif test  -n "$pra"
        then
         echo "PRINTER "$pra" DOES NOT EXIST Press <ENTER> to Return to 
Menu";
         read pra;
        fi
        echo;;
....
        8)
        tput clear
        echo " THE FOLLOWING IS A LIST OF ACTIVE PRINT REQUESTS..... ";
        echo "======================================================";
        lpstat -u
        echo "======================================================";
        echo "SELECT PRINTER TO CANCLE : \c"
        read pra
        [ `lpstat -p | awk ' { print $2 } ' | grep "${pra:-null}$"  ` ] && {
             cnt=0
             for i in `lpstat $pra | awk '{ print $1 }' `
             do
                cnt=`expr $cnt + 1`
                cancel $i
             done
             [ $cnt -eq "0" ] && {
               echo
               echo "JOBS for PRINTER "$pra" DO NOT EXIST  Press <ENTER> 
to Retu
               } || {
               echo
true
               echo "Press <ENTER> to return to Menu"
true
             }
             read me
          } || {
            [ -n "$pra" ]  && {
             echo;echo "PRINTER "$pra" DOES NOT EXIST  Press <ENTER> to 
Return t
             read me
              }
          }
        ;;
        X|x)

-- 
                                     Steve Fabac
                                      S.M. Fabac & Associates
                                       816/765-1670


--------------070104090709070903010300
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
dthacker wrote:
<blockquote
 cite="mid21442bd4-2b84-47d2-9182-e61c2f109468@w7g2000pre.googlegroups.com"
 type="cite">
  <pre wrap="">On Feb 9, 5:52&nbsp;pm, "Steve M. Fabac, Jr." <a class="moz-txt-link-rfc2396E" href="mailto:smfa...@att.net">&lt;smfa...@att.net&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">dthacker wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">OS: &nbsp;Openserver 5.0.5
Task: &nbsp; add a remote printer via rlpconf or scoadmin
What should happen: &nbsp; printer queue should show up in output of lpstat
-t
What's happening instead: proper entries are created in /etc/printcap,
var/spool/lpd and /var/spool/lp/admins/lp/printers. &nbsp; However when I
run lpstat -t the printer does not show up.
---output of lpstat -t-----
scheduler is running
no system default destination
device for s093ptr002: /dev/lp0
device for s093ptr003: s093ptr003@s093ptr003
s093ptr002 accepting requests since Sat Feb 13 12:42:23 2010
printer s093ptr002 is idle. enabled since Sat Feb 13 12:42:23 2010.
available.
---end----
      </pre>
    </blockquote>
    <blockquote type="cite">
      <pre wrap="">&nbsp;When I attempt to start scoadmin printer, I'm getting this in /var/
adm/syslog
----tail of syslog-----
Feb &nbsp;9 10:28:36 scosysv syslog: SCOADM: localhost {sco_printer}
{s093ptr003} err
or SCO_OFACE_MSG_ERROR {error
{{SCO_OSA_ERR_PROCESSING_FAILURE_ON_ATTRIBUTE {Gen
eral failure occurred in processing attribute printerDescription}}
{SCO_NONSTD_C
MDS_ERR_lpstat {UX:lpstat: ERROR: Printer "s093ptr003" does not exist.
&nbsp;TO FIX: Use the "lpstat -p all" command to list all known
printers}}}}
      </pre>
    </blockquote>
    <blockquote type="cite">
      <pre wrap="">I had to delete a badly configured queue with the same name
(s093ptr003) before attempting to create this one. &nbsp; I used the
scoadmin printer tool to delete the old queue. &nbsp; I've also found that
if I manually delete the entries in printcap, lpd and lp/printers,
scoadmin will start just fine. &nbsp; Ideas?
      </pre>
    </blockquote>
    <blockquote type="cite">
      <pre wrap="">Thanks in advance.
      </pre>
    </blockquote>
    <blockquote type="cite">
      <pre wrap="">Dave
      </pre>
    </blockquote>
    <pre wrap="">Dave,

I have always felt that the SCO rlp was a poor choice. See this
post on using rlpr:<a class="moz-txt-link-freetext" href="http://preview.tinyurl.com/6dwq49e">http://preview.tinyurl.com/6dwq49e</a>

    </pre>
  </blockquote>
  <pre wrap=""><!---->Steve

rlpr looks interesting, but I'm not sure can take 140 servers down
that road right now.  In the meantime, I'm still looking for a
configuration file for scoadmin printers that might explain the error
message I'm receiving.

TIA

Dave



  </pre>
</blockquote>
Dave,<br>
<br>
You have the same printer problem on 140 servers? or just one? Change
the one with the problem and you will wonder why you waited. I know
that I resisted using netcat for the longest time and after I converted
on system I became a&nbsp; true believer and apostle.<br>
<br>
On a customer's SCO 5.0.5 system after I installed OSS646C&nbsp; (April
2008), the customer complained that the system was real slow and would
not shut down and reboot. When I logged in and checked&nbsp; there were
repeated messages in syslog: <br>
<br>
"unix lpd[9999] unknown printer: (BSD format)" repeated over and over
10-20 times per second and inflated syslog to over 240Mb..<br>
<br>
Removing OSS646C stopped the error message. Searching on the problem
revealed OSS663a the lpd daemon patch (specific to 5.0.6) that
installed after OSS646C was reinstalled and that fixed the problem of
unknown printer messages logged to syslog. <br>
<br>
<blockquote type="cite"><span class="Apple-style-span"
 style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
 class="Apple-style-span"
 style="font-family: 'Courier New',Arial,Helvetica,Tahoma,sans-serif; font-size: 13px;">
  <pre>          Dear SCO Customer, 
           
          Support Level Supplement (SLS) OSS663A, the LPD supplement for 
          OpenServer 5.0.6 with OSS646, addresses a problem that 
          occurs when either OSS646a or OSS646b is installed on an 
          OpenServer 5.0.6 system with lpd printers defined. 
           
          With OSS646 installed, lpd has a problem parsing 
          /etc/printcap that results in a lot of entries in the 
          syslog about unknown printer, similar to this: 
           
            Jul 24 15:16:27 scosysv lpd[9160]: unknown printer: 026 </pre>
  </span></span></blockquote>
<br>
<br>
Maybe your problem is related to OSS646C recently installed? <br>
<br>
What I dislike with SCO's rlp is that lpstat -t has to go out to each
printer host and ask for the printer's status. One printer, no problem.
40 printers forget it. Also the problems with lpstat with rlp broke my
printer administration menu:<br>
<br>
<tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
PRINTER=laser&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PRINTER CONTROL MENU FOR smf
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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RINTER STATUS<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7) RESTART PRINTERS<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8) KILL ALL JOBS ON SPECIFIED PRINTER<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; X) EXIT<br>
PLEASE SELECT (or 'H' for HELP): <br>
<br>
Nearly all of the above choices rely on using output of lpstat -p to
get a working list of printers and jobs. The hang-up of a single rlp
host prevents the scripts from running as designed.<br>
<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PRINTER CONTROL MENU<br>
# @(#)&nbsp; LPCMENU 1.6&nbsp;&nbsp;&nbsp;&nbsp; 9/6/96"<br>
#<br>
lplist() {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lpstat -p | awk '{ printf "%-14s", $2<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs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nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
tput rmso<br>
cat &lt;&lt;!<br>
....<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tput clear;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "LIST OF PRINTERS......";<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "===============================";<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lplist<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "";<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "===============================";<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "SELECT PRINTER TO DISABLE : ";<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; read pra;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if [ `lpstat -p $pra | awk ' { print $2 } ' | grep
"${pra:-null}$"&nbsp; ` ] <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; then<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo&nbsp; "Enter a Reason for disabling " $pra "-c"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; read reason<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; disable -r"${reason}" $pra;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; elif test&nbsp; -n "$pra"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; then<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "PRINTER "$pra" DOES NOT EXIST Press &lt;ENTER&gt; to
Return to Menu";<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; read pra;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fi<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo;;<br>
....<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tput clear<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo " THE FOLLOWING IS A LIST OF ACTIVE PRINT REQUESTS..... ";<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "======================================================";<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lpstat -u<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "======================================================";<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "SELECT PRINTER TO CANCLE : \c"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; read pra<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ `lpstat -p | awk ' { print $2 } ' | grep "${pra:-null}$"&nbsp; ` ]
&amp;&amp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cnt=0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for i in `lpstat $pra | awk '{ print $1 }' `<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; do<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cnt=`expr $cnt + 1`<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cancel $i<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; done<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ $cnt -eq "0" ] &amp;&amp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "JOBS for PRINTER "$pra" DO NOT EXIST&nbsp; Press
&lt;ENTER&gt; to Retu<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } || {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo<br>
true<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "Press &lt;ENTER&gt; to return to Menu"<br>
true<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; read me<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } || {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ -n "$pra" ]&nbsp; &amp;&amp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo;echo "PRINTER "$pra" DOES NOT EXIST&nbsp; Press
&lt;ENTER&gt; to Return t<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; read me<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; X|x)<br>
</tt><br>
<pre class="moz-signature" cols="360">-- 
                                     Steve Fabac
                                      S.M. Fabac &amp; Associates
                                       816/765-1670</pre>
</body>
</html>

--------------070104090709070903010300--
0
Reply Steve 3/2/2011 10:17:59 PM

This is a multi-part message in MIME format.
--------------020007070305070608030804
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

dthacker wrote:
> On Feb 9, 5:52 pm, "Steve M. Fabac, Jr." <smfa...@att.net> wrote:
>   
>> dthacker wrote:
>>     
>>> OS:  Openserver 5.0.5
>>> Task:   add a remote printer via rlpconf or scoadmin
>>> What should happen:   printer queue should show up in output of lpstat
>>> -t
>>> What's happening instead: proper entries are created in /etc/printcap,
>>> var/spool/lpd and /var/spool/lp/admins/lp/printers.   However when I
>>> run lpstat -t the printer does not show up.
>>> ---output of lpstat -t-----
>>> scheduler is running
>>> no system default destination
>>> device for s093ptr002: /dev/lp0
>>> device for s093ptr003: s093ptr003@s093ptr003
>>> s093ptr002 accepting requests since Sat Feb 13 12:42:23 2010
>>> printer s093ptr002 is idle. enabled since Sat Feb 13 12:42:23 2010.
>>> available.
>>> ---end----
>>>       
>>>  When I attempt to start scoadmin printer, I'm getting this in /var/
>>> adm/syslog
>>> ----tail of syslog-----
>>> Feb  9 10:28:36 scosysv syslog: SCOADM: localhost {sco_printer}
>>> {s093ptr003} err
>>> or SCO_OFACE_MSG_ERROR {error
>>> {{SCO_OSA_ERR_PROCESSING_FAILURE_ON_ATTRIBUTE {Gen
>>> eral failure occurred in processing attribute printerDescription}}
>>> {SCO_NONSTD_C
>>> MDS_ERR_lpstat {UX:lpstat: ERROR: Printer "s093ptr003" does not exist.
>>>  TO FIX: Use the "lpstat -p all" command to list all known
>>> printers}}}}
>>>       
>>> I had to delete a badly configured queue with the same name
>>> (s093ptr003) before attempting to create this one.   I used the
>>> scoadmin printer tool to delete the old queue.   I've also found that
>>> if I manually delete the entries in printcap, lpd and lp/printers,
>>> scoadmin will start just fine.   Ideas?
>>>       
>>> Thanks in advance.
>>>       
>>> Dave
>>>       
>> Dave,
>>
>> I have always felt that the SCO rlp was a poor choice. See this
>> post on using rlpr:http://preview.tinyurl.com/6dwq49e
>>
>>     
> Steve
>
> rlpr looks interesting, but I'm not sure can take 140 servers down
> that road right now.  In the meantime, I'm still looking for a
> configuration file for scoadmin printers that might explain the error
> message I'm receiving.
>
> TIA
>
> Dave
>
>
>
>   
Dave,

You have the same printer problem on 140 servers? or just one? Change 
the one with the problem and you will wonder why you waited. I know that 
I resisted using netcat for the longest time and after I converted on 
system I became a  true believer and apostle.

On a customer's SCO 5.0.5 system after I installed OSS646C  (April 
2008), the customer complained that the system was real slow and would 
not shut down and reboot. When I logged in and checked  there were 
repeated messages in syslog:

"unix lpd[9999] unknown printer: (BSD format)" repeated over and over 
10-20 times per second and inflated syslog to over 240Mb..

Removing OSS646C stopped the error message. Searching on the problem 
revealed OSS663a the lpd daemon patch (specific to 5.0.6) that installed 
after OSS646C was reinstalled and that fixed the problem of unknown 
printer messages logged to syslog.

>           Dear SCO Customer, 
>            
>           Support Level Supplement (SLS) OSS663A, the LPD supplement for 
>           OpenServer 5.0.6 with OSS646, addresses a problem that 
>           occurs when either OSS646a or OSS646b is installed on an 
>           OpenServer 5.0.6 system with lpd printers defined. 
>            
>           With OSS646 installed, lpd has a problem parsing 
>           /etc/printcap that results in a lot of entries in the 
>           syslog about unknown printer, similar to this: 
>            
>             Jul 24 15:16:27 scosysv lpd[9160]: unknown printer: 026 


Maybe your problem is related to OSS646C recently installed?

What I dislike with SCO's rlp is that lpstat -t has to go out to each 
printer host and ask for the printer's status. One printer, no problem. 
40 printers forget it. Also the problems with lpstat with rlp broke my 
printer administration menu:

                                                  
PRINTER=laser                
                    PRINTER CONTROL MENU FOR smf 
                            


                         1) ENABLE A PRINTER

                         2) DISABLE A PRINTER

                         3) CHANGE PRINTERS

                         4) KILL A PRINT REQUEST

                         5) MOVE PRINT REQUESTS FROM
                            ONE PRINTER TO ANOTHER

                         6) PRINTER STATUS

                         7) RESTART PRINTERS

                         8) KILL ALL JOBS ON SPECIFIED PRINTER

                         X) EXIT
PLEASE SELECT (or 'H' for HELP):

Nearly all of the above choices rely on using output of lpstat -p to get 
a working list of printers and jobs. The hang-up of a single rlp host 
prevents the scripts from running as designed.

#                       PRINTER CONTROL MENU
# @(#)  LPCMENU 1.6     9/6/96"
#
lplist() {
        lpstat -p | awk '{ printf "%-14s", $2
                           for (i = 2; i <= NF; i++ ) {
                                if ( $i == "enabled" )
                                    printf "%8s\n", $i
                                if ( $i == "disabled") {
                                    printf "%8s:", $i
                                    getline
                                    printf "%s\n", $0 } } } ';
}
prtpth=/usr/spool/lp/admins/lp/interfaces
trap '' 2
while(true)
do
tput clear
tput smso
echo  "                                                  
PRINTER=$LPDEST       
tput cuu1
echo  "                    PRINTER CONTROL MENU FOR 
$USER                      
tput rmso
cat <<!
....
        2)
        tput clear;
        echo "LIST OF PRINTERS......";
        echo "===============================";
        lplist
#        echo "";
        echo "===============================";
        echo "SELECT PRINTER TO DISABLE : ";
        read pra;
        if [ `lpstat -p $pra | awk ' { print $2 } ' | grep 
"${pra:-null}$"  ` ]
         then
                echo  "Enter a Reason for disabling " $pra "-c"
                read reason
         disable -r"${reason}" $pra;
        elif test  -n "$pra"
        then
         echo "PRINTER "$pra" DOES NOT EXIST Press <ENTER> to Return to 
Menu";
         read pra;
        fi
        echo;;
....
        8)
        tput clear
        echo " THE FOLLOWING IS A LIST OF ACTIVE PRINT REQUESTS..... ";
        echo "======================================================";
        lpstat -u
        echo "======================================================";
        echo "SELECT PRINTER TO CANCLE : \c"
        read pra
        [ `lpstat -p | awk ' { print $2 } ' | grep "${pra:-null}$"  ` ] && {
             cnt=0
             for i in `lpstat $pra | awk '{ print $1 }' `
             do
                cnt=`expr $cnt + 1`
                cancel $i
             done
             [ $cnt -eq "0" ] && {
               echo
               echo "JOBS for PRINTER "$pra" DO NOT EXIST  Press <ENTER> 
to Retu
               } || {
               echo
true
               echo "Press <ENTER> to return to Menu"
true
             }
             read me
          } || {
            [ -n "$pra" ]  && {
             echo;echo "PRINTER "$pra" DOES NOT EXIST  Press <ENTER> to 
Return t
             read me
              }
          }
        ;;
        X|x)

-- 
                                     Steve Fabac
                                      S.M. Fabac & Associates
                                       816/765-1670


--------------020007070305070608030804
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
dthacker wrote:
<blockquote
 cite="mid21442bd4-2b84-47d2-9182-e61c2f109468@w7g2000pre.googlegroups.com"
 type="cite">
  <pre wrap="">On Feb 9, 5:52&nbsp;pm, "Steve M. Fabac, Jr." <a
 class="moz-txt-link-rfc2396E" href="mailto:smfa...@att.net">&lt;smfa...@att.net&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">dthacker wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">OS: &nbsp;Openserver 5.0.5
Task: &nbsp; add a remote printer via rlpconf or scoadmin
What should happen: &nbsp; printer queue should show up in output of lpstat
-t
What's happening instead: proper entries are created in /etc/printcap,
var/spool/lpd and /var/spool/lp/admins/lp/printers. &nbsp; However when I
run lpstat -t the printer does not show up.
---output of lpstat -t-----
scheduler is running
no system default destination
device for s093ptr002: /dev/lp0
device for s093ptr003: s093ptr003@s093ptr003
s093ptr002 accepting requests since Sat Feb 13 12:42:23 2010
printer s093ptr002 is idle. enabled since Sat Feb 13 12:42:23 2010.
available.
---end----
      </pre>
    </blockquote>
    <blockquote type="cite">
      <pre wrap="">&nbsp;When I attempt to start scoadmin printer, I'm getting this in /var/
adm/syslog
----tail of syslog-----
Feb &nbsp;9 10:28:36 scosysv syslog: SCOADM: localhost {sco_printer}
{s093ptr003} err
or SCO_OFACE_MSG_ERROR {error
{{SCO_OSA_ERR_PROCESSING_FAILURE_ON_ATTRIBUTE {Gen
eral failure occurred in processing attribute printerDescription}}
{SCO_NONSTD_C
MDS_ERR_lpstat {UX:lpstat: ERROR: Printer "s093ptr003" does not exist.
&nbsp;TO FIX: Use the "lpstat -p all" command to list all known
printers}}}}
      </pre>
    </blockquote>
    <blockquote type="cite">
      <pre wrap="">I had to delete a badly configured queue with the same name
(s093ptr003) before attempting to create this one. &nbsp; I used the
scoadmin printer tool to delete the old queue. &nbsp; I've also found that
if I manually delete the entries in printcap, lpd and lp/printers,
scoadmin will start just fine. &nbsp; Ideas?
      </pre>
    </blockquote>
    <blockquote type="cite">
      <pre wrap="">Thanks in advance.
      </pre>
    </blockquote>
    <blockquote type="cite">
      <pre wrap="">Dave
      </pre>
    </blockquote>
    <pre wrap="">Dave,

I have always felt that the SCO rlp was a poor choice. See this
post on using rlpr:<a class="moz-txt-link-freetext"
 href="http://preview.tinyurl.com/6dwq49e">http://preview.tinyurl.com/6dwq49e</a>

    </pre>
  </blockquote>
  <pre wrap=""><!---->Steve

rlpr looks interesting, but I'm not sure can take 140 servers down
that road right now.  In the meantime, I'm still looking for a
configuration file for scoadmin printers that might explain the error
message I'm receiving.

TIA

Dave



  </pre>
</blockquote>
Dave,<br>
<br>
You have the same printer problem on 140 servers? or just one? Change
the one with the problem and you will wonder why you waited. I know
that I resisted using netcat for the longest time and after I converted
on system I became a&nbsp; true believer and apostle.<br>
<br>
On a customer's SCO 5.0.5 system after I installed OSS646C&nbsp; (April
2008), the customer complained that the system was real slow and would
not shut down and reboot. When I logged in and checked&nbsp; there were
repeated messages in syslog: <br>
<br>
"unix lpd[9999] unknown printer: (BSD format)" repeated over and over
10-20 times per second and inflated syslog to over 240Mb..<br>
<br>
Removing OSS646C stopped the error message. Searching on the problem
revealed OSS663a the lpd daemon patch (specific to 5.0.6) that
installed after OSS646C was reinstalled and that fixed the problem of
unknown printer messages logged to syslog. <br>
<br>
<blockquote type="cite"><span class="Apple-style-span"
 style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
 class="Apple-style-span"
 style="font-family: 'Courier New',Arial,Helvetica,Tahoma,sans-serif; font-size: 13px;">
  <pre>          Dear SCO Customer, 
           
          Support Level Supplement (SLS) OSS663A, the LPD supplement for 
          OpenServer 5.0.6 with OSS646, addresses a problem that 
          occurs when either OSS646a or OSS646b is installed on an 
          OpenServer 5.0.6 system with lpd printers defined. 
           
          With OSS646 installed, lpd has a problem parsing 
          /etc/printcap that results in a lot of entries in the 
          syslog about unknown printer, similar to this: 
           
            Jul 24 15:16:27 scosysv lpd[9160]: unknown printer: 026 </pre>
  </span></span></blockquote>
<br>
<br>
Maybe your problem is related to OSS646C recently installed? <br>
<br>
What I dislike with SCO's rlp is that lpstat -t has to go out to each
printer host and ask for the printer's status. One printer, no problem.
40 printers forget it. Also the problems with lpstat with rlp broke my
printer administration menu:<br>
<br>
<tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
PRINTER=laser&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PRINTER CONTROL MENU FOR smf
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
<br>
<br>
&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6) PRINTER STATUS<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7) RESTART PRINTERS<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8) KILL ALL JOBS ON SPECIFIED PRINTER<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; X) EXIT<br>
PLEASE SELECT (or 'H' for HELP): <br>
<br>
Nearly all of the above choices rely on using output of lpstat -p to
get a working list of printers and jobs. The hang-up of a single rlp
host prevents the scripts from running as designed.<br>
<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PRINTER CONTROL MENU<br>
# @(#)&nbsp; LPCMENU 1.6&nbsp;&nbsp;&nbsp;&nbsp; 9/6/96"<br>
#<br>
lplist() {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lpstat -p | awk '{ printf "%-14s", $2<br>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p; PRINTER CONTROL MENU FOR
$USER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
tput rmso<br>
cat &lt;&lt;!<br>
....<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tput clear;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "LIST OF PRINTERS......";<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "===============================";<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lplist<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "";<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "===============================";<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "SELECT PRINTER TO DISABLE : ";<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; read pra;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if [ `lpstat -p $pra | awk ' { print $2 } ' | grep
"${pra:-null}$"&nbsp; ` ] <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; then<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo&nbsp; "Enter a Reason for disabling " $pra "-c"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; read reason<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; disable -r"${reason}" $pra;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; elif test&nbsp; -n "$pra"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; then<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "PRINTER "$pra" DOES NOT EXIST Press &lt;ENTER&gt; to
Return to Menu";<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; read pra;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fi<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo;;<br>
....<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tput clear<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo " THE FOLLOWING IS A LIST OF ACTIVE PRINT REQUESTS..... ";<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "======================================================";<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lpstat -u<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "======================================================";<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "SELECT PRINTER TO CANCLE : \c"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; read pra<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ `lpstat -p | awk ' { print $2 } ' | grep "${pra:-null}$"&nbsp; ` ]
&amp;&amp; {<br>
&nbsp;&nbsp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&nbsp;&nbsp; echo<br>
true<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "Press &lt;ENTER&gt; to return to Menu"<br>
true<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; read me<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } || {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ -n "$pra" ]&nbsp; &amp;&amp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo;echo "PRINTER "$pra" DOES NOT EXIST&nbsp; Press
&lt;ENTER&gt; to Return t<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; read me<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; X|x)<br>
</tt><br>
<pre class="moz-signature" cols="360">-- 
                                     Steve Fabac
                                      S.M. Fabac &amp; Associates
                                       816/765-1670</pre>
</body>
</html>

--------------020007070305070608030804--
0
Reply Steve 3/3/2011 2:22:27 AM

On 3/2/2011 5:17 PM, Steve M. Fabac, Jr. wrote:

I don't know why, but the last two message from you appear blank in 
thunderbird. But when I view source I can see there is content. 
Something borked the mime formatting maybe?

It prevented this reply from including any quoted material too. I didn't 
strip it.

-- 
bkw
0
Reply brian109 (760) 3/3/2011 5:28:21 PM

On 3/3/2011 12:28 PM, Brian K. White wrote:
> On 3/2/2011 5:17 PM, Steve M. Fabac, Jr. wrote:
>
> I don't know why, but the last two message from you appear blank in
> thunderbird. But when I view source I can see there is content.
> Something borked the mime formatting maybe?
>
> It prevented this reply from including any quoted material too. I didn't
> strip it.
>

Might be because the top headers declare multipart without defining any 
boundary.
Your email, at least as I received it which might not be the way you 
sent it, has:
   Mime-Version: 1.0
   Content-Type: multipart/alternative;

If it's going to be a multipart mime, then it should define a boundary 
like so:
   MIME-Version: 1.0
   Content-Type: multipart/related; boundary=226752340229846

Or, if it's not going to be a multipart then it should not declare 
itself to be a multipart, like so:
   Mime-Version: 1.0
   Content-Type: text/plain; charset=ISO-8859-1; format=flowed
   Content-Transfer-Encoding: 7bit

Or for plain text by simply not including any mime or content-type 
headers at all.

-- 
bkw
0
Reply brian109 (760) 3/3/2011 5:47:19 PM

Brian K. White wrote:
> On 3/2/2011 5:17 PM, Steve M. Fabac, Jr. wrote:
>
> I don't know why, but the last two message from you appear blank in 
> thunderbird. But when I view source I can see there is content. 
> Something borked the mime formatting maybe?
>
> It prevented this reply from including any quoted material too. I 
> didn't strip it.
>
Yeah, I see that too. I'm not sure what is going on. I use Thuderbird on 
my XP system for e-mail. I have been switching between plane text and 
html based upon the need to include pictures in-line. This reply is 
being composed html. I'll switch to plane text and send a second reply.
to see what happens.

-- 
                                     Steve Fabac
                                      S.M. Fabac & Associates
                                       816/765-1670

0
Reply smfabac (423) 3/3/2011 5:57:28 PM

Brian K. White wrote:
> On 3/2/2011 5:17 PM, Steve M. Fabac, Jr. wrote:
> 
> I don't know why, but the last two message from you appear blank in 
> thunderbird. But when I view source I can see there is content. 
> Something borked the mime formatting maybe?
> 
> It prevented this reply from including any quoted material too. I didn't 
> strip it.
> 

Yeah, I see that too. I'm not sure what is going on. I use Thuderbird
on my XP system for e-mail. I have been switching between plain text
and html based upon the need to include pictures in-line. This reply
is being composed plain text. (not plane - oops)


-- 
                                      Steve Fabac
                                       S.M. Fabac & Associates
                                        816/765-1670
0
Reply smfabac (423) 3/3/2011 6:00:16 PM

dthacker wrote:
> On Feb 9, 5:52 pm, "Steve M. Fabac, Jr." <smfa...@att.net> wrote:
>> dthacker wrote:
>>> OS:  Openserver 5.0.5
>>> Task:   add a remote printer via rlpconf or scoadmin
>>> What should happen:   printer queue should show up in output of lpstat
>>> -t
>>> What's happening instead: proper entries are created in /etc/printcap,
>>> var/spool/lpd and /var/spool/lp/admins/lp/printers.   However when I
>>> run lpstat -t the printer does not show up.
>>> ---output of lpstat -t-----
>>> scheduler is running
>>> no system default destination
>>> device for s093ptr002: /dev/lp0
>>> device for s093ptr003: s093ptr003@s093ptr003
>>> s093ptr002 accepting requests since Sat Feb 13 12:42:23 2010
>>> printer s093ptr002 is idle. enabled since Sat Feb 13 12:42:23 2010.
>>> available.
>>> ---end----
>>>  When I attempt to start scoadmin printer, I'm getting this in /var/
>>> adm/syslog
>>> ----tail of syslog-----
>>> Feb  9 10:28:36 scosysv syslog: SCOADM: localhost {sco_printer}
>>> {s093ptr003} err
>>> or SCO_OFACE_MSG_ERROR {error
>>> {{SCO_OSA_ERR_PROCESSING_FAILURE_ON_ATTRIBUTE {Gen
>>> eral failure occurred in processing attribute printerDescription}}
>>> {SCO_NONSTD_C
>>> MDS_ERR_lpstat {UX:lpstat: ERROR: Printer "s093ptr003" does not exist.
>>>  TO FIX: Use the "lpstat -p all" command to list all known
>>> printers}}}}
>>> I had to delete a badly configured queue with the same name
>>> (s093ptr003) before attempting to create this one.   I used the
>>> scoadmin printer tool to delete the old queue.   I've also found that
>>> if I manually delete the entries in printcap, lpd and lp/printers,
>>> scoadmin will start just fine.   Ideas?
>>> Thanks in advance.
>>> Dave
>> Dave,
>>
>> I have always felt that the SCO rlp was a poor choice. See this
>> post on using rlpr:http://preview.tinyurl.com/6dwq49e
>>
> Steve
> 
> rlpr looks interesting, but I'm not sure can take 140 servers down
> that road right now.  In the meantime, I'm still looking for a
> configuration file for scoadmin printers that might explain the error
> message I'm receiving.
> 
> TIA
> 
> Dave
> 
> 
> 

Dave,

You have the same printer problem on 140 servers? or just one? Change
the one with the problem and you will wonder why you waited. I know that
I resisted using netcat for the longest time and after I converted one
system I became a  true believer and apostle.

On a customer's SCO 5.0.5 system after I installed OSS646C (April 2008),
the customer complained that the system was real slow and would not shut
down and reboot. When I logged in and checked  there were repeated messages
in syslog: "unix lpd[9999] unknown printer: (BSD format)" repeated over
and over 10-20 times per second and inflated syslog to over 240Mb.

Removing OSS646C stopped the error message. Searching on the problem
revealed OSS663a the lpd daemon patch (specific to 5.0.6) that installed
after OSS646C was reinstalled and that fixed the problem of unknown printer
messages logged to syslog.

>>
>>           Dear SCO Customer, 
>>            
>>           Support Level Supplement (SLS) OSS663A, the LPD supplement for 
>>           OpenServer 5.0.6 with OSS646, addresses a problem that 
>>           occurs when either OSS646a or OSS646b is installed on an 
>>           OpenServer 5.0.6 system with lpd printers defined. 
>>            
>>           With OSS646 installed, lpd has a problem parsing 
>>           /etc/printcap that results in a lot of entries in the 
>>           syslog about unknown printer, similar to this: 
>>            
>>             Jul 24 15:16:27 scosysv lpd[9160]: unknown printer: 026 

Maybe your problem is related to OSS646C recently installed?

What I dislike with SCO's rlp is that lpstat -t has to go out to each
printer host and ask for the printer's status. One printer, no problem.
40 printers forget it. Also the problems with lpstat with rlp broke my
printer administration menu:
> 
>                                                   PRINTER=laser                
>                     PRINTER CONTROL MENU FOR smf                             
> 
> 
>                          1) ENABLE A PRINTER
> 
>                          2) DISABLE A PRINTER
> 
>                          3) CHANGE PRINTERS
> 
>                          4) KILL A PRINT REQUEST
> 
>                          5) MOVE PRINT REQUESTS FROM
>                             ONE PRINTER TO ANOTHER
> 
>                          6) PRINTER STATUS
> 
>                          7) RESTART PRINTERS
> 
>                          8) KILL ALL JOBS ON SPECIFIED PRINTER
> 
>                          X) EXIT
> PLEASE SELECT (or 'H' for HELP):



Nearly all of the above choices rely on using output of lpstat -p
or lpstat -u to get a working list of printers and jobs. The hang-up
of a single rlp host and/or the format returned prevents the scripts
from running as designed.

#                       PRINTER CONTROL MENU
# @(#)  LPCMENU 1.6     9/6/96"
#
lplist() {
         lpstat -p | awk '{ printf "%-14s", $2
                            for (i = 2; i <= NF; i++ ) {
                                 if ( $i == "enabled" )
                                     printf "%8s\n", $i
                                 if ( $i == "disabled") {
                                     printf "%8s:", $i
                                     getline
                                     printf "%s\n", $0 } } } ';
}
prtpth=/usr/spool/lp/admins/lp/interfaces
trap '' 2
while(true)
do
tput clear
tput smso
echo  "                                                  PRINTER=$LPDEST
tput cuu1
echo  "                    PRINTER CONTROL MENU FOR $USER
tput rmso
cat <<!
....
         2)
         tput clear;
         echo "LIST OF PRINTERS......";
         echo "===============================";
         lplist
#        echo "";
         echo "===============================";
         echo "SELECT PRINTER TO DISABLE : ";
         read pra;
         if [ `lpstat -p $pra | awk ' { print $2 } ' | grep "${pra:-null}$"  ` ]
          then
                 echo  "Enter a Reason for disabling " $pra "-c"
                 read reason
          disable -r"${reason}" $pra;
         elif test  -n "$pra"
         then
          echo "PRINTER "$pra" DOES NOT EXIST Press <ENTER> to Return to Menu";
          read pra;
         fi
         echo;;
....
         8)
         tput clear
         echo " THE FOLLOWING IS A LIST OF ACTIVE PRINT REQUESTS..... ";
         echo "======================================================";
         lpstat -u
         echo "======================================================";
         echo "SELECT PRINTER TO CANCLE : \c"
         read pra
         [ `lpstat -p | awk ' { print $2 } ' | grep "${pra:-null}$"  ` ] && {
              cnt=0
              for i in `lpstat $pra | awk '{ print $1 }' `
              do
                 cnt=`expr $cnt + 1`
                 cancel $i
              done
              [ $cnt -eq "0" ] && {
                echo
                echo "JOBS for PRINTER "$pra" DO NOT EXIST  Press <ENTER> to Return to Menu"
                } || {
                echo
                true
                echo "Press <ENTER> to return to Menu"
                true
              }
              read me
           } || {
             [ -n "$pra" ]  && {
              echo;echo "PRINTER "$pra" DOES NOT EXIST  Press <ENTER> to Return to Menu"
              read me
               }
           }
         ;;
         X|x)

-- 
                                      Steve Fabac
                                       S.M. Fabac & Associates
                                        816/765-1670
0
Reply smfabac (423) 3/3/2011 6:15:33 PM

On 3/3/2011 1:00 PM, Steve M. Fabac, Jr. wrote:
> Brian K. White wrote:
>> On 3/2/2011 5:17 PM, Steve M. Fabac, Jr. wrote:
>>
>> I don't know why, but the last two message from you appear blank in
>> thunderbird. But when I view source I can see there is content.
>> Something borked the mime formatting maybe?
>>
>> It prevented this reply from including any quoted material too. I
>> didn't strip it.
>>
>
> Yeah, I see that too. I'm not sure what is going on. I use Thuderbird
> on my XP system for e-mail. I have been switching between plain text
> and html based upon the need to include pictures in-line. This reply
> is being composed plain text. (not plane - oops)
>
>

One of my replies seems to be delayed or lost.
I pointed out that the blank mails had content-type that declared 
multipart without defining any boundary.

The last two from you were fine.

-- 
bkw
0
Reply brian109 (760) 3/3/2011 6:44:50 PM

Brian K. White wrote:
> On 3/3/2011 12:28 PM, Brian K. White wrote:
>> On 3/2/2011 5:17 PM, Steve M. Fabac, Jr. wrote:
>>
>> I don't know why, but the last two message from you appear blank in
>> thunderbird. But when I view source I can see there is content.
>> Something borked the mime formatting maybe?
>>
>> It prevented this reply from including any quoted material too. I didn't
>> strip it.
>>
> 
> Might be because the top headers declare multipart without defining any 
> boundary.
> Your email, at least as I received it which might not be the way you 
> sent it, has:
>   Mime-Version: 1.0
>   Content-Type: multipart/alternative;
> 
> If it's going to be a multipart mime, then it should define a boundary 
> like so:
>   MIME-Version: 1.0
>   Content-Type: multipart/related; boundary=226752340229846
> 
> Or, if it's not going to be a multipart then it should not declare 
> itself to be a multipart, like so:
>   Mime-Version: 1.0
>   Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>   Content-Transfer-Encoding: 7bit
> 
> Or for plain text by simply not including any mime or content-type 
> headers at all.
> 

I can't explain it. My version of Thunderbird is version 1.5.0.9 (20061207)
maybe time to upgrade?

I have not upgraded because I hate feature creep and changes in the
look and feel navigating the product.  I think I may have upgraded at
one time but was unhappy and restored my system from a backup to get
rid of the upgrade. If the problem is only on mime sent to C.U.S.M.
I'll be sure to switch to plain text before posting. I have not received
a complaint about html mail exchanged with clients.

-- 
                                      Steve Fabac
                                       S.M. Fabac & Associates
                                        816/765-1670
0
Reply smfabac (423) 3/3/2011 8:49:08 PM

13 Replies
163 Views

(page loaded in 0.276 seconds)

Similiar Articles:


















7/10/2012 10:32:48 AM


Reply: