Releases: somethingstarted/PrinterFinderInfoGatherer
Ready for production use. Logs work.
Ready for production use. Logs work. added computer hostname to logs.
should be ready for prodcution use. need to see how it acts this month.
- removed the attempt at adding custom bash scripts for now. will revist this idea later.
- removed from _printer_counter.py the date offset portions, because it needs to save to TODAY's CSV, not to next month's CSV. the printer finder starts early because the list of printers need to be ready for when the printer counter run. - and until i finish the script that controlls both printer finder and counter, they have to be separate cronjobs (finder and counter)
if this works this month then it'll essentially be prod ready.
getting decent
fixed cli output. console acts mostly as expected.
redid file structure to not be so inconsistent. now you just remove src and replace src and you dont loose your data
it works. but needs to be refined.
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