GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Printer Disabled
Operating System - HP-UX
1847413
Members
2738
Online
110264
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 10:35 PM
12-09-2003 10:35 PM
Printer Disabled
Hi,
How can I modify the lp script for enable it every time.
Every now it change status for disable, and when enable return to normal.
Can modified this script?
if [ ! -x /usr/sbin/rlp ]
then
disable -r"can't execute /usr/sbin/rlp filter" $printer
exit 1
fi
How can I modify the lp script for enable it every time.
Every now it change status for disable, and when enable return to normal.
Can modified this script?
if [ ! -x /usr/sbin/rlp ]
then
disable -r"can't execute /usr/sbin/rlp filter" $printer
exit 1
fi
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 12:17 AM
12-10-2003 12:17 AM
Re: Printer Disabled
Elizangela,
Please see the attached forum posting :-
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=299627
This posting has a number of useful suggestions, including one I posted myself.
Keith
Please see the attached forum posting :-
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=299627
This posting has a number of useful suggestions, including one I posted myself.
Keith
You are either part of the solution or part of the problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 02:30 AM
12-10-2003 02:30 AM
Re: Printer Disabled
Hi
It disables for a reason.Try to solve that .
Otherwise make a cron script which runs every few minutes or seconds and
enables disabled printers.
Here is a script to enable all printers
#!/bin/ksh
#
#Printer parameter
#
# parameter is enable disable accept or reject to do all printers
#
option=$1
xx=`lpstat -p|grep printer|cut -f2 -d" "`
for printer in $xx
do
case $option in
accept) accept $printer ;;
reject) reject $printer ;;
enable) enable $printer ;;
disable) disable $printer ;;
*)echo invalid parameter ;;
esac
done
Steve Steel
It disables for a reason.Try to solve that .
Otherwise make a cron script which runs every few minutes or seconds and
enables disabled printers.
Here is a script to enable all printers
#!/bin/ksh
#
#Printer parameter
#
# parameter is enable disable accept or reject to do all printers
#
option=$1
xx=`lpstat -p|grep printer|cut -f2 -d" "`
for printer in $xx
do
case $option in
accept) accept $printer ;;
reject) reject $printer ;;
enable) enable $printer ;;
disable) disable $printer ;;
*)echo invalid parameter ;;
esac
done
Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 02:44 AM
12-10-2003 02:44 AM
Re: Printer Disabled
Hi,
This script enable printers of a printer server too?
[HPUX-K460]telnet 192.1.2.11 (printer ip)
Trying...
Connected to 192.1.2.11.
Escape character is '^]'.
Local flow control off
*****************************
* Welcome to Print Server *
* Telnet Console *
*****************************
Server Name : PS-01186C
Server Model : Pocket Size Print Server
F/W Version : 2.00
MAC Address : 00 03 1B 01 18 6C
Uptime : 0 days, 21:26:23
Please Enter Password:
[Main Menu]
1 - Server Configuration
2 - Port Configuration
3 - TCP/IP Configuration
4 - AppleTalk Configuration
5 - Display Information
6 - Tools
7 - Save Configuration
0 - Quit
This script enable printers of a printer server too?
[HPUX-K460]telnet 192.1.2.11 (printer ip)
Trying...
Connected to 192.1.2.11.
Escape character is '^]'.
Local flow control off
*****************************
* Welcome to Print Server *
* Telnet Console *
*****************************
Server Name : PS-01186C
Server Model : Pocket Size Print Server
F/W Version : 2.00
MAC Address : 00 03 1B 01 18 6C
Uptime : 0 days, 21:26:23
Please Enter Password:
[Main Menu]
1 - Server Configuration
2 - Port Configuration
3 - TCP/IP Configuration
4 - AppleTalk Configuration
5 - Display Information
6 - Tools
7 - Save Configuration
0 - Quit
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP