SUMMARY: jetadmin and printer models

From: Conner McCleod (nimrha@hotmail.com)
Date: Tue Nov 09 1999 - 15:41:17 CST


Question was how do you tell the type model and manufacturer of a
printer using a UNIX command?!

Answer by Pena was "hpnpadmin -i "

Thanks to:
"Powell, Matt" <MPowell@LIMITED.com>
"Pena, Ed" <EdPena@MuellerIndustries.com>
"Leichter, Seth" <seth.leichter@weyerhaeuser.com>
Zion_Huang@focusppo.com
robsonk@ebrd.com
papowell@astart.com
"Steve A Suttles" <steve_a_suttles@email.mobil.com>
gerd.kuhlmann@stone-eca.de

Conner McCleod

###########################
Pena got the answer. "hpnpadmin -i "

###########################
Seth's Disaster Recovery Script is going to come in handy:
Here are some excerpts from scripts I use during disaster recovery
tests to
do a mass re-assign of all our printer queues to one local DR printer:

        drprinter=1.2.3.4 # DR printer IP or network name

        id=$(hpnpadmin -i ${drprinter} | awk '/Printer ID/ {print $4}')

        for printer in ${printer_list}
        do
                removequeue -q ${printer}
                addqueue -i ${id} -h ${drprinter} -q ${printer}
        done

This should work for any printers recognized by jetadmin.

############################
Zion:

You may try use addqueue -l to list what drivers are with your
HP Jetadmin

############################
Steve was on the right track... but the foreign country were these
printers are configure uses jdxx for their priters as data-center
standard.

I may be missing something, but one way may be to append the
printer type to the
queue name when you are creating the queues and use lpstat
etc... to identify
the printer type attached to a specific queue.

i.e.
/opt/hpnp/bin/addqueue -i 1990 -q jd02_HP8000 -h 169.167.24.122 -p1

Regards,
############################

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:32 CDT