I'm trying to automate installing my OfficeJet 8020 series (8028e) all-in-one on my CentOS (RHEL) 7 desktop. I've installed HPLIP 3.22.6.
If I run hp-probe -bnet, the device is not found.
If I run hp-setup in automatic mode and pass in the IP address, the device is added. I get a print queue and a fax queue, and can use the scanner.
In debug mode hp-probe doesn't say much.
hp-probe[11277]: debug: {}
warning: No devices found on the 'net' bus. If this isn't the result you are expecting,
warning: check your network connections and make sure your internet
warning: firewall software is disabled.
If I run hp-probe with -mmdns, I get more useful output (full output below). The relevant portion seems to be:
hp-probe[20982]: debug: TXT: {'rp': '', 'UUID': '7c9cae79-6836-4edc-b443-08f89cc10dad', 'usb_MFG': 'HP', 'priority': '40', 'mac': 'e0:70:ea:e9:5c:ec', 'pdl': 'application/vnd.hp-PCL,image/jpeg,image/urf,image/pwg-raster,application/PCLm,', 'txtvers': '1', 'usb_MDL': 'OfficeJet Pro 8020 series'}
hp-probe[20982]: debug: NO ty Key in txt: {'rp': '', 'UUID': '7c9cae79-6836-4edc-b443-08f89cc10dad', 'usb_MFG': 'HP', 'priority': '40', 'mac': 'e0:70:ea:e9:5c:ec', 'pdl': 'application/vnd.hp-PCL,image/jpeg,image/urf,image/pwg-raster,application/PCLm,', 'txtvers': '1', 'usb_MDL': 'OfficeJet Pro 8020 series'}
hp-probe appears to be looking for a _pdl-datastream._tcp. If I do the same using avahi-browse I get the same TXT (with no TY field). If instead I request either _ipp._tcp, or _uscan._tcp, I get a TXT containing a TY field that matches the corresponding section in the models.dat file.
I don't know MDNS well enough to know whether this is a firmware bug (should the TY field be included in the _pdl-datastream._tcp response returned by the printer?) or in HPLIP (should it be using a different service name?)
Here is the full debug output of hp-probe using MDNS:
$ hp-probe -bnet -mmdns -g
HP Linux Imaging and Printing System (ver. 3.22.4)
Printer Discovery Utility ver. 4.1
Copyright (c) 2001-18 HP 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.
I'm trying to automate installing my OfficeJet 8020 series (8028e) all-in-one on my CentOS (RHEL) 7 desktop. I've installed HPLIP 3.22.6.
If I run hp-probe -bnet, the device is not found.
If I run hp-setup in automatic mode and pass in the IP address, the device is added. I get a print queue and a fax queue, and can use the scanner.
In debug mode hp-probe doesn't say much.
hp-probe[11277]: debug: {}
warning: No devices found on the 'net' bus. If this isn't the result you are expecting,
warning: check your network connections and make sure your internet
warning: firewall software is disabled.
If I run hp-probe with -mmdns, I get more useful output (full output below). The relevant portion seems to be:
hp-probe[20982]: debug: TXT: {'rp': '', 'UUID': '7c9cae79-6836-4edc-b443-08f89cc10dad', 'usb_MFG': 'HP', 'priority': '40', 'mac': 'e0:70:ea:e9:5c:ec', 'pdl': 'application/vnd.hp-PCL,image/jpeg,image/urf,image/pwg-raster,application/PCLm,', 'txtvers': '1', 'usb_MDL': 'OfficeJet Pro 8020 series'}6836-4edc-b443-08f89cc10dad', 'usb_MFG': 'HP', 'priority': '40', 'mac': 'e0:70:ea:e9:5c:ec', 'pdl': 'application/vnd.hp-PCL,image/jpeg,image/urf,image/pwg-raster,application/PCLm,', 'txtvers': '1', 'usb_MDL': 'OfficeJet Pro 8020 series'}
hp-probe[20982]: debug: NO ty Key in txt: {'rp': '', 'UUID': '7c9cae79-
hp-probe appears to be looking for a _pdl-datastream._tcp. If I do the same using avahi-browse I get the same TXT (with no TY field). If instead I request either _ipp._tcp, or _uscan._tcp, I get a TXT containing a TY field that matches the corresponding section in the models.dat file.
I don't know MDNS well enough to know whether this is a firmware bug (should the TY field be included in the _pdl-datastream._tcp response returned by the printer?) or in HPLIP (should it be using a different service name?)
Here is the full debug output of hp-probe using MDNS:
$ hp-probe -bnet -mmdns -g
HP Linux Imaging and Printing System (ver. 3.22.4)
Printer Discovery Utility ver. 4.1
Copyright (c) 2001-18 HP 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.
---------------------------------
| DEVICE DISCOVERY |
-------
Probing network for printers. Please wait, this will take approx. 10 seconds...
hp-probe[20982]: debug: {}._tcp.local. TYPE=12 CLASS=1._pdl-datastream._tcp.local.6836-4edc-b443-08f89cc10dad', 'usb_MFG': 'HP', 'priority': '40', 'mac': 'e0:70:ea:e9:5c:ec', 'pdl': 'application/vnd.hp-PCL,image/jpeg,image/urf,image/pwg-raster,application/PCLm,', 'txtvers': '1', 'usb_MDL': 'OfficeJet Pro 8020 series'}6836-4edc-b443-08f89cc10dad', 'usb_MFG': 'HP', 'priority': '40', 'mac': 'e0:70:ea:e9:5c:ec', 'pdl': 'application/vnd.hp-PCL,image/jpeg,image/urf,image/pwg-raster,application/PCLm,', 'txtvers': '1', 'usb_MDL': 'OfficeJet Pro 8020 series'}x00\x00\x00\x00\x00\x00\xe2p\xea\xff\xfe\xe9\\\xec'pro_8020_serieshplip/data/models/models.datpro_8020_series] in file /usr/share/hplip/data/models/models.dat
hp-probe[20982]: debug: Outgoing: (44)
hp-probe[20982]: debug: 0000: 00 00 00 00 00 01 00 00 00 00 00 00 0f 5f 70 64 ............._pd
hp-probe[20982]: debug: 0010: 6c 2d 64 61 74 61 73 74 72 65 61 6d 04 5f 74 63 l-datastream._tc
hp-probe[20982]: debug: 0020: 70 05 6c 6f 63 61 6c 00 00 0c 00 01 p.local.....
hp-probe[20982]: debug: Incoming: (405)
hp-probe[20982]: debug: 0000: 00 00 84 00 00 01 00 01 00 00 00 04 0f 5f 70 64 ............._pd
hp-probe[20982]: debug: 0010: 6c 2d 64 61 74 61 73 74 72 65 61 6d 04 5f 74 63 l-datastream._tc
hp-probe[20982]: debug: 0020: 70 05 6c 6f 63 61 6c 00 00 0c 00 01 c0 0c 00 0c p.local.........
hp-probe[20982]: debug: 0030: 00 01 00 00 00 0a 00 28 25 48 50 20 4f 66 66 69 .......(%HP Offi
hp-probe[20982]: debug: 0040: 63 65 4a 65 74 20 50 72 6f 20 38 30 32 30 20 73 ceJet Pro 8020 s
hp-probe[20982]: debug: 0050: 65 72 69 65 73 20 5b 45 39 35 43 45 42 5d c0 0c eries [E95CEB]..
hp-probe[20982]: debug: 0060: c0 38 00 21 00 01 00 00 00 0a 00 17 00 00 00 00 .8.!............
hp-probe[20982]: debug: 0070: 23 8c 0e 48 50 45 30 37 30 45 41 45 39 35 43 45 #..HPE070EAE95CE
hp-probe[20982]: debug: 0080: 42 c0 21 c0 38 00 10 00 01 00 00 00 0a 00 da 09 B.!.8...........
hp-probe[20982]: debug: 0090: 74 78 74 76 65 72 73 3d 31 03 72 70 3d 0b 70 72 txtvers=1.rp=.pr
hp-probe[20982]: debug: 00a0: 69 6f 72 69 74 79 3d 34 30 29 55 55 49 44 3d 37 iority=40)UUID=7
hp-probe[20982]: debug: 00b0: 63 39 63 61 65 37 39 2d 36 38 33 36 2d 34 65 64 c9cae79-6836-4ed
hp-probe[20982]: debug: 00c0: 63 2d 62 34 34 33 2d 30 38 66 38 39 63 63 31 30 c-b443-08f89cc10
hp-probe[20982]: debug: 00d0: 64 61 64 15 6d 61 63 3d 65 30 3a 37 30 3a 65 61 dad.mac=e0:70:ea
hp-probe[20982]: debug: 00e0: 3a 65 39 3a 35 63 3a 65 63 0a 75 73 62 5f 4d 46 :e9:5c:ec.usb_MF
hp-probe[20982]: debug: 00f0: 47 3d 48 50 21 75 73 62 5f 4d 44 4c 3d 4f 66 66 G=HP!usb_MDL=Off
hp-probe[20982]: debug: 0100: 69 63 65 4a 65 74 20 50 72 6f 20 38 30 32 30 20 iceJet Pro 8020
hp-probe[20982]: debug: 0110: 73 65 72 69 65 73 52 70 64 6c 3d 61 70 70 6c 69 seriesRpdl=appli
hp-probe[20982]: debug: 0120: 63 61 74 69 6f 6e 2f 76 6e 64 2e 68 70 2d 50 43 cation/vnd.hp-PC
hp-probe[20982]: debug: 0130: 4c 2c 69 6d 61 67 65 2f 6a 70 65 67 2c 69 6d 61 L,image/jpeg,ima
hp-probe[20982]: debug: 0140: 67 65 2f 75 72 66 2c 69 6d 61 67 65 2f 70 77 67 ge/urf,image/pwg
hp-probe[20982]: debug: 0150: 2d 72 61 73 74 65 72 2c 61 70 70 6c 69 63 61 74 -raster,applicat
hp-probe[20982]: debug: 0160: 69 6f 6e 2f 50 43 4c 6d 2c c0 72 00 01 00 01 00 ion/PCLm,.r.....
hp-probe[20982]: debug: 0170: 00 00 0a 00 04 c0 a8 01 92 c0 72 00 1c 00 01 00 ..........r.....
hp-probe[20982]: debug: 0180: 00 00 0a 00 10 fe 80 00 00 00 00 00 00 e2 70 ea ..............p.
hp-probe[20982]: debug: 0190: ff fe e9 5c ec ...\.
hp-probe[20982]: debug: Response: ID=0 FLAGS=0x8400 Q=1 A=1 AUTH=0 ADD=4
hp-probe[20982]: debug: Q: _pdl-datastream
hp-probe[20982]: debug: PTR: HP OfficeJet Pro 8020 series [E95CEB]
hp-probe[20982]: debug: TXT: {'rp': '', 'UUID': '7c9cae79-
hp-probe[20982]: debug: NO ty Key in txt: {'rp': '', 'UUID': '7c9cae79-
hp-probe[20982]: debug: A: 192.168.1.146
hp-probe[20982]: debug: AAAA: '\xfe\x80\
hp-probe[20982]: debug: Outgoing: (96)
hp-probe[20982]: debug: 0000: 00 00 00 00 00 01 00 01 00 00 00 00 0f 5f 70 64 ............._pd
hp-probe[20982]: debug: 0010: 6c 2d 64 61 74 61 73 74 72 65 61 6d 04 5f 74 63 l-datastream._tc
hp-probe[20982]: debug: 0020: 70 05 6c 6f 63 61 6c 00 00 0c 00 01 c0 0c 00 0c p.local.........
hp-probe[20982]: debug: 0030: 00 01 00 00 ff ff 00 28 25 48 50 20 4f 66 66 69 .......(%HP Offi
hp-probe[20982]: debug: 0040: 63 65 4a 65 74 20 50 72 6f 20 38 30 32 30 20 73 ceJet Pro 8020 s
hp-probe[20982]: debug: 0050: 65 72 69 65 73 20 5b 45 39 35 43 45 42 5d c0 0c eries [E95CEB]..
hp-probe[20982]: debug: Outgoing: (96)
hp-probe[20982]: debug: 0000: 00 00 00 00 00 01 00 01 00 00 00 00 0f 5f 70 64 ............._pd
hp-probe[20982]: debug: 0010: 6c 2d 64 61 74 61 73 74 72 65 61 6d 04 5f 74 63 l-datastream._tc
hp-probe[20982]: debug: 0020: 70 05 6c 6f 63 61 6c 00 00 0c 00 01 c0 0c 00 0c p.local.........
hp-probe[20982]: debug: 0030: 00 01 00 00 ff ff 00 28 25 48 50 20 4f 66 66 69 .......(%HP Offi
hp-probe[20982]: debug: 0040: 63 65 4a 65 74 20 50 72 6f 20 38 30 32 30 20 73 ceJet Pro 8020 s
hp-probe[20982]: debug: 0050: 65 72 69 65 73 20 5b 45 39 35 43 45 42 5d c0 0c eries [E95CEB]..
hp-probe[20982]: debug: Outgoing: (96)
hp-probe[20982]: debug: 0000: 00 00 00 00 00 01 00 01 00 00 00 00 0f 5f 70 64 ............._pd
hp-probe[20982]: debug: 0010: 6c 2d 64 61 74 61 73 74 72 65 61 6d 04 5f 74 63 l-datastream._tc
hp-probe[20982]: debug: 0020: 70 05 6c 6f 63 61 6c 00 00 0c 00 01 c0 0c 00 0c p.local.........
hp-probe[20982]: debug: 0030: 00 01 00 00 ff ff 00 28 25 48 50 20 4f 66 66 69 .......(%HP Offi
hp-probe[20982]: debug: 0040: 63 65 4a 65 74 20 50 72 6f 20 38 30 32 30 20 73 ceJet Pro 8020 s
hp-probe[20982]: debug: 0050: 65 72 69 65 73 20 5b 45 39 35 43 45 42 5d c0 0c eries [E95CEB]..
hp-probe[20982]: debug: Found 1 devices
hp-probe[20982]: debug: Cache miss: officejet_
hp-probe[20982]: debug: Reading file: /usr/share/
hp-probe[20982]: debug: Searching for section [officejet_
warning: No devices found on the 'net' bus. If this isn't the result you are expecting,
warning: check your network connections and make sure your internet
warning: firewall software is disabled.