bonjour
je trouve plutôt top ce plugin mais malheureusement ne fonctionne pas sur une HL-L3210CW laser.
bonjour au départ je pensai à un souci de SNMP mais il ne semble pas d’autant que le service est actif, si vous avez une idée ?
cordialement CARI
[2023-06-03 16:18:37][INFO] : Lancement script Brother : LOGLEVEL=debug CALLBACK='http://localhost:80/plugins/brother/core/php/callback.php?apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXId=514' python3 /var/www/html/plugins/brother/resources/jeeBrother.py 192.168.1.42 laser >> /var/www/html/core/class/../../log/brother 2>&1 &
/usr/local/lib/python3.7/dist-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (2.0.2) or chardet (3.0.4) doesn't match a supported version!
RequestsDependencyWarning)
DEBUG:brother:Using host: 192.168.1.42
ERROR:asyncio:Exception in callback AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7fb8a9532f60>, ('192.168.1.42', 161), b"0\x82\x02\x...0\x00\x00\xff")
handle: <Handle AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7fb8a9532f60>, ('192.168.1.42', 161), b"0\x82\x02\x...0\x00\x00\xff")>
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.7/dist-packages/pysnmp/carrier/base.py", line 85, in _cbFun
self, transportDomain, transportAddress, incomingMessage
File "/usr/local/lib/python3.7/dist-packages/pysnmp/entity/engine.py", line 152, in __receiveMessageCbFun
self, transportDomain, transportAddress, wholeMsg
File "/usr/local/lib/python3.7/dist-packages/pysnmp/proto/rfc3412.py", line 291, in receiveMessage
msgVersion = verdec.decodeMessageVersion(wholeMsg)
File "/usr/local/lib/python3.7/dist-packages/pysnmp/proto/api/verdec.py", line 17, in decodeMessageVersion
recursiveFlag=False, substrateFun=lambda a, b, c: (a, b[:c])
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 2003, in __call__
for asn1Object in streamingDecoder:
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 1919, in __iter__
self._substrate, self._asn1Spec, **self._options):
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 1781, in __call__
self, substrateFun, **options):
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 654, in valueDecoder
for chunk in substrateFun(asn1Object, substrate, length, options):
TypeError: <lambda>() takes 3 positional arguments but 4 were given
ERROR:asyncio:Exception in callback AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7fb8a9532f60>, ('192.168.1.42', 161), b"0\x82\x02\x...0\x00\x00\xff")
handle: <Handle AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7fb8a9532f60>, ('192.168.1.42', 161), b"0\x82\x02\x...0\x00\x00\xff")>
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.7/dist-packages/pysnmp/carrier/base.py", line 85, in _cbFun
self, transportDomain, transportAddress, incomingMessage
File "/usr/local/lib/python3.7/dist-packages/pysnmp/entity/engine.py", line 152, in __receiveMessageCbFun
self, transportDomain, transportAddress, wholeMsg
File "/usr/local/lib/python3.7/dist-packages/pysnmp/proto/rfc3412.py", line 291, in receiveMessage
msgVersion = verdec.decodeMessageVersion(wholeMsg)
File "/usr/local/lib/python3.7/dist-packages/pysnmp/proto/api/verdec.py", line 17, in decodeMessageVersion
recursiveFlag=False, substrateFun=lambda a, b, c: (a, b[:c])
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 2003, in __call__
for asn1Object in streamingDecoder:
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 1919, in __iter__
self._substrate, self._asn1Spec, **self._options):
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 1781, in __call__
self, substrateFun, **options):
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 654, in valueDecoder
for chunk in substrateFun(asn1Object, substrate, length, options):
TypeError: <lambda>() takes 3 positional arguments but 4 were given
ERROR:asyncio:Exception in callback AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7fb8a9532f60>, ('192.168.1.42', 161), b"0\x82\x02\x...0\x00\x00\xff")
handle: <Handle AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7fb8a9532f60>, ('192.168.1.42', 161), b"0\x82\x02\x...0\x00\x00\xff")>
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.7/dist-packages/pysnmp/carrier/base.py", line 85, in _cbFun
self, transportDomain, transportAddress, incomingMessage
File "/usr/local/lib/python3.7/dist-packages/pysnmp/entity/engine.py", line 152, in __receiveMessageCbFun
self, transportDomain, transportAddress, wholeMsg
File "/usr/local/lib/python3.7/dist-packages/pysnmp/proto/rfc3412.py", line 291, in receiveMessage
msgVersion = verdec.decodeMessageVersion(wholeMsg)
File "/usr/local/lib/python3.7/dist-packages/pysnmp/proto/api/verdec.py", line 17, in decodeMessageVersion
recursiveFlag=False, substrateFun=lambda a, b, c: (a, b[:c])
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 2003, in __call__
for asn1Object in streamingDecoder:
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 1919, in __iter__
self._substrate, self._asn1Spec, **self._options):
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 1781, in __call__
self, substrateFun, **options):
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 654, in valueDecoder
for chunk in substrateFun(asn1Object, substrate, length, options):
TypeError: <lambda>() takes 3 positional arguments but 4 were given
ERROR:asyncio:Exception in callback AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7fb8a9532f60>, ('192.168.1.42', 161), b"0\x82\x02\x...0\x00\x00\xff")
handle: <Handle AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7fb8a9532f60>, ('192.168.1.42', 161), b"0\x82\x02\x...0\x00\x00\xff")>
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.7/dist-packages/pysnmp/carrier/base.py", line 85, in _cbFun
self, transportDomain, transportAddress, incomingMessage
File "/usr/local/lib/python3.7/dist-packages/pysnmp/entity/engine.py", line 152, in __receiveMessageCbFun
self, transportDomain, transportAddress, wholeMsg
File "/usr/local/lib/python3.7/dist-packages/pysnmp/proto/rfc3412.py", line 291, in receiveMessage
msgVersion = verdec.decodeMessageVersion(wholeMsg)
File "/usr/local/lib/python3.7/dist-packages/pysnmp/proto/api/verdec.py", line 17, in decodeMessageVersion
recursiveFlag=False, substrateFun=lambda a, b, c: (a, b[:c])
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 2003, in __call__
for asn1Object in streamingDecoder:
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 1919, in __iter__
self._substrate, self._asn1Spec, **self._options):
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 1781, in __call__
self, substrateFun, **options):
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 654, in valueDecoder
for chunk in substrateFun(asn1Object, substrate, length, options):
TypeError: <lambda>() takes 3 positional arguments but 4 were given
ERROR:asyncio:Exception in callback AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7fb8a9532f60>, ('192.168.1.42', 161), b"0\x82\x02\x...0\x00\x00\xff")
handle: <Handle AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7fb8a9532f60>, ('192.168.1.42', 161), b"0\x82\x02\x...0\x00\x00\xff")>
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.7/dist-packages/pysnmp/carrier/base.py", line 85, in _cbFun
self, transportDomain, transportAddress, incomingMessage
File "/usr/local/lib/python3.7/dist-packages/pysnmp/entity/engine.py", line 152, in __receiveMessageCbFun
self, transportDomain, transportAddress, wholeMsg
File "/usr/local/lib/python3.7/dist-packages/pysnmp/proto/rfc3412.py", line 291, in receiveMessage
msgVersion = verdec.decodeMessageVersion(wholeMsg)
File "/usr/local/lib/python3.7/dist-packages/pysnmp/proto/api/verdec.py", line 17, in decodeMessageVersion
recursiveFlag=False, substrateFun=lambda a, b, c: (a, b[:c])
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 2003, in __call__
for asn1Object in streamingDecoder:
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 1919, in __iter__
self._substrate, self._asn1Spec, **self._options):
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 1781, in __call__
self, substrateFun, **options):
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 654, in valueDecoder
for chunk in substrateFun(asn1Object, substrate, length, options):
TypeError: <lambda>() takes 3 positional arguments but 4 were given
ERROR:asyncio:Exception in callback AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7fb8a9532f60>, ('192.168.1.42', 161), b"0\x82\x02\x...0\x00\x00\xff")
handle: <Handle AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7fb8a9532f60>, ('192.168.1.42', 161), b"0\x82\x02\x...0\x00\x00\xff")>
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.7/dist-packages/pysnmp/carrier/base.py", line 85, in _cbFun
self, transportDomain, transportAddress, incomingMessage
File "/usr/local/lib/python3.7/dist-packages/pysnmp/entity/engine.py", line 152, in __receiveMessageCbFun
self, transportDomain, transportAddress, wholeMsg
File "/usr/local/lib/python3.7/dist-packages/pysnmp/proto/rfc3412.py", line 291, in receiveMessage
msgVersion = verdec.decodeMessageVersion(wholeMsg)
File "/usr/local/lib/python3.7/dist-packages/pysnmp/proto/api/verdec.py", line 17, in decodeMessageVersion
recursiveFlag=False, substrateFun=lambda a, b, c: (a, b[:c])
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 2003, in __call__
for asn1Object in streamingDecoder:
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 1919, in __iter__
self._substrate, self._asn1Spec, **self._options):
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 1781, in __call__
self, substrateFun, **options):
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 654, in valueDecoder
for chunk in substrateFun(asn1Object, substrate, length, options):
TypeError: <lambda>() takes 3 positional arguments but 4 were given
ERROR:asyncio:Exception in callback AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7fb8a9532f60>, ('192.168.1.42', 161), b"0\x82\x02\x...0\x00\x00\xff")
handle: <Handle AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7fb8a9532f60>, ('192.168.1.42', 161), b"0\x82\x02\x...0\x00\x00\xff")>
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.7/dist-packages/pysnmp/carrier/base.py", line 85, in _cbFun
self, transportDomain, transportAddress, incomingMessage
File "/usr/local/lib/python3.7/dist-packages/pysnmp/entity/engine.py", line 152, in __receiveMessageCbFun
self, transportDomain, transportAddress, wholeMsg
File "/usr/local/lib/python3.7/dist-packages/pysnmp/proto/rfc3412.py", line 291, in receiveMessage
msgVersion = verdec.decodeMessageVersion(wholeMsg)
File "/usr/local/lib/python3.7/dist-packages/pysnmp/proto/api/verdec.py", line 17, in decodeMessageVersion
recursiveFlag=False, substrateFun=lambda a, b, c: (a, b[:c])
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 2003, in __call__
for asn1Object in streamingDecoder:
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 1919, in __iter__
self._substrate, self._asn1Spec, **self._options):
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 1781, in __call__
self, substrateFun, **options):
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 654, in valueDecoder
for chunk in substrateFun(asn1Object, substrate, length, options):
TypeError: <lambda>() takes 3 positional arguments but 4 were given
ERROR:asyncio:Exception in callback AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7fb8a9532f60>, ('192.168.1.42', 161), b"0\x82\x02\x...0\x00\x00\xff")
handle: <Handle AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7fb8a9532f60>, ('192.168.1.42', 161), b"0\x82\x02\x...0\x00\x00\xff")>
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.7/dist-packages/pysnmp/carrier/base.py", line 85, in _cbFun
self, transportDomain, transportAddress, incomingMessage
File "/usr/local/lib/python3.7/dist-packages/pysnmp/entity/engine.py", line 152, in __receiveMessageCbFun
self, transportDomain, transportAddress, wholeMsg
File "/usr/local/lib/python3.7/dist-packages/pysnmp/proto/rfc3412.py", line 291, in receiveMessage
msgVersion = verdec.decodeMessageVersion(wholeMsg)
File "/usr/local/lib/python3.7/dist-packages/pysnmp/proto/api/verdec.py", line 17, in decodeMessageVersion
recursiveFlag=False, substrateFun=lambda a, b, c: (a, b[:c])
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 2003, in __call__
for asn1Object in streamingDecoder:
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 1919, in __iter__
self._substrate, self._asn1Spec, **self._options):
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 1781, in __call__
self, substrateFun, **options):
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 654, in valueDecoder
for chunk in substrateFun(asn1Object, substrate, length, options):
TypeError: <lambda>() takes 3 positional arguments but 4 were given
ERROR:asyncio:Exception in callback AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7fb8a9532f60>, ('192.168.1.42', 161), b"0\x82\x02\x...0\x00\x00\xff")
handle: <Handle AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7fb8a9532f60>, ('192.168.1.42', 161), b"0\x82\x02\x...0\x00\x00\xff")>
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.7/dist-packages/pysnmp/carrier/base.py", line 85, in _cbFun
self, transportDomain, transportAddress, incomingMessage
File "/usr/local/lib/python3.7/dist-packages/pysnmp/entity/engine.py", line 152, in __receiveMessageCbFun
self, transportDomain, transportAddress, wholeMsg
File "/usr/local/lib/python3.7/dist-packages/pysnmp/proto/rfc3412.py", line 291, in receiveMessage
msgVersion = verdec.decodeMessageVersion(wholeMsg)
File "/usr/local/lib/python3.7/dist-packages/pysnmp/proto/api/verdec.py", line 17, in decodeMessageVersion
recursiveFlag=False, substrateFun=lambda a, b, c: (a, b[:c])
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 2003, in __call__
for asn1Object in streamingDecoder:
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 1919, in __iter__
self._substrate, self._asn1Spec, **self._options):
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 1781, in __call__
self, substrateFun, **options):
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 654, in valueDecoder
for chunk in substrateFun(asn1Object, substrate, length, options):
TypeError: <lambda>() takes 3 positional arguments but 4 were given
ERROR:asyncio:Exception in callback AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7fb8a9532f60>, ('192.168.1.42', 161), b"0\x82\x02\x...0\x00\x00\xff")
handle: <Handle AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7fb8a9532f60>, ('192.168.1.42', 161), b"0\x82\x02\x...0\x00\x00\xff")>
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.7/dist-packages/pysnmp/carrier/base.py", line 85, in _cbFun
self, transportDomain, transportAddress, incomingMessage
File "/usr/local/lib/python3.7/dist-packages/pysnmp/entity/engine.py", line 152, in __receiveMessageCbFun
self, transportDomain, transportAddress, wholeMsg
File "/usr/local/lib/python3.7/dist-packages/pysnmp/proto/rfc3412.py", line 291, in receiveMessage
msgVersion = verdec.decodeMessageVersion(wholeMsg)
File "/usr/local/lib/python3.7/dist-packages/pysnmp/proto/api/verdec.py", line 17, in decodeMessageVersion
recursiveFlag=False, substrateFun=lambda a, b, c: (a, b[:c])
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 2003, in __call__
for asn1Object in streamingDecoder:
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 1919, in __iter__
self._substrate, self._asn1Spec, **self._options):
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 1781, in __call__
self, substrateFun, **options):
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 654, in valueDecoder
for chunk in substrateFun(asn1Object, substrate, length, options):
TypeError: <lambda>() takes 3 positional arguments but 4 were given
ERROR:asyncio:Exception in callback AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7fb8a9532f60>, ('192.168.1.42', 161), b"0\x82\x02\x...0\x00\x00\xff")
handle: <Handle AbstractTransportDispatcher._cbFun(<pysnmp.carri...x7fb8a9532f60>, ('192.168.1.42', 161), b"0\x82\x02\x...0\x00\x00\xff")>
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.7/dist-packages/pysnmp/carrier/base.py", line 85, in _cbFun
self, transportDomain, transportAddress, incomingMessage
File "/usr/local/lib/python3.7/dist-packages/pysnmp/entity/engine.py", line 152, in __receiveMessageCbFun
self, transportDomain, transportAddress, wholeMsg
File "/usr/local/lib/python3.7/dist-packages/pysnmp/proto/rfc3412.py", line 291, in receiveMessage
msgVersion = verdec.decodeMessageVersion(wholeMsg)
File "/usr/local/lib/python3.7/dist-packages/pysnmp/proto/api/verdec.py", line 17, in decodeMessageVersion
recursiveFlag=False, substrateFun=lambda a, b, c: (a, b[:c])
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 2003, in __call__
for asn1Object in streamingDecoder:
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 1919, in __iter__
self._substrate, self._asn1Spec, **self._options):
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 1781, in __call__
self, substrateFun, **options):
File "/usr/local/lib/python3.7/dist-packages/pyasn1/codec/ber/decoder.py", line 654, in valueDecoder
for chunk in substrateFun(asn1Object, substrate, length, options):
TypeError: <lambda>() takes 3 positional arguments but 4 were given
ERROR:root:No SNMP response received before timeout
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:80
[2023-06-03 16:19:00][DEBUG] : Données reçues en callback '{"unreachable": true}'
[2023-06-03 16:19:00][DEBUG] : [Technique][HL-L3210CW BROTHER LASER] data content: {"unreachable": true}
[2023-06-03 16:19:01][INFO] : [Technique][HL-L3210CW BROTHER LASER] record value for status: Injoignable
DEBUG:urllib3.connectionpool:http://localhost:80 "POST /plugins/brother/core/php/callback.php?apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXId=514 HTTP/1.1" 200 0