Operating System - HP-UX
1847833 Members
5668 Online
104021 Solutions
New Discussion

Re: cant create local printer device file

 
khilari
Regular Advisor

cant create local printer device file

Hi people, i was building a printer through sam. Went into local printers menu then added the printer name the printer model (mf.pcl) and then when i put /dev/printername in the device file it says it doesnt exist. Ya, it doesnt exist but when the printer will be built in that process wont sam make it???

How should i go about building this local printer.


Thanks.
10 REPLIES 10
A. Clay Stephenson
Acclaimed Contributor

Re: cant create local printer device file

You need to carefully define the term "local printer". Is that a printer directly attached to a serial or parallel port? If so the device node used corresponds to a serial or parallel port. This port device node is created separately and depends upon the driver being used.

Describe what you are tryng to do and that will make it much easier to help you.
If it ain't broke, I can fix that.
khilari
Regular Advisor

Re: cant create local printer device file

well, i am trying to make a local printer through sam.
1) I go to add local printers.
2) Add Printerâ withâ Nonstandard Device File
3)i get a menu.
4)add printer name= yahoo
printer model/interface=mf.pcl
printer device file name= /dev/yahoo
// at this point it says /dev/yahoo doesnt exist. And i cant make the printer.

Thanks
A. Clay Stephenson
Acclaimed Contributor

Re: cant create local printer device file

I don't care what tool you are using to create a "local printer". Is this a printer that is hardwire connected or are you trying to use a network connection of some kind? That is the very first thing that you should explain. Ask yourself, if you were this dumb UNIX box, what would /dev/yahoo mean to you? Would you have a clue how to access this device just because someone entered /dev/yahoo in SAM? Do an ls -l /dev/yahoo, what is displayed?

If it ain't broke, I can fix that.
Steven E. Protter
Exalted Contributor

Re: cant create local printer device file

Shalom,

You need a driver for the printer for HP-UX.

You need instructions from the printer manfacturer for how to configure said driver with HP-UX.

Although many printers have a core that immitates HP printers, you can't just hang any printer you want off an HP-UX box and expect it to work.

No driver, no instructions, no printing. It could however server as an attractive conversation piece.

It would be helpful if you stated the following:

OS version, and major patch level.
Printer name and model.

I would also note though sam is very useful, it is also quite stupid. It can't read your mind, nor can it configure printers that the OS does not recognize without some configuration steps in advance.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: cant create local printer device file

Shalom,

You need a driver for the printer for HP-UX.

You need instructions from the printer manfacturer for how to configure said driver with HP-UX.

Although many printers have a core that immitates HP printers, you can't just hang any printer you want off an HP-UX box and expect it to work.

No driver, no instructions, no printing. It could however serve as an attractive conversation piece.

It would be helpful if you stated the following:

OS version, and major patch level.
Printer name and model.

I would also note though sam is very useful, it is also quite stupid. It can't read your mind, nor can it configure printers that the OS does not recognize without some configuration steps in advance.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
khilari
Regular Advisor

Re: cant create local printer device file

okay guys adding to the info i am giving u this is all i have left to give.
What i am trying to do is to make a local printer. see the mf.pcl
(h8193n1)root# cd /usr/spool/lp/model
(h8193n1)root# ll
total 3760
-r--r--r-- 1 bin bin 24354 Mar 11 2002 ESCP
-r--r--r-- 4 bin bin 1961 Nov 14 2000 HPGL1
-r--r--r-- 6 bin bin 1805 Nov 14 2000 HPGL2
-r--r--r-- 1 bin bin 1370 Nov 14 2000 HPGL2.cent
-r--r--r-- 1 bin bin 36075 Oct 20 2000 LIPS3
-r--r--r-- 1 bin bin 39812 Oct 20 2000 LIPS4
-r--r--r-- 1 bin bin 15891 Oct 20 2000 LPS
-r--r--r-- 1 bin bin 17864 Oct 20 2000 NPDLII
-r--r--r-- 10 bin bin 6357 Nov 14 2000 PCL1
-r--r--r-- 9 bin bin 7358 Nov 14 2000 PCL2
-r--r--r-- 12 bin bin 18009 Nov 14 2000 PCL3
-r--r--r-- 4 bin bin 23987 Nov 14 2000 PCL4
-r--r--r-- 1 bin bin 27146 Oct 20 2000 PCL4.nloo
-r--r--r-- 9 bin bin 51877 Nov 14 2000 PCL5
-r--r--r-- 1 bin bin 60762 Mar 11 2002 PCL5.asian
-r--r--r-- 1 bin bin 50997 Mar 11 2002 PCL5.nloo
-r--r--r-- 1 bin bin 16554 Oct 20 2000 PS.nlio
-r--r--r-- 1 bin bin 17010 Oct 20 2000 PS2.nlio
-r--r--r-- 9 bin bin 51877 Nov 14 2000 colorlaserjet
-r--r--r-- 4 bin bin 1961 Nov 14 2000 colorpro
-r--r--r-- 12 bin bin 18009 Nov 14 2000 deskjet
-r--r--r-- 2 bin bin 46641 Nov 14 2000 deskjet1200C
-r--r--r-- 9 bin bin 51877 Nov 14 2000 deskjet1600CM
-r--r--r-- 12 bin bin 18009 Nov 14 2000 deskjet500
-r--r--r-- 12 bin bin 18009 Nov 14 2000 deskjet500C
-r--r--r-- 12 bin bin 18009 Nov 14 2000 deskjet550C
-r--r--r-- 12 bin bin 18009 Nov 14 2000 deskjet850C
-r--r--r-- 12 bin bin 18009 Nov 14 2000 deskjet855C
-r--r--r-- 6 bin bin 1805 Nov 14 2000 draftpro
-r--r--r-- 1 bin bin 3658 Nov 14 2000 dumb
-r--r--r-- 1 bin bin 450 Nov 14 2000 dumbplot
drwxr-xr-x 2 lp bin 96 Nov 15 2000 fonts
-r--r--r-- 1 bin bin 3414 Oct 20 2000 ftprmodel.LPS
dr-xr-xr-x 2 bin bin 96 Nov 15 2000 ftprmodels
-r--r--r-- 10 bin bin 6357 Nov 14 2000 hp2225a
-r--r--r-- 10 bin bin 6357 Nov 14 2000 hp2225d
-r--r--r-- 10 bin bin 6357 Nov 14 2000 hp2227a
-r--r--r-- 10 bin bin 6357 Nov 14 2000 hp2228a
-r--r--r-- 12 bin bin 18009 Nov 14 2000 hp2235a
-r--r--r-- 12 bin bin 18009 Nov 14 2000 hp2276a
-r--r--r-- 9 bin bin 7358 Nov 14 2000 hp2300-1100L
-r--r--r-- 9 bin bin 7358 Nov 14 2000 hp2300-840L
-r--r--r-- 9 bin bin 7358 Nov 14 2000 hp2560
-r--r--r-- 9 bin bin 7358 Nov 14 2000 hp2563a
-r--r--r-- 9 bin bin 7358 Nov 14 2000 hp2564b
-r--r--r-- 9 bin bin 7358 Nov 14 2000 hp2565a
-r--r--r-- 9 bin bin 7358 Nov 14 2000 hp2566b
-r--r--r-- 9 bin bin 7358 Nov 14 2000 hp2567b
-r--r--r-- 1 bin bin 8161 Nov 14 2000 hp256x.cent
-r--r--r-- 10 bin bin 6357 Nov 14 2000 hp2631g
-r--r--r-- 3 bin bin 18396 Nov 14 2000 hp2684a
-r--r--r-- 3 bin bin 18396 Nov 14 2000 hp2686a
-r--r--r-- 12 bin bin 18009 Nov 14 2000 hp2932a
-r--r--r-- 12 bin bin 18009 Nov 14 2000 hp2934a
-r--r--r-- 3 bin bin 18396 Nov 14 2000 hp33440a
-r--r--r-- 4 bin bin 23987 Nov 14 2000 hp33447a
-r--r--r-- 10 bin bin 6357 Nov 14 2000 hp3630a
-r--r--r-- 9 bin bin 51877 Nov 14 2000 hp5000c30
-r--r--r-- 4 bin bin 23987 Nov 14 2000 hp5000f100
-r--r--r-- 4 bin bin 1961 Nov 14 2000 hp7440a
-r--r--r-- 4 bin bin 1961 Nov 14 2000 hp7475a
-r--r--r-- 6 bin bin 1805 Nov 14 2000 hp7550a
-r--r--r-- 6 bin bin 1805 Nov 14 2000 hp7570a
-r--r--r-- 6 bin bin 1805 Nov 14 2000 hp7595a
-r--r--r-- 6 bin bin 1805 Nov 14 2000 hp7596a
-r--r--r-- 1 bin bin 39326 Nov 14 2000 hpC1208a
-r--r--r-- 1 bin bin 9262 Oct 20 2000 hpc1200ac
-r--r--r-- 1 bin bin 11095 Oct 20 2000 hpc1200aj
-r--r--r-- 1 bin bin 9259 Oct 20 2000 hpc1200ak
-r--r--r-- 1 bin bin 12808 Mar 11 2002 hpc1200at
-r--r--r-- 1 bin bin 12808 Mar 11 2002 hpc1205at
-r--r--r-- 1 bin bin 53430 Oct 20 2000 hpc1208a
-r--r--r-- 4 bin bin 23987 Nov 14 2000 laserjet
-r--r--r-- 9 bin bin 51877 Nov 14 2000 laserjet4
-r--r--r-- 9 bin bin 51877 Nov 14 2000 laserjet4Si
-r--r--r-- 9 bin bin 51877 Nov 14 2000 laserjet4v
-r--r--r-- 9 bin bin 51877 Nov 14 2000 laserjet5Si
-r--r--r-- 9 bin bin 51877 Nov 14 2000 laserjetIIISi
-r--r--r-- 1 root sys 3533 Jun 23 11:49 mf.pcl
-r--r--r-- 10 bin bin 6357 Nov 14 2000 paintjet
-r--r--r-- 2 bin bin 46641 Nov 14 2000 paintjetXL300
-r--r--r-- 1 bin bin 6689 Nov 14 2000 postscript
-r--r--r-- 10 bin bin 6357 Nov 14 2000 quietjet
-r--r--r-- 1 bin bin 5256 Nov 14 2000 rmodel
-r--r--r-- 1 bin bin 7751 May 26 2003 rmodel.asx
-r--r--r-- 12 bin bin 18009 Nov 14 2000 ruggedwriter
-r--r--r-- 10 bin bin 6357 Nov 14 2000 thinkjet

now that is what i am using for model name. I dont know wat printer will be used. I just want to build it.
How do i make its device file???
nothing comes up when i do ls -l /dev/yahoo.
Thanks
A. Clay Stephenson
Acclaimed Contributor

Re: cant create local printer device file

I am going to try just once more. There are two things at play here and for some reason you seem unable or unwilling to help. 1) The model script -- this is almost always a shell script although it could be almost any executable as long as it conforms to the model rules which essentially pops the arguments supplied by the lp command and then sends the output to the desired device. Your model script WHICH IS NOT A DEVICE will be copied to /var/spool/lp/interface/queuename and can then be modified to actually fit your printer. The same model script might be copied many times and modified for each printer. 2) The device node -- this is something like /dev/tty2a or /dev/lp1 if this is a local hardwired printer or it is /dev/null id this is a NetWork or Remote printer. For network connected printers other hooks are put into place to associate the model script and the actual output device.

YOUR VERY FIRST TASK IS TO IDENTIFY IF THIS IS A LOCAL HARD-WIRED PRINTER OR IS IT SOME KIND OF NETWORK PRINTER.
If it ain't broke, I can fix that.
khilari
Regular Advisor

Re: cant create local printer device file

Hi There, well have u ever heard about optio. u see we are running optio, newoptio and medforms. Optio and newoptio are remote (2 NT machines) and the medforms older version of optio is what is causing trouble.
The mf.pcl is a script in the /interface.
For optio and newoptio are remote /dev/null but medforms is local.
And inorder to make it as i told u i went into sam and did what i wrote before.
OldSchool
Honored Contributor

Re: cant create local printer device file

You're missing the point.

Is the printer physically connected via a serial or parallel cable directly to the HP-UX box that you are running SAM on?
khilari
Regular Advisor

Re: cant create local printer device file

its set now. I have to put in the entry in /etc/ddfa as in what is the ip address and port of the printer, specify its device file it. Then run the startem command which will read the dp file. And finally build the printer.

Thanks, every one.