Article View: comp.protocols.appletalk
Article #4048Problems hiding Personal LW NTR
From: Aleks
Date: Sat, 23 Jan 1993 18:45
Date: Sat, 23 Jan 1993 18:45
68 lines
3292 bytes
3292 bytes
I'm having trouble hiding a Personal LaserWriter NTR. When it's hidden via
Novell's Appletalk Printing Services, all is dandy - its NBP type is changed
from LaserWriter to LaserShared. However, when I try doing this via lwpr in
CAP using what I *think* is the same PostScript used by NetWare (as I found it
among the Netware ATPS stuff), the type does not get changed; instead, the
word LaserShared gets appended to the original name ('Personal LaserWriter
NTR' becomes 'Personal LaserWriter NTRLaserShared' after i dump the PostScript
to the LW and the LW continues advertising itself as NBP type LaserWriter).
I should mention that the same PostScript works just fine on a LaserWriter
Plus and LaserWriter NT. SInce our LaserWriters are hidden via NetWare, I use
cron jobs that check periodically if they are indeed still hidden and dunp
this PostScript to them if they are found not to be (becasue they've been
powered-cycled, for example).
This is the PostScript file I dump with lwpr:
----------------------------------------------------------------------
%!PS-Adobe-
%
% HIDE.PS 11/27/91
%
% change the LaserWriter's persistent NBP type to "LaserShared"
% depends on *undocumented* feature of Apple LaserWriters
% Novell is NOT responsible for results if used on other printers
% reverse by using ATPSSHOW command
%
% If used on LaserWriter compatible and it fails, reverse results
% with the printer NAMER.
%
serverdict begin 0 exitserver
/name 64 string def
statusdict begin
name printername (:LaserShared)
dup type 2 index type 2 copy ne {
pop pop
errordict begin (concatenate) typecheck end
}{
/stringtype ne exch /arraytype ne and {
errordict begin (concatenate) typecheck end
} if
} ifelse
dup length 2 index length add 1 index type
/arraytype eq{array}{string}ifelse
dup 0 4 index putinterval
dup 4 -1 roll length 4 -1 roll putinterval
setprintername
end
%%EOF
----------------------------------------------------------------------
Anyone have any ideas on how to get around NTR's misbehavior?
Thanks for any help!
--
Aleks I. Margan
__ _ ____/ / / ____/ Macintosh/Network Specialist
/ / / / / _/ / Yale University Academic Computing
___ / / ___/ __ ___ / 175 Whitney Ave.,New Haven,CT 06520
/ / / / / \ / tel 203-432-9545, fax 203-432-6165
_/ _/ _____/ ____/ _/ _| _____/ margan@yale.edu
--
__ _ ____/ / / ____/
/ / / / / _/ / Aleks I. Margan
___ / / ___/ __ ___ /
/ / / / / \ / margan@yale.edu
_/ _/ _____/ ____/ _/ _| _____/
Technical Details
Message-ID:
<MARGAN.93Jan23184519@suncis.suncis.cis.yale.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!yale.edu!news.yale.edu!suncis.ycc.yale.edu!marganShow Full Headers
Complete Article Headers
Newsgroups: comp.protocols.appletalk Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!yale.edu!news.yale.edu!suncis.ycc.yale.edu!margan From: margan@suncis.cis.yale.edu (Aleks) Subject: Problems hiding Personal LW NTR Message-ID: <MARGAN.93Jan23184519@suncis.suncis.cis.yale.edu> Sender: news@news.yale.edu (USENET News System) Nntp-Posting-Host: suncis.ycc.yale.edu Organization: Not yet implemented Date: 23 Jan 93 18:45:19 Lines: 68