Answer the question
In order to leave comments, you need to log in
Where can I find the OID for the cartridge model and printer release date?
// модель принтера
$name = snmpget('192.168.214.24', 'public', '.1.3.6.1.2.1.25.3.2.1.3.1');
echo 'Модель принтера: '.$name.'</br>';
// серийный номер принтера
$number = snmpget('192.168.214.24', 'public', '.1.3.6.1.2.1.43.5.1.1.17.1');
echo 'Серийный номер принтера: '.$number.'</br>';
// количество напечатанных страниц:
$count = snmpget('192.168.214.24', 'public', '.1.3.6.1.2.1.43.10.2.1.4.1.1');
echo 'Количество напечатанных страниц: '.$count.'</br>';
Answer the question
In order to leave comments, you need to log in
Here are some other known oids for printers:
1.3.6.1.2.1.43.11.1.1.8.1.x - Max Toner Level
1.3.6.1.2.1.43.11.1.1.9.1.x - Current Toner Level
(you can calculate the percentage of the balance)
1.3.6.1 .2.1.43.11.1.1.6 - table of cartridge names. Just from there
, you can take x to put it in the desired OID above to get the rest
of the ink in each of them (if there is more than one).
The release date is sometimes in the description OID. Didn't see it separately.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question