what network ports does hplip search printers on?

Asked by Gurjit Dhaliwall

I'm trying to setup a laserjet hp2035n using hplip and it can't seem to find the printer.

I'm operating in a highly controlled env where specific port opening requests need to be made.

1. What network ports need to be opened to allow hplip to find the printer?
2. Do we need to enable 'ping' to work to the printer for hplip to work?

Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Gurjit Dhaliwall (gurjit-dhaliwall) said :
#1

Also ..can you confirm whether the printer needs to be 'pingable' for hplip to work?

Revision history for this message
goutam kodu (goutam-hplip) said :
#2

Hi Gurjit,

We apologize for delay in our response.

Can you run 'hp-check' command in terminal and provide its full output here.

The network ports that we try to open are 427,5353 to discover the network printers.
Can you check if these ports are opened in your network environment.

Thanks,
Goutam

Revision history for this message
Gurjit Dhaliwall (gurjit-dhaliwall) said :
#3

Hi Goutam

I've included the output of the hp-check utility below.
The printer we're having an issue with finding using hp-setup is : WPCA_CHK_PRINTER.

Q1. Can you comment on the following link which seems to suggest different ports required to be open?
http://hplipopensource.com/node/216

Q2. Also, does the printer need to be 'pingable' for hp-setup to find the printer?

Gurjit

################# hp-check output ######################

warning: python-dbus not installed.
Saving output in log file: /twpa1i/product/hp-check.log

HP Linux Imaging and Printing System (ver. 3.14.4)
Dependency/Version Check Utility ver. 15.1

Copyright (c) 2001-13 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies are installed to
successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball has the proper dependencies
installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and run-time dependencies).

Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION

Status Types:
    OK
    MISSING - Missing Dependency or Permission or Plug-in
    INCOMPAT - Incompatible dependency-version or Plugin-version

warning: enterpriseenterpriseserver distro is not found in AUTH_TYPES
warning: unknown-0.0 version is not supported. Using unknown-0 versions dependencies to verify and install...

---------------
| SYSTEM INFO |
---------------

 Kernel: 2.6.18-371.8.1.0.1.el5 #1 SMP Thu Apr 24 13:43:12 PDT 2014 GNU/Linux
 Host: ukdc1-oc-ebs02
 Proc: 2.6.18-371.8.1.0.1.el5 #1 SMP Thu Apr 24 13:43:12 PDT 2014 GNU/Linux
 Distribution: unknown 0.0
 Bitness: 64 bit

-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.14.4
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for unknown distro 0.0 version 

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.14.4

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/cups/model/HP
ppdbase=/usr/share/cups/model
doc=/usr/share/doc/hplip-3.14.4
html=/usr/share/doc/hplip-3.14.4
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
bin=/usr/bin

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=yes
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=no
dbus-build=no
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=yes
internal-tag=3.14.4
restricted-build=no
ui-toolkit=qt3
qt3=yes
qt4=no
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no

Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: No such file or directory

Current contents of '~/.hplip/hplip.conf' file:
[installation]
version = 3.14.4
date_time = 15/07/14 07:04:49

 <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>

--------------------------
| External Dependencies |
--------------------------

 gs Ghostscript REQUIRED 7.05 8.70 OK -
 network Network-wget OPTIONAL - 1.11.4 OK -
 error: dbus DBus REQUIRED - 1.1.2 MISSING 'DBUS may not be installed or not running'
 scanimage Shell-Scanning OPTIONAL 1.0 1.0.18 OK -
 error: avahi-utils avahi-utils OPTIONAL - - MISSING 'avahi-utils needs to be installed'
 error: policykit Admin-Policy-framework OPTIONAL - - MISSING 'policykit needs to be installed'

(xsane:29746): Gtk-WARNING **: cannot open display:
 error: xsane SANE-GUI OPTIONAL 0.9 - INCOMPAT 'xsane needs to be installed'
 cups CUPS REQUIRED 1.1 1.3.7 OK 'CUPS Scheduler is running'

-------------------------
| General Dependencies |
-------------------------

 error: reportlab Python-PDF-Lib OPTIONAL 2.0 - MISSING 'reportlab needs to be installed'
 libcrypto OpenSSL-Crypto-Lib REQUIRED - 0.9.8 OK -
 pil Python-Image-Lib OPTIONAL - 1.1.5 OK -
 error: pyqt4-dbus PyQt4-DBUS REQUIRED 4.0 - MISSING 'pyqt4-dbus needs to be installed'
 libjpeg JPEG-Lib REQUIRED - - OK -
 libpthread POSIX-Threads-Lib REQUIRED - - OK -
 error: python-dbus Python-DBUS REQUIRED 0.80.0 0.70.0 MISSING 'python-dbus needs to be installed'
 error: cups-ddk CUPS-DDK OPTIONAL - - MISSING 'cups-ddk needs to be installed'
 error: python-devel Python-SDK REQUIRED 2.2 - INCOMPAT 'python-devel needs to be installed'
 error: pyqt Python-Qt REQUIRED 2.3 3.16.0 MISSING -
 cups-devel CUPS-SDK REQUIRED - 1.3.7 OK -
 sane-devel SANE-SDK REQUIRED - 1.0.18 OK -
 error: libusb USB-Lib REQUIRED - 1.0 MISSING 'libusb needs to be installed'
 sane Scan-Lib REQUIRED - 1.0.18 OK -
 cups-image CUPS-Image-Lib REQUIRED - 1.3.7 OK -
 libnetsnmp-devel SNMP-Networking-SDK REQUIRED 5.0.9 5.3.2 OK -
 python-xml Python-XML-Lib REQUIRED - 1.95.8 OK -
 error: python-notify Desktop-notifications OPTIONAL - - MISSING 'python-notify needs to be installed'

------------------------------
| Compile Time Dependencies |
------------------------------

 gcc gcc-Compiler REQUIRED - 4.1.2 OK -
 libtool Build-tools REQUIRED - 1.5.22 OK -
 make GNU-Build-tools REQUIRED 3.0 3.81 OK -

----------------------
| Python Extentions |
----------------------

 cupsext CUPS-Extension REQUIRED - 3.14.4 OK -
 pcardext PhotoCard-Extension REQUIRED - 3.14.4 OK -
 hpmudext IO-Extension REQUIRED - 3.14.4 OK -

-----------------------
| Scan Configuration |
-----------------------

 hpaio HPLIP-SANE-Backend REQUIRED - 3.14.4 OK 'hpaio found in /etc/sane.d/dll.conf'
 scanext Scan-SANE-Extension REQUIRED - 3.14.4 OK -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

No Scanner found.

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

ACOM-OKI
--------
Type: Unknown
Device URI: socket://100.65.128.190:515

WPCA_CHK_PRINTER
----------------
Type: Unknown
Device URI: socket://100.66.1.126:515
PPD: /etc/cups/ppd/WPCA_CHK_PRINTER.ppd
PPD Description: HP LaserJet p2035n pcl3, hpcups 3.14.4, requires proprietary plugin
Printer status: printer WPCA_CHK_PRINTER is idle. enabled since Mon 14 Jul 2014 14:58:02 UTC
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.

--------------
| PERMISSION |
--------------

-----------
| SELINUX |
-----------

SELinux disabled Optional - - OK -
error: Failed to find the lsusb command

-----------
| SUMMARY |
-----------

Missing Required Dependencies
-----------------------------
None

Missing Optional Dependencies
-----------------------------
None

Total Errors: 12
Total Warnings: 1

Done.
############################################################

Revision history for this message
Johannes Meixner (jsmeix) said :
#4
Revision history for this message
goutam kodu (goutam-hplip) said :
#5

Hi Gurjit,

Ports 427,5353 are used by slp and mdns protocol to do network discovery of printers.

Port 9100 is used for printing
Port 161,162 are used by snmp protocol to

The printer needs to be pingable.

You can follow the instructions provided in http://hplipopensource.com/node/216 and let us know what is the output you get by running command.

snmpwalk -Os -c public -v 1 ip.address.of.printer 1.3.6.1.4.1.11.2.3.9.1.1.7.0

From hp-check log i could not find which linux distribution is being used. Can you tell us which linux distribution it is ?

Revision history for this message
Gurjit Dhaliwall (gurjit-dhaliwall) said :
#6

Hi

We have Redhat 64 bit enterprise 5.10

Gurjit

Revision history for this message
Gurjit Dhaliwall (gurjit-dhaliwall) said :
#7

Hi

Can you let me know where I can download the correct Linux printer driver for HP Laserjet 2035n w/o having to use HPLIS please?

Gurjit

Revision history for this message
Gurjit Dhaliwall (gurjit-dhaliwall) said :
#8

Hi

Can you let me know where I can download the correct Linux printer driver for HP Laserjet 2035n w/o having to use HPLIS please?

Gurjit

Revision history for this message
goutam (goutamkk) said :
#9

Please go to the link http://hplipopensource.com/hplip-web/install_wizard/index.html.

Choose operating system as Red Hat Enterprise Linux and select version 5.0 and select the appropriate option and proceed. This should help you to download the hplip drivers for RHEL 5.

Revision history for this message
Hp printer support (hpprintersupport12) said :
#10

Sometimes ports are not supportable for that you have to check your port support drivers and reinstall it. Now it will hplip search printer on. To know more visit https://printerchatsupport.co.uk/hp-printer-support/

Can you help with this problem?

Provide an answer of your own, or ask Gurjit Dhaliwall for more information if necessary.

To post a message you must log in.