Brother printer integration works great!

Ok, so the normal warning, then it has to wait a bit :smiley:

As we are talking about this great integration, I am missing some other information, my printer is a LED printer, so it has four drums, not one :slight_smile:
It would be great to have them in as well :smiley:

You posted a screenshot from maintenance page, so now I need raw data from your printer :slight_smile:

1 Like

Ok, so here goes (had to create a debian 10 machine to get a test server :slight_smile:)


`{'1.3.6.1.4.1.2435.2.3.9.4.2.1.5.5.10.0': ['0001040000134b', '02010400000c69', '010104000006e2', '16010400003483', '13010400000a91', '14010400000aa4', '15010400000c33', '1201040000131b'], '1.3.6.1.4.1.2435.2.3.9.4.2.1.5.5.17.0': 'ZA1811191217', '1.3.6.1.4.1.2435.2.3.9.4.2.1.5.5.8.0': ['76010400000001', '77010400000001', '78010400000001', '7f010400000001', '68010400000001', '55010400000001', '31010400000001', '32010400000001', '33010400000001', '34010400000001', '700104000017d4', '82010400000046', '7101040000170c', '8301040000003c', '720104000007d0', '84010400000014', '6f01040000238c', '81010400000064', '79010400001a90', '7a010400001a90', '7b010400001a90', '80010400001a90', '6901040000206c', '7301040000134b', '7401040000134b', '7501040000134b', '7e01040000134b', '54010400000001', '35010400000001', '6a01040000238c', '6d0104000023f0'], '1.3.6.1.4.1.2435.2.4.3.2435.5.13.3.0': 'Fribert Stuen', '1.3.6.1.4.1.2435.2.3.9.4.2.1.5.5.11.0': ['a401040000274d', 'a501040000274d', 'a601040000274d', 'a701040000274d', '8801040000a0c8', '7301040000b005', '7701040000b2b6'], '1.3.6.1.2.1.43.10.2.1.4.1.1': '4939', '1.3.6.1.4.1.2435.2.3.9.4.2.1.5.5.1.0': 'E71833C4J372261', '1.3.6.1.4.1.2435.2.3.9.4.2.1.5.4.5.2.0': 'Dvale                 ', '1.3.6.1.2.1.1.3.0': '7251895'}`

I also got this:



Sensors data: {'status': 'dvale', 'page_counter': 4939, 'uptime': 1, 'color_counter': 3177, 'b/w_counter': 1762, 'image_counter': 13443, 'cyan_counter': 2705, 'magenta_counter': 2724, 'yellow_counter': 3123, 'black_counter': 4891, 'black_toner_status': 1, 'cyan_toner_status': 1, 'magenta_toner_status': 1, 'yellow_toner_status': 1, 'cyan_toner_remaining': 61, 'cyan_toner': 70, 'magenta_toner_remaining': 59, 'magenta_toner': 60, 'yellow_toner_remaining': 20, 'yellow_toner': 20, 'black_toner_remaining': 91, 'black_toner': 100, 'belt_unit_remaining_life': 83, 'fuser_remaining_life': 91, 'pf_kit_1_remaining_life': 92, 'belt_unit_remaining_pages': 41160, 'laser_unit_remaining_pages': 45061, 'pf_kit_1_remaining_pages': 45750}

I hope this helps in some way.

1 Like

I made new version of the package with support for colorful drums. Could you repeat this commands:

pip install --upgrade git+https://github.com/bieniu/brother@dev
curl https://raw.githubusercontent.com/bieniu/brother/dev/example.py -o example.py
python3 example.py <PRINTER_IP>

and show me Sensors data?

1 Like

Ok, np:


Sensors data: {'status': 'dvale', 'page_counter': 4939, 'uptime': 0, 'color_counter': 3177, 'b/w_counter': 1762, 'image_counter': 13443, 'cyan_counter': 2705, 'magenta_counter': 2724, 'yellow_counter': 3123, 'black_counter': 4891, 'black_toner_status': 1, 'cyan_toner_status': 1, 'magenta_toner_status': 1, 'yellow_toner_status': 1, 'cyan_toner_remaining': 61, 'cyan_toner': 70, 'magenta_toner_remaining': 59, 'magenta_toner': 60, 'yellow_toner_remaining': 20, 'yellow_toner': 20, 'black_toner_remaining': 91, 'black_toner': 100, 'cyan_remaining_life': 68, 'magenta_remaining_life': 68, 'yellow_remaining_life': 68, 'black_remaining_life': 68, 'belt_unit_remaining_life': 83, 'cyan_drum_counter': 4939, 'magenta_drum_counter': 4939, 'yellow_drum_counter': 4939, 'black_drum_counter': 4939, 'fuser_remaining_life': 91, 'pf_kit_1_remaining_life': 92, 'belt_unit_remaining_pages': 41157, 'laser_unit_remaining_pages': 45061, 'pf_kit_1_remaining_pages': 45750}

Thanks. What does ‘Fribert Stuen’ mean? This OID should contain printer model name.
'1.3.6.1.4.1.2435.2.4.3.2435.5.13.3.0': 'Fribert Stuen'

1 Like

That is the printers ‘name’ in Google Cloud printing and other printer services.

OK, I understand. Could you run this command and show me the result?

snmpget -v1 -c public <PRINTER_IP> 1.3.6.1.4.1.2435.2.4.3.99.3.1.6.1.2.1 1.3.6.1.4.1.2435.2.4.3.2435.5.13.3.0 1.3.6.1.4.1.2435.2.4.4.1240.5.16.1.1.1.2 1.3.6.1.4.1.2435.2.4.4.1240.5.16.1.1.1.3

You need snmp package for it. To install it you have to use this command (on Debian):

sudo apt install snmp
1 Like

Ok, this is the result:

root@testserver:~# snmpget -v1 -c public 10.11.12.7 1.3.6.1.4.1.2435.2.4.3.99.3.1.6.1.2.1 1.3.6.1.4.1.2435.2.4.3.2435.5.13.3.0 1.3.6.1.4.1.2435.2.4.4.1240.5.16.1.1.1.2 1.3.6.1.4.1.2435.2.4.4.1240.5.16.1.1.1.3
Created directory: /var/lib/snmp/mib_indexes
iso.3.6.1.4.1.2435.2.4.3.99.3.1.6.1.2.1 = STRING: "MODEL=\"DCP-9020CDW\""
iso.3.6.1.4.1.2435.2.4.3.2435.5.13.3.0 = STRING: "Fribert Stuen"
iso.3.6.1.4.1.2435.2.4.4.1240.5.16.1.1.1.2 = STRING: "Brother DCP-9020CDW [30055c3dd1c6]"
iso.3.6.1.4.1.2435.2.4.4.1240.5.16.1.1.1.3 = STRING: "Brother DCP-9020CDW [30055c3dd1c6]"

Great, thanks.

1 Like

Could you try again and show me the result?

pip install --upgrade git+https://github.com/bieniu/brother@dev
curl https://raw.githubusercontent.com/bieniu/brother/dev/example.py -o example.py
python3 example.py <PRINTER_IP>
1 Like

This is the result:

Data available: True
Model: DCP-9020CDW
Firmware: ZA1811191217
Status: dvale
Serial no: E71833C4J372261
Sensors data: {'status': 'dvale', 'page_counter': 4942, 'uptime': 3, 'color_counter': 3179, 'b/w_counter': 1763, 'image_counter': 13452, 'cyan_counter': 2707, 'magenta_counter': 2726, 'yellow_counter': 3125, 'black_counter': 4894, 'black_toner_status': 1, 'cyan_toner_status': 1, 'magenta_toner_status': 1, 'yellow_toner_status': 1, 'cyan_toner_remaining': 61, 'cyan_toner': 70, 'magenta_toner_remaining': 59, 'magenta_toner': 60, 'yellow_toner_remaining': 20, 'yellow_toner': 20, 'black_toner_remaining': 91, 'black_toner': 100, 'cyan_drum_remaining_life': 68, 'magenta_drum_remaining_life': 68, 'yellow_drum_remaining_life': 68, 'black_drum_remaining_life': 68, 'belt_unit_remaining_life': 83, 'cyan_drum_counter': 4942, 'magenta_drum_counter': 4942, 'yellow_drum_counter': 4942, 'black_drum_counter': 4942, 'fuser_remaining_life': 91, 'pf_kit_1_remaining_life': 92, 'black_drum_remaining_pages': 10058, 'cyan_drum_remaining_pages': 10058, 'magenta_drum_remaining_pages': 10058, 'yellow_drum_remaining_pages': 10058, 'belt_unit_remaining_pages': 41152, 'laser_unit_remaining_pages': 45058, 'pf_kit_1_remaining_pages': 45747}

That looks very promising…

Thanks. I think the library is ready.

1 Like

The PR that adds new sensors is ready and waiting for review.

1 Like

Is there a way to change the SNMP string this integration uses? I assume it defaults to “public” but I dont use defaults and its not working with an SNMP error

It’s not supported.

I have the same problem. Do you solve it?

1 Like

I haven’t really noticed it since. I’m also not really paying attention to it for any reason :wink:

application status appears unavailable several times a day at random.

can anyone help ?

It’s using SNMP, so it’s in the network or the printer. Have you set some extra power saving settings of some sort?