Operating System - HP-UX
1819505 Members
3080 Online
109603 Solutions
New Discussion юеВ

Re: Printer not working in HP-UX11.23

 
pkumar97
Frequent Advisor

Printer not working in HP-UX11.23

Hi freinds,
am facing problem with my printer which is a network printer.

My print queue didn't work suddenly, it is working perfectly from windows. when im sending any print request like

root@aagcdb /var/spool/lp/interface/model.orig > lpstat agflocalsales
no entries
root@aagcdb /var/spool/lp/interface/model.orig > lp -d agflocalsales /etc/passwd
request id is agflocalsales-4465 (1 file)
root@aagcdb /var/spool/lp/interface/model.orig > lpstat agflocalsales
agflocalsales-4465 root priority 0 Feb 4 08:44 on agflocalsales
passwd 1167 bytes
root@aagcdb /var/spool/lp/interface/model.orig > lp -d agflocalsales /etc/passwd
request id is agflocalsales-4466 (1 file)


after that nothing is hapening . i restarted the spooler again , still the same problem. can any one please help me out on this.
12 REPLIES 12
sujit kumar singh
Honored Contributor

Re: Printer not working in HP-UX11.23

Hi Prashanth,
the spoler is working OK as it is accepting the Jobs,

1)try to check the Network Connectib=vity with the printer.
you can use ping.
2)try the enable command see if that helps.
3)check that the printer is online and the paper is loaded.
4)lpstat -t may give you more help regarding status of the jobs.
5)check if some one from windows has diabled the printer.


Regards
sujit

pkumar97
Frequent Advisor

Re: Printer not working in HP-UX11.23

Hi Sujit,
root@aagcdb / > disable agflocalsales
printer "agflocalsales" now disabled
root@aagcdb / > enable agflocalsales
printer "agflocalsales" now enabled
root@aagcdb / > ping agflocalsales
root@aagcdb / > accept agflocalsales
destination "agflocalsales" was already accepting requests
root@aagcdb / > lpstat agflocalsales
agflocalsales-4466 root priority 0 Feb 4 08:44 on agflocalsales
passwd 1167 bytes
agflocalsales-4501 applprod priority 0 Feb 4 09:03
OFJDAa00508.t 56950 bytes
root@aagcdb / > ping agflocalsales
PING agflocalsales: 64 byte packets
64 bytes from 192.168.33.50: icmp_seq=0. time=12. ms
64 bytes from 192.168.33.50: icmp_seq=1. time=0. ms
64 bytes from 192.168.33.50: icmp_seq=2. time=0. ms

----agflocalsales PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/4/12
root@aagcdb / >

everything looks good .. but still the same issue ... what we have to check from windows side .. ? but the thing is printer is working fine from windows side
pkumar97
Frequent Advisor

Re: Printer not working in HP-UX11.23

agflocalsales-4466 root priority 0 Feb 4 08:44 on agflocalsales
passwd 1167 bytes


is the output of lpstat -t

any hope .. ?
Suraj K Sankari
Honored Contributor

Re: Printer not working in HP-UX11.23

Prasanth,

If possible can you remove your printer from your system and re-configure again.

Suraj
pkumar97
Frequent Advisor

Re: Printer not working in HP-UX11.23

Suraj ,

is this the only solution for this ?
Suraj K Sankari
Honored Contributor

Re: Printer not working in HP-UX11.23

Why I suggested this because when a problem came and we can├в t find the proper solution to rectify the problem.
At that time instead of rectify the problem better reconfigure the thing because its save time also.

Suraj
pkumar97
Frequent Advisor

Re: Printer not working in HP-UX11.23

i recreated the print queue
after that am getting messages like
root@aagcdb /etc > lpstat agflocalsales
agflocalsales-4664 root priority 0 Feb 4 10:14
hosts 7251 bytes
/usr/sbin/rlpstat: Connection to 192.168.33.50 is down

am able to ping to the printer

root@aagcdb /etc > ping agflocalsales
PING agflocalsales: 64 byte packets
64 bytes from 192.168.33.50: icmp_seq=0. time=0. ms
64 bytes from 192.168.33.50: icmp_seq=1. time=0. ms


i did a nslookup also

root@aagcdb /etc > nslookup agflocalsales
Using /etc/hosts on: aagcdb

looking up FILES
Name: agflocalsales
Address: 192.168.33.50


entry in /etc/hosts

root@aagcdb /etc > cat /etc/hosts |grep agflocalsales
192.168.33.50 agflocalsales # Printer at Ruba's Desk HP LJ 1100
root@aagcdb /etc >


can any one help why it is comming like this
Suraj K Sankari
Honored Contributor

Re: Printer not working in HP-UX11.23

now if you enable the printer ( enable agflocalsales ) and give any print then what is the status you are getting.

Suraj
pkumar97
Frequent Advisor

Re: Printer not working in HP-UX11.23

root@aagcdb /etc > enable agflocalsales
printer "agflocalsales" now enabled
root@aagcdb /etc > lpstat agflocalsales
agflocalsales-4664 root priority 0 Feb 4 10:14 on agflocalsales
hosts 7251 bytes
root@aagcdb /etc > cancel agflocalsales
connection to 192.168.33.50 is down
root@aagcdb /etc > accept agflocalsales
destination "agflocalsales" was already accepting requests
root@aagcdb /etc >


still no hope


root@aagcdb /etc > ping 192.168.33.50
PING 192.168.33.50: 64 byte packets
64 bytes from 192.168.33.50: icmp_seq=0. time=0. ms
64 bytes from 192.168.33.50: icmp_seq=1. time=0. ms
64 bytes from 192.168.33.50: icmp_seq=2. time=1. ms

----192.168.33.50 PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/1
root@aagcdb /etc > ping agflocalsales
PING agflocalsales: 64 byte packets
64 bytes from 192.168.33.50: icmp_seq=0. time=0. ms
64 bytes from 192.168.33.50: icmp_seq=1. time=0. ms

----agflocalsales PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0
root@aagcdb /etc > lp -d agflocalsales /etc/hosts
request id is agflocalsales-4735 (1 file)
root@aagcdb /etc > lpstat agflocalsales
agflocalsales-4664 root priority 0 Feb 4 10:14
hosts 7251 bytes
agflocalsales-4735 root priority 0 Feb 4 10:51
hosts 7251 bytes
/usr/sbin/rlpstat: Connection to 192.168.33.50 is down
Suraj K Sankari
Honored Contributor

Re: Printer not working in HP-UX11.23

Hi,
Can you post all this output
Login as a super user

lpstat -t agflocalsales

Check the output
If any print job is there then cancel all jobs

cancel jobids one by one
disable agflocalsales

Switch off the pinter
Again switch on the printer

enable agflocalsales
lpstat -t agflocalsales
lp -d agflocalsales /etc/passwd
lpstat -tagflocalsales

Suraj
pkumar97
Frequent Advisor

Re: Printer not working in HP-UX11.23

root@aagcdb / > lpstat -t agflocalsales
agflocalsales-4664 root priority 0 Feb 4 10:14
hosts 7251 bytes
agflocalsales-4735 root priority 0 Feb 4 10:51
hosts 7251 bytes
agflocalsales-4801 applprod priority 0 Feb 4 11:15
OFMCAa00543.t 56950 bytes

printer queue for agbmxerox428_1
no entries

aagcdb: agbmxerox428_1: ready and waiting

printer queue for agfinbmnhp

aagcdb: agfinbmnhp: ready and waiting
/var/spool/lp/sinterface/CSLOCAL2[15]: shift: The specified number is not valid for this command.
/usr/sbin/rlpstat: Connection to 192.168.33.50 is down

printer queue for BMNLOGISTICS

aagcdb: BMNLOGISTICS: ready and waiting
agflocalsales-4664 root priority 0 Feb 4 10:14
hosts 7251 bytes
agflocalsales-4735 root priority 0 Feb 4 10:51
hosts 7251 bytes
agflocalsales-4801 applprod priority 0 Feb 4 11:15
OFMCAa00543.t 56950 bytes
/usr/sbin/rlpstat: Connection to 192.168.33.50 is down

root@aagcdb / > cancel agflocalsales
connection to 192.168.33.50 is down


i restarted the printed also ...

still am getting the same
pkumar97
Frequent Advisor

Re: Printer not working in HP-UX11.23

hi team

there was some ipconflict that was the reason . now i find it out and the printer is working fine .... now

Thanks for the time ...