Re: [Printing-architecture] PAPPL 1.2rc1 (Supply levels)

Michael Sweet <[email protected]>
Newsgroups dev.linux.lists.printing-architecture
Message-ID <[email protected]>
James,

So "socket://ip-or-hostname" works but "snmp://name" doesn't?

Can you send me (privately) a wireshark or tcpdump capture showing the runs?  The SNMP "backend" in PAPPL is using the Host MIB to find the named printer and use the response address as the printer's local IP address.  It is a pitiful backup to DNS-SD and mDNS discovery, but a somewhat necessary one given that certain popular label printers from a vendor whose name starts with the last letter of the alphabet doesn't implement mDNS nor do they provide an easy way to configure a static IP for their network interfaces... :(



> On May 16, 2022, at 4:02 PM, James Cloos <[email protected]> wrote:
> 
>>>>>> "MS" == Michael Sweet via Printing-architecture <[email protected]> writes:
> 
> MS> It looks like the change was made in CUPS 2.2.7 to use the new name.
> MS> I've pushed a workaround to the PAPPL repository - please let me know
> MS> whether that fixes things for you.
> 
> cups 2.4.0_pre refused to emergem but 2.3.3_p2-r3 succeeded.
> 
> before that, there was still another failure due to the older cups.
> 
> but pappl compiles fine with 2.3.3_p2-r3 installed.
> 
> on all of the boxen snmp:// fails even though socket:// uses snmp to get
> its data.
> 
> strace shoes that it succeeds in gettig snmp date, but it prints
> nothing.
> 
> the strace output ends with:
> 
> recvfrom(3, "00\2\1\0\4\6public\242#\2\1\4\2\1\0\2\1\0000\0300\26\6\20+\6\1\4\1\225\v\1\2\1\3\1\1\6\1\1\2\2\2\3", 1472, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("192.168.1.5")}, [256 => 16]) = 50
> pselect6(4, [3], NULL, NULL, {tv_sec=2, tv_nsec=0}, NULL) = 1 (in [3], left {tv_sec=1, tv_nsec=990743222})
> recvfrom(3, "0+\2\1\0\4\6public\242\36\2\1\4\2\1\2\2\1\0010\0230\21\6\r+\6\1\4\1\205+\6\3\1\4\21\0\5\0", 1472, 0, {sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("192.168.1.5")}, [256 => 16]) = 45
> pselect6(4, [3], NULL, NULL, {tv_sec=2, tv_nsec=0}, NULL) = 0 (Timeout)
> pselect6(4, [3], NULL, NULL, {tv_sec=2, tv_nsec=0}, NULL) = 0 (Timeout)
> close(3)                                = 0
> exit_group(1)                           = ?
> +++ exited with 1 +++
> 
> (that trace is from my magicolor.  my cheap inkjet shows a similar end.)
> 
> -JimC
> --
> James Cloos <[email protected]>         OpenPGP: 0x997A9F17ED7DAEA6
> 

________________________
Michael Sweet
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEkIbDzcZsP1Y8+PQFvmfHXsgfMkQFAmKDmOUACgkQvmfHXsgf
MkQW0RAAqG2hovYAgIVfz9AZEHFBMcM+/gIIdJ+7Zygxs0FYcI6u3rLsFOVeTMS/
ZMh4Gcu98hDizLaGIAw/1H7YOo04A7vY1KADZTnn6UHk/kbNQAvLrsAt0apPgeu1
q/ZB8edZdppSIf4Gka6KdegEHUCP/EDnZYxms3IvFu6YL2h4lHckHmwJi5rD0eGc
vhu6i++5IbCEx1JE0f2oNoFp602QIu75qkeIPYCkfvDrJKoHdGOi6JzLnt/cxkpG
Bqjiz5wHCLU7hffME5T8M/tqUBP6lPEecd2JJuRQxRd5mnNtHS4RU1avAfHAH+t+
aPPmC5yKeK+q1YAzSeXVxQetN/g22JNTMnh3mxFWe1Sd7xeqW2OUB1eUk2+0pugh
dHpBtZENv7mEX0xWyCTn/J2DBzcB+ldM+a1dn4TQgbB2LDhsC0Up4vGGSXYbvgu8
W3r2BMdFNeeIc7S9OfU5lm3rGPiS8V3sY3EK6Y0DNi9ywytV0iNJbm2IB4lyvsX9
0qEy1+wueFewHnebsIc4YsYMfiuTjlBpXrSfKdJhGUM9b/hFez8Z1O0IfS206JL8
ExCCPUGJ3bRG4QCSspekrk23M4P9C7AHr8oiTrPrkQqOKsDYKxh7B+buqqeDqXf9
Eeulx2CIxK60dIDB5XntAobc2iHByYaRWSIk6XvdS8whL+4FIsc=
=2G2E
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.