Setup a print Queue on solaris 7 without jetadmin

Setup a print Queue on solaris 7 without jetadmin

Post by Quang V » Sat, 21 Apr 2001 08:44:25



Hello all,

I have set up a network printer queue (HPLJ4000N) on our Solaris 7 system,
using Jetadmin.
I need to do the same for another printer which is behind a firewall. This
firewall blocks all smtp requests and for this reason I can't use Jetadmin.

Since the second printer is also a Hplj4000n, I tried to make a copy of the
1st queue:

lpadmin -pprinter2 -eprinter1 -v/dev/null
lpadmin -pprinter2 -oprotocol=tcp:9100 -odest=pr1_ipad
enable printer2
accept printer2

There was no error messages but when I tried :"lp -dprinter2 /etc/hosts",
nothing came out of printer2

I have edited the files "/etc/lp/printers/printer2/config" and
"/etc/lp/interfaces/printer2".
And I have created a character device with "mknod printer2 c 13 2"

But without any success. Can somebody give me an advice ?

Thanks in advance.

Quang Vu

 
 
 

Setup a print Queue on solaris 7 without jetadmin

Post by Greg Andre » Sun, 22 Apr 2001 03:43:38



>Hello all,

>I have set up a network printer queue (HPLJ4000N) on our Solaris 7 system,
>using Jetadmin.
>I need to do the same for another printer which is behind a firewall. This
>firewall blocks all smtp requests and for this reason I can't use Jetadmin.

You mean it blocks SNMP, not SMTP.

Quote:

>Since the second printer is also a Hplj4000n, I tried to make a copy of the
>1st queue:

>lpadmin -pprinter2 -eprinter1 -v/dev/null

                    ^^^^^^^^^^

That's probably a bad idea.  Was printer1 configuring using the
netstandard interface script?  Why use "-e printer1" when "-m netstandard"
works just as well?

Quote:>lpadmin -pprinter2 -oprotocol=tcp:9100 -odest=pr1_ipad

                                  ^^^^^

That's an error.  The ":9100" is part of the "dest=" option, not
the protocol option.

Quote:

>I have edited the files "/etc/lp/printers/printer2/config" and
>"/etc/lp/interfaces/printer2".
>And I have created a character device with "mknod printer2 c 13 2"

Why would you do these things?  You didn't specify a device file
named "printer2" when you set the printer up, so creating a device
file that the print system won't use is pointless.

First, deleted the printer definition you created.  It's easier to
re-create it from scratch rather than try to undo these kinds of
errors.

Second, you need to find out if the firewall will allow you to connect
to the printer's port 515 or 9100.  Talk to the firewall admins and
test with the commands "telnet pr1_ipad 515" and "telnet pr1_ipad 9100".

If the connection to port 9100 was successful (don't look for a login
prompt, just the messages saying you got a connection), then re-create
the printer:

  lpadmin  -p printer  -v /dev/null  -m netstandard
  lpadmin  -p printer  -T PS  -I postscript
  lpadmin  -p printer  -o protocol=tcp  -o dest=pr1_ipad:9100
  enable  printer
  accept  printer

If only the connection to port 515 worked, then use the same commands
as above, except for the third lpadmin command:

  lpadmin  -p printer  -o protocol=bsd  -o dest=pr1_ipad

  -Greg
--

I have a map of the United States that's actual size
                 -- Steven Wright

 
 
 

1. URGENT HELP !! Solaris printing without SNMP and Jetadmin


       Newsgroups: comp.unix.question,comp.unix.misc
       Subject: URGENT HELP !! Solaris printing without SNMP and Jetadmin
       NNTP-Posting-Host: 199.169.208.132

       Hi,

         We are running different versions of Solaris, e.g., 2.6, 7 and 8.
         We have been using the jetadmin to configure and manage our HP printers.
         However, our security folks are not allowing any SNMP traffic in
         the network.  As a result, we need to find an alternative printer tool,
         other than Jetadmin.  
         We currently are managing around 300 printers under jetadmin.
         Are there tools out that may do the trick with no SNMP involvement and
         ways that we can switch all the existing printers to the new tool ??

         Thanks much,

         Bill

2. if ulimit = "Problems";then mail newsgroup; fi

3. Bootable VMWARE iso

4. point solaris print queue to win2000 print queue

5. Help! need precompiled programs

6. Setup printer queue on Solaris to print to NT

7. Mandrake's installation..

8. Printing from Solaris to Novell print queues

9. Remote printing without defining queues ?

10. HP4MV, Solaris 2.3, and JetAdmin prints twice

11. Hp JetAdmin setup for Solaris 2.x