10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
i need to configure around 80 printers in a server. can someone please help me with the script.
i have a file that has printer name and its ip.
like.
printer1 1.1.1.1
printer2 0.0.0.0
and so on.. can some one please help me to do it via script.
i am using solaris 10
... (0 Replies)
Discussion started by: chidori
0 Replies
2. UNIX for Advanced & Expert Users
Hi Guys,
I've inherited a mess of an infrastructure in my new job, there hasn't been a sys admin in post for about a year, so things are falling apart. The first thing to break after I started was the printer server. I have it working again, and people can print, however it's very slow, slower... (0 Replies)
Discussion started by: rudigarude
0 Replies
3. AIX
I'd seek for help on how to create a bunch of printers in AIX 6.x or equal or above in one go – say like I have 35 printers to create in 4 different AIX Nodes every month – I currently create it manually like below:-
How can I automatic this creation on all the 4-5 Nodes – not actually automatic... (3 Replies)
Discussion started by: shiv2001in
3 Replies
4. Shell Programming and Scripting
Herwith is script thus far, i need to delete the printers within my function, how can i achieve this
#!/bin/ksh
BIN=/usr/lbin
LOCAL_FILE=`$BIN/lpstat -v >> sun5-printers.txt
REMOTE_FILE=`rsh sun8 /usr/lbin/lpstat -v >> sun8-printers.txt
awk 'BEGIN {while ( getline < "sun5-printers.txt")... (12 Replies)
Discussion started by: ggoliath
12 Replies
5. UNIX for Dummies Questions & Answers
I am very new to unix/linux and am unsure how to do the following tasks within my script
1) append a log file and add a timestamped echo "Error occured" to it, if posibble to print it to file and on screen at the same time would be even better.
2) As my main script will be calling on a couple... (1 Reply)
Discussion started by: shamwick
1 Replies
6. Shell Programming and Scripting
My stupid D-Link DIR-320 router does not give the user the IP address of the printer attached to it's USB port. Instead, it provides a Windows EXE file for printer configuration, which is not an option for use Debian users. Is there a script that can scan the network looking for network printers in... (4 Replies)
Discussion started by: dotancohen
4 Replies
7. OS X (Apple)
I need a script that gets the output of softwareupdate -al on each machine (the list of available updates) and reports how many updates are needed in total by all the machines on the network, and the results to 4 different recipients.
i.e.
total patches required = 12
hostname1 =4 patch(es)... (1 Reply)
Discussion started by: glev2005
1 Replies
8. UNIX for Advanced & Expert Users
I am going to take up a position in Data & Network Security.
I would need to write network shell scripts doing the following task:
Going to around 2000 servers and findout which groups has access to each servers and which ids are there in each group that has access.
I need to implement... (1 Reply)
Discussion started by: pinnacle
1 Replies
9. Shell Programming and Scripting
Hi, Need help for a Script for checking and reporting database file sizes in a directory.
Request you to please give your valuable inputs.
Thanks a lot in advance.
Best Regards,
Marconi (1 Reply)
Discussion started by: marconi
1 Replies
10. UNIX for Dummies Questions & Answers
I'm in need of finding out on how to mount and dismount printers.
Thx,
shawnnee (1 Reply)
Discussion started by: shawnnee
1 Replies
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)