By Using add queue and lpadmin

# mkdir /etc/lp/interface/model.orig  (if you don't have it) 
 
# chown lp:bin /etc/lp/interface/model.orig
 
# chmod 755 /etc/lp/interface/model.orig
Then go ahead and setup your printer with 'lpadmin' after you shutdown the scheduler. Nobody can print on this system while the scheduler is down, so it may be necessary to schedule print down on heavily used print servers.
# /usr/sbin/lpshut 
# /usr/sbin/lpadmin -p<queue_name> -v/dev/null -m<interface_modelscript>
The lpadmin commands searches the model script under /var/spool/lp/model directory. Any JetAdmin scripts needs to be installed under that directory to sucessfully use lpadmin.
Verify that the interface model scripts for JetAdmin printers are in the correct directories:
# cd /var/spool/lp/interface
 
# mv <printer_name> model.orig/<printer_name>
 
# cp /opt/hpnpl/sh/hpnp.model <printer_name>
 
# chown lp:lp <printer_name> model.orig/<printer_name>
 
# chmod 755 <printer_name> model.orig/<printer_name>
Now enable the printer and restart the scheduler:
# accept <printer_name>
 
# enable <printer_name>
 
# /usr/sbin/lpsched
You can test the configuration issueing a new print job with the lp commands:
# lp -d<queue_name> <file_to_print>
To test if the connection to the printer can be establish without sending a print job through the spooler use "hpnpg" command:
# /opt/hpnpl/bin/hpnpf -x <printer_name_or_ip> -l <log_file_name> <file_name_to_print>
SHARE

sangeethakumar

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment