Re-Mapping Printers.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Re-Mapping Printers.
# 1  
Old 06-15-2011
Re-Mapping Printers.

Hi we have a situation where some printers are on a server that sometimes has to be rebooted. If this happens the Unix boxes we have that are referencing the printers in the vfstab file fail to work even when the print server is brought back up. Does anyone know if it would be possible to put them into a shell script to run if the print server goes down and how I would convert whats in the vfstan file to what I should put in a shell script.

Thanks in advance for any help.

server1:/vol/printer1 - /var/spool/printer1 nfs - yes rw
server1:/vol/printer2 - /var/spool/printer2 nfs - yes rw
server2:/vol/printer3 - /var/spool/printer3 nfs - yes rw
server2:/vol/printer4 - /var/spool/printer4 nfs - yes rw
server2:/vol/printer5 - /var/spool/printer5 nfs - yes rw
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Creating unique mapping from multiple mapping

Hello, I do not know if this is the right title to use. I have a large dictionary database which has the following structure: where a b c d e are in English and p q r s t are in a target language., the two separated by the delimiter =. What I am looking for is a perl script which will take... (5 Replies)
Discussion started by: gimley
5 Replies

2. UNIX for Dummies Questions & Answers

Picking problem with printers

Hello to everybody i have problem the picking process falls and falls. I dont now what the picking process do i believe that is a print server on a data base i dont know where to look. Is a solaris 10 with korn sheell the process show this ps -ef | grep picking batch 18466 1 0... (5 Replies)
Discussion started by: enkei17
5 Replies

3. Solaris

Help, my printers have disappeared

Hi all I have a really strange situation. This morning I ran lpstat -p and it didn't return any results. I ran lpstat -t and the scheduler is running. How strange, it seems all the printers have disappeared from my server. Can anyone perhaps explain to me how this is possible? (4 Replies)
Discussion started by: soliberus
4 Replies

4. HP-UX

Printers question...

Hi there... I have a question for those who mess with printers in hpnpl\jetadmin... what's the differance bitween local printer queue and remote printer queue and why for adding a remote queue i need to restart my spooler while for a local queue i dont... thanx for the help! Eliraz. (1 Reply)
Discussion started by: eliraza6
1 Replies

5. UNIX for Dummies Questions & Answers

Usb printers

Hey guys!! I just had changed my server and the new one does not have a parallel port, only usb, and I donīt know how to make a usb printer work. Iīm using sco openserver 5.0.7 Someone can help me? :confused: (1 Reply)
Discussion started by: proyesa
1 Replies

6. AIX

Printers.hpJetDirect.attach

Can someone email me a copy of this file? Our AIX 5 cds are at our hotsite and I need a copy to try a fix on a printer. flyingdutchman1978@gmail.com Thanks! (0 Replies)
Discussion started by: schism25
0 Replies

7. Solaris

Printers Question

Is there a limit on how many printers you can have configured in Solaris? The reason I ask is we use RF printers for the software we run and have added 52 of these printers the problem is that I need to add about another 50 and its like we have hit a limit at 52 it wont let us add anymore. If... (2 Replies)
Discussion started by: Acleoma
2 Replies

8. UNIX for Dummies Questions & Answers

Disabled printers

How does or what makes a printer go into a disabled state? (5 Replies)
Discussion started by: dsb0
5 Replies

9. UNIX for Dummies Questions & Answers

Question Regarding Printers

I havve a printer directly connected to the network point with no host computer . Can this printer be configured on a Unix machine . (3 Replies)
Discussion started by: Jai
3 Replies

10. UNIX for Dummies Questions & Answers

Printers

I'm in need of finding out on how to mount and dismount printers. Thx, shawnnee (1 Reply)
Discussion started by: shawnnee
1 Replies
Login or Register to Ask a Question
PRINTER_LIST(3) 							 1							   PRINTER_LIST(3)

printer_list - Return an array of printers attached to the server

SYNOPSIS
array printer_list (int $enumtype, [string $name], [int $level]) DESCRIPTION
The function enumerates available printers and their capabilities. PARAMETERS
o $enumtype -$enumtype must be one of the following predefined constants: o PRINTER_ENUM_LOCAL: enumerates the locally installed printers. o PRINTER_ENUM_NAME: enumerates the printer of $name, can be a server, domain or print provider. o PRINTER_ENUM_SHARED: this parameter can't be used alone, it has to be OR'ed with other parameters, i.e. PRINTER_ENUM_LOCAL to detect the locally shared printers. o PRINTER_ENUM_DEFAULT: (Win9.x only) enumerates the default printer. o PRINTER_ENUM_CONNECTIONS: (WinNT/2000 only) enumerates the printers to which the user has made connections. o PRINTER_ENUM_NETWORK: (WinNT/2000 only) enumerates network printers in the computer's domain. Only valid if $level is 1. o PRINTER_ENUM_REMOTE: (WinNT/2000 only) enumerates network printers and print servers in the computer's domain. Only valid if $level is 1. o $name - Used with PRINTER_ENUM_NAME. o $level -$level sets the level of information request. Can be 1,2,4 or 5. RETURN VALUES
Return an array of printers. EXAMPLES
Example #1 printer_list(3) example <?php /* detect locally shared printer */ var_dump(printer_list(PRINTER_ENUM_LOCAL | PRINTER_ENUM_SHARED)); ?> PHP Documentation Group PRINTER_LIST(3)