sunhux
asked on
lp lpstat : LP print services isn't running or can't be reached
Hi,
After last weekend's server reboot, our Solaris 8 server's print service is no more
working (have been working fine all these while). I'm not aware of any change & I
can see that "printer" service is enabled in /etc/inetd.conf :
grep -i printer /etc/inetd.conf
printer stream tcp6 nowait root /usr/lib/print/in.lpd in.lpd
I've done "pkill -HUP inetd" to refresh the inetd but it did not help.
Error messages appended :
# lpstat slacdhp1
UX:lpstat: ERROR: The LP print service isn't running or can't be
reached.
TO FIX: Your request can't be completely handled
without the LP print service. If this
problem continues, get help from your
system administrator.
# lp -d slacdhp1 /etc/hosts
UX:lp: ERROR: Can't establish contact with the LP print service.
TO FIX: Either the LP print service has stopped,
or all message channels are busy. If the
problem continues, get help from your
system administrator.
After last weekend's server reboot, our Solaris 8 server's print service is no more
working (have been working fine all these while). I'm not aware of any change & I
can see that "printer" service is enabled in /etc/inetd.conf :
grep -i printer /etc/inetd.conf
printer stream tcp6 nowait root /usr/lib/print/in.lpd in.lpd
I've done "pkill -HUP inetd" to refresh the inetd but it did not help.
Error messages appended :
# lpstat slacdhp1
UX:lpstat: ERROR: The LP print service isn't running or can't be
reached.
TO FIX: Your request can't be completely handled
without the LP print service. If this
problem continues, get help from your
system administrator.
# lp -d slacdhp1 /etc/hosts
UX:lp: ERROR: Can't establish contact with the LP print service.
TO FIX: Either the LP print service has stopped,
or all message channels are busy. If the
problem continues, get help from your
system administrator.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
So, I restart lpsched just by typing "lpsched"?
This is what I get now :
# lpstat -a
dvsy01 accepting requests since Thu Apr 19 09:15:31 2007
sds1_hp1 accepting requests since Tue Sep 28 11:50:23 2004
# lp -d slacdhp1 dailyback.18112008
request id is slacdhp1-25386 (1 file(s))
Printing now, thanks a lot
This is what I get now :
# lpstat -a
dvsy01 accepting requests since Thu Apr 19 09:15:31 2007
sds1_hp1 accepting requests since Tue Sep 28 11:50:23 2004
# lp -d slacdhp1 dailyback.18112008
request id is slacdhp1-25386 (1 file(s))
Printing now, thanks a lot
ASKER
>netstat -an | grep 515 | grep -i listen
*.515 *.* 0 0 24576 0 LISTEN
*.515 *.* 0 0 24576 0 LISTEN
b) /var/adm/messages has several queue related messages :
Nov 20 06:45:01 slasun02 ntpdate[21236]: [ID 774510 daemon.notice] step time server 10.51.1.9 offset 0.585674 sec
Nov 20 06:50:00 slasun02 sendmail[21377]: [ID 801593 mail.crit] NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA-I
Pv4: cannot bind: Address already in use
Nov 20 06:50:00 slasun02 sendmail[21377]: [ID 702911 mail.alert] daemon MTA-IPv4: problem creating SMTP socket
Nov 20 06:50:05 slasun02 sendmail[21377]: [ID 801593 mail.crit] NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA-I
Pv4: cannot bind: Address already in use
Nov 20 06:50:05 slasun02 sendmail[21377]: [ID 702911 mail.alert] daemon MTA-IPv4: problem creating SMTP socket
Nov 20 06:50:10 slasun02 sendmail[21377]: [ID 801593 mail.crit] NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA-I
Pv4: cannot bind: Address already in use
Nov 20 06:50:10 slasun02 sendmail[21377]: [ID 702911 mail.alert] daemon MTA-IPv4: problem creating SMTP socket
Nov 20 06:50:15 slasun02 sendmail[21377]: [ID 801593 mail.crit] NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA-I
Pv4: cannot bind: Address already in use
c) I've issued the commands (in case faled is a typo, I've used 'failed' as well) & attached outputs :
truss -o /tmp/lpfaled.txt -faled lpstat
truss -o /tmp/lpfailed.txt -failed lpstat
lpfaled.txt
lpfailed.txt