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
enable(1)						      General Commands Manual							 enable(1)

NAME
enable, disable - enable/disable LP printers SYNOPSIS
printers [reason]] printers DESCRIPTION
The command activates the named printers, enabling them to print requests taken by Use to find the status of printers (see lp(1) and lpstat(1)). deactivates the named printers, disabling them from printing requests taken by By default, any requests that are currently printing on the designated printers are reprinted in their entirety either on the same printer or on another member of the same class. Use to find the status of printers. Options recognizes the following options: Cancel any requests that are currently printing on any of the designated printers. Associate a reason with the deactivation of the printers. This reason applies to all printers mentioned up to the next option. If the option is not present or the option is given without a reason, a default reason is used. reason is reported by The maximum length of the reason message is 80 bytes. reason message of length greater than 80 bytes is truncated to 80 bytes. EXTERNAL INFLUENCES
Environment Variables determines the language in which messages are displayed. If is not specified or is null, it defaults to (see lang(5)). If any internationalization variable contains an invalid setting, all internationalization variables default to (see environ(5)). International Code Set Support Single- and multibyte character code sets are supported. EXAMPLES
Enable printer to accept requests: Deactivate printer and cancel any logged jobs: WARNINGS
If the restrict cancel feature (selected by the option -- see lpadmin(1M)) is enabled, and the user is neither administrator nor the owner of the currently printing request on the designated printer, ignores the option. and perform their operation on the local system only. FILES
SEE ALSO
lp(1), lpstat(1), accept(1M), lpadmin(1M), lpsched(1M), rcancel(1M), rlp(1M), rlpdaemon(1M), rlpstat(1M). enable(1)