0

I am trying to create a project to insert the counts of my printer into the database or into a text file. To create a .txt file with the general total counts, by color and black, both prints and copies I use the following OIDs with the following command lines in ubuntu:

Total counter:

snmpwalk -c public -v 1 192.168.0.123 1.3.6.1.2.1.43.10.2.1.4.1.1 > /var/www/html/wordpress/total.txt

Total copies

snmpwalk -c public -v 1 192.168.0.123 1.3.6.1.4.1.1347.42.3.1.1.1.1.2 > /var/www/html/wordpress/totalcopias.txt

Total impressions

snmpwalk -c public -v 1 192.168.0.123 1.3.6.1.4.1.1347.42.3.1.1.1.1.1 > /var/www/html/wordpress/totalimpressões.txt

Total de impressão a preto

snmpwalk -c public -v 1 192.168.0.123 1.3.6.1.4.1.1347.42.3.1.2.1.1.1 > /var/www/html/wordpress/totalimpressõespreto.txt

Total de impressão a cores

snmpwalk -c public -v 1 192.168.0.123 1.3.6.1.4.1.1347.42.3.1.2.1.1.1.3 > /var/www/html/wordpress/totalimpressõescores.txt

Total de cópias a preto

snmpwalk -c public -v 1 192.168.0.123 1.3.6.1.4.1.1347.42.3.1.2.1.1.2.1 > /var/www/html/wordpress/totalcopiaspreto.txt

Total de cópias a cores

snmpwalk -c public -v 1 192.168.0.123 1.3.6.1.4.1.1347.42.3.1.2.1.1.2.3 > /var/www/html/wordpress/totalcopiascores.txt

But I created my users in my printer and I control monthly impressions and copies per user. But so far, first I do not know if it is possible to access this information with OID, but if it is possible I have not yet found the OID to register in a text file as in the examples above.

Community
  • 1
  • 1
Bruno
  • 801
  • 5
  • 11

0 Answers0