0
I’m trying to create a script
to enter my printer counts in the database.
To create a file with the general total counts I use the following OIDs
with the following command lines in Ubuntu:
Total accountant
snmpwalk -c public -v 1 192.168.0.123 1.3.6.1.2.1.43.10.2.1.4.1.1
Full copies
snmpwalk -c public -v 1 192.168.0.123 1.3.6.1.4.1.1347.42.3.1.1.1.1.2
...
Total print in black
snmpwalk -c public -v 1 192.168.0.123 1.3.6.1.4.1.1347.42.3.1.2.1.1.1.1
But I created users in my printer and control monthly prints and copies per user.
But so far, first I do not know if it is possible to access this information by script
, but if it’s possible I haven’t found the OID
to do so.
Anyone can help?
I voted to close the question as outside the scope because I did not understand the relationship of the problem with programming. You cite the fact that you are creating a script, but the problem seems to be centered on the executed command. If so, it will be easier to check the documentation of the command using
man
. If the question is how to execute this command through your script, was not sufficiently clear and would suggest to [DIT] and add the code of the script.– Woss
@Anderson Carlos Woss, so to use this documentation command, I do
man oip
orman mib
? I’m asking because I don’t know this command– Bruno
@Anderson Carlos Woss, the problem is really not knowing which is the OID to show the users and the count of each one. I have no problem with the script. I already looked it up on the Internet and I can’t find it. I asked the question, since in the community, there may be someone who has already been through the same difficulty and already has knowledge of this OID that I seek and do not find.
– Bruno
I don’t think it will even be possible to enter monthly counts per user into a database
– Bruno