List of Topics (Linux, Database, RAC, EBS)
Transport endpoint is not connected for lpadmin lpstat, lpinfo
I have installed cups using YUM repository on our new cloud
server.
I was able to ping to printer’s IP but, unable to add printer to
the server it gives error as “Transport endpoint is not connected”
Sol: verify cups service is running. If inactive then need to stop/start
once cups after installing and fixed the issue
[root@uatcloudapp ~]# ping
192.168.140.20
PING 192.168.140.20 (192.168.140.20) 56(84) bytes of data.
64 bytes from 192.168.140.20: icmp_seq=1 ttl=29 time=17.2 ms
64 bytes from 192.168.140.20: icmp_seq=2 ttl=30 time=16.4 ms
64 bytes from 192.168.140.20: icmp_seq=3 ttl=30 time=16.1 ms
^C
--- 192.168.140.20 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 16.123/16.593/17.245/0.498 ms
[root@uatcloudapp ~]#
[root@uatcloudapp ~]# yum
install cups
[root@uatcloudapp ~]# rpm
-qa cups
cups-1.6.3-51.el7.x86_64
[root@uatcloudapp ~]# cat
/etc/cups/cupsd.conf
[root@uatcloudapp ~]#
[root@uatcloudapp ~]# lpadmin
-p testprinter -E -v socket://192.168.140.20
lpadmin: Unable to connect to server: Transport endpoint is not
connected
[root@uatcloudapp ~]# lpstat
-v
lpstat: Transport endpoint is not connected
[root@uatcloudapp ~]#
[root@uatcloudapp ~]# lpinfo
-m
lpinfo: Transport endpoint is not connected
[root@uatcloudapp ~]#
[root@uatcloudapp ~]# systemctl status cups
● cups.service - CUPS
Printing Service
Loaded:
loaded (/usr/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: inactive (dead)
[root@uatcloudapp ~]#
[root@uatcloudapp ~]# systemctl stop cups
[root@uatcloudapp ~]#
[root@uatcloudapp ~]# systemctl start cups
[root@uatcloudapp ~]#
[root@uatcloudapp ~]#
[root@uatcloudapp ~]# systemctl status cups
● cups.service - CUPS
Printing Service
Loaded: loaded
(/usr/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: active (running) since
Tue 2021-08-10 08:08:03 GMT; 2s ago
Main PID: 8186 (cupsd)
Memory: 1.5M
CGroup:
/system.slice/cups.service
└─8186 /usr/sbin/cupsd -f
Aug 10 08:08:03 uatcloudapp
systemd[1]: Started CUPS Printing Service.
[root@uatcloudapp ~]#
[root@uatcloudapp ~]# lpadmin -p testprinter -E -v socket://192.168.140.20
[root@uatcloudapp ~]#
[root@uatcloudapp ~]# lpstat -v
device for testprinter: socket://192.168.140.20
[root@uatcloudapp ~]#
[root@uatcloudapp ~]# lpstat -p
printer testprinter is idle.
enabled since Tue 10 Aug 2021 08:21:03 AM GMT
[root@uatcloudapp ~]#
to print from OS level directly from folder where file is there:
[root@uatcloudapp ~]# lp -d (printer_name) (report_file_name)
Thanks for Reading
Regards,
Mohammed Areefuddin.
Suggested Topics :
Linux | DATABASE | RMAN | RAC | EBS |
R1229 M7 Clone | ||||
RAC DataGuard | Pluggable DB Clone | |||
appsutil for DB | ||||
JDK JRE upgrade | ||||
Add EBS Node | ||||
No comments:
Post a Comment