Skip to content

it works. but needs to be refined.

Pre-release
Pre-release
Compare
Choose a tag to compare
@somethingstarted somethingstarted released this 19 Jun 15:24
· 17 commits to master since this release

it gets the job done. but i dont like that it assumes you use "public" as the community. once it is able to have multiple communities and in some way iterate through them, or you pick a community per subnet - or something, then i'll consider it a complete version 1. right now if you want to change the community you have to change it in like 14 different places and that's no good. you should have it once in settings.yaml and be done with it.

i also dont like that i hardcoded which printer models to ignore, that needs to be moved to settings.


but it IS able to get the job done assuming you can change the community to what you want it to, in all 14 places lol. - still not marking it as production ready until that is taken care of.

how to run it:
change example settings to just "settings.yaml"

  • add your subnets etc.
  • run through the _findprinters script (it'll take a while. cli is doesn't do what i want it to do but it gets the job done)
  • once you get your csv you run _printer counter
  • its not finding my printer? it might be set to ignore that printer, go look at the more_python/findPrintersFilter.py around line 30 and see what is set to be ignored. also canon printers suck and require manual set up and i just gave up on them. feel free to never buy a canon printer until they can let you use the online portal w/o having to spend 3 hours per printer trying and failing to get it to work.

they are 2 separate ones because it's easier to set up 2 separate ones in a cronjob than to create a bunch of extra logic to have it know when to run the 8 hr find printer's


future todo:

  • move ignore_printers to a easy to access yaml
  • move snmp v1 community name(s) to settings.yaml
  • refactor so known printers are on their own py script with just that function because that list will eventually get pretty big if people help me add printers there (please do)
  • web interface to view statistics
  • file organizer so that it can put files in subdirectories by year
  • general cleanup / refactoring / move to standard directory formats with a single output folder