Sponsored Content
Operating Systems Solaris Error in the configuration of printers Post 302420855 by to.brunoaugusto on Wednesday 12th of May 2010 05:11:03 PM
Old 05-12-2010
Question Error in the configuration of printers

I'm trying to install printers with the shell below:

Code:
#! /bin/bash -x
lpadmin -p brmblack03 -v socket://172.30.0.14:9100/
lpadmin -p brmblack04 -v socket://172.30.0.10:9100/
lpadmin -p brmblack05 -v socket://172.30.0.13:9100/
lpadmin -p cscnshopping -v socket://192.168.0.250:9100/
lpadmin -p nshoppjt -v socket://192.168.0.251:9100/
lpadmin -p snshplj4250 -v socket://200.222.81.52:9109/
mv /usr/bin/lpstat /usr/bin/lpstat.old
mv /usr/bin/cancel /usr/bin/cancel.old
mv /usr/bin/enable /usr/bin/enable.old
mv /usr/bin/lpadmin /usr/bin/lpadmin.old
mv /usr/bin/lpmove /usr/bin/lpmove.old
mv /usr/bin/accept /usr/bin/accept.old
ln -s /opt/sfw/cups/bin/lpstat /usr/bin/lpstat
ln -s /opt/sfw/cups/bin/cancel /usr/bin/cancel
ln -s /opt/sfw/cups/bin/enable /usr/bin/enable
ln -s /opt/sfw/cups/sbin/lpadmin /usr/bin/lpadmin
ln -s /opt/sfw/cups/sbin/lpmove /usr/bin/lpmove
ln -s /opt/sfw/cups/sbin/accept /usr/bin/accept
/etc/init.d/cups stop
/etc/init.d/cups start
/opt/sfw/cups/bin/enable brmblack05
/opt/sfw/cups/bin/enable brmblack04
/opt/sfw/cups/bin/enable cscnshopping
/opt/sfw/cups/bin/enable nshoppjt
/opt/sfw/cups/bin/enable snshplj4250

This displays the following error:
Code:
+ /opt/sfw/cups/bin/enable brmblack05
enable: Operation failed: client-error-not-found
+ /opt/sfw/cups/bin/enable brmblack04
enable: Operation failed: client-error-not-found
+ /opt/sfw/cups/bin/enable cscnshopping
enable: Operation failed: client-error-not-found
+ /opt/sfw/cups/bin/enable nshoppjt
enable: Operation failed: client-error-not-found
+ /opt/sfw/cups/bin/enable snshplj4250
enable: Operation failed: client-error-not-found

What is this error?

Moderator's Comments:
Mod Comment Please use code tags

Last edited by Scott; 05-12-2010 at 06:18 PM..
 

9 More Discussions You Might Find Interesting

1. Linux

Evolution 1.4 error after configuration

After configuring Evolution 1.4, I get an error. I went through all the settings, and I dont have what it says in the error anywhere. I am posting an image so if anyone knows where to change this I would appreciate it. This pops up when sending email. The SMTP server is set correctly i.e.... (10 Replies)
Discussion started by: the_chameleon
10 Replies

2. Infrastructure Monitoring

Nagios - NRPE configuration error

HI guyz, I have a nagios 3.0.6 server which is running on fedora 5. I had already added some windows clients and monitoring it. Now i want to add a unix client. Steps done till now : - 1.nagios-plugins-1.4.13 was installed and configured. 2.unzipped and untarred the NRPE 2.8 3.I gave a... (0 Replies)
Discussion started by: Renjesh
0 Replies

3. Red Hat

Dns configuration error in Redhat

Dear All I want to configure DNS in redhat linux. i am following these steps but when i restart the services it is showing status failed. Please any body can help me on urgent basis. #service named restart Stopping named: Starting named: ---------Edited in named.conf... (2 Replies)
Discussion started by: sahu.tapan
2 Replies

4. UNIX for Advanced & Expert Users

Old XFree86 configuration error

Hello experts, I installed an old linux distribution and i'm having troubles with the XFree86 server. The thing is, when i run XF86Setup, X server and windows actually works, because i can get the graphical configuration screen, but when i'm "done" and save the changes to the config file... (1 Reply)
Discussion started by: semash!
1 Replies

5. Solaris

Error in LdapClient configuration

Hi all, My code for configuring ldapclient is as follows: ldapclient manual \ -a credentialLevel=proxy \ -a authenticationMethod=simple \ -a proxyDN=cn=proxyagent,cn=user1,dc=sema,dc=com \ -a proxyPassword=user1 \ -a defaultSearchBase=dc=sema,dc=com \ -a domainName=sema.com \ -a... (10 Replies)
Discussion started by: sathya47
10 Replies

6. Ubuntu

Printers Error on LTSP Client

I have Ubuntu Server 11.04 with at least 20 clients LTSP, in 7 clients we have HP LaserJet 1005p connected via USB, sometimes the printers appear likes disconnected, the only way to fix it is unplug the cable, plug into mu laptop with Windows 7, print a test page and then connect to LTSP Client and... (0 Replies)
Discussion started by: dmejias
0 Replies

7. Solaris

ntp client configuration error

hi all ntp client side configuration file is done but in # ntpq -p remote refid st t when poll reach delay offset disp ============================================================================== ntpserver .INIT. 16 u - 64 0 0.00 0.000... (5 Replies)
Discussion started by: nikhil kasar
5 Replies

8. Red Hat

OpenLDAP Server Configuration error

I followed the guide from the below link to set up a ldap server. After everything is finished, I configured a client for ldap authentication and I can search the entries in ldap using the command ldapsearch -x ZZ but when I am trying to login to the client using a ldap user, the prompt just keeps... (0 Replies)
Discussion started by: aninmuk
0 Replies

9. Red Hat

Yum client configuration error

Dear concern, I want to configure a yum client node. Yum configuration file (/etc/yum.repos.d/) is given below: # cat server.repo name=rhel6 baseurl=ftp://192.168.225.3/pub/Packages/ enabled=1 gpgcheck=0 We got following error message while executing yum list command. # yum clean... (1 Reply)
Discussion started by: makauser
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)
All times are GMT -4. The time now is 04:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy