LinuxForum.Fans
Тема

snmp

Автор: FreeOwl 1 сообщений 465 просмотров
#363255

есть сетевой принтер Aficio 3030
в описании smnp сказано:
1.3.6.1.2.1 25 HostResourceMIB(RFC1514) - 3.5.hrPrinter
25.3.5.1.1.1 - hrPrinterStatus - INTEGER - Read Only - Current printer device status other(1), unknown(2), idle(3), printing(4), warmup(5). Refer to Table 43.18.1.
25.3.5.1.2.1 - hrPrinterDetectedErrorState - OCTET STRING - Read Only - Status in a bit array. It indicates the printer device error status. All detected states are indicated with Bits combined with OR. bit7=lowPaper, bit6=noPaper, bit5=lowToner, bit4=noToner, bit3=doorOpen, bit2=jammed, bit1=offline, bit0=serviceRequested Example: (Low toner)+(no toner)+(offline for error level) -> 00110010 (binary number) -> 32h (50 in decimal number) Refer to Table 43.18.1.

Выполнив:

text
# snmpwalk -c public -v2c 10.0.0.9 1.3.6.1.2.1.25.3.5.1.2.1
HOST-RESOURCES-MIB::hrPrinterDetectedErrorState.1 = Hex-STRING: 00

но если я открою дверцу принтера, то в ответ я получаю

text
# snmpwalk -c public -v2c 10.0.0.9 1.3.6.1.2.1.25.3.5.1.2.1
HOST-RESOURCES-MIB::hrPrinterDetectedErrorState.1 = STRING: "
"

= STRING: " и с новой строки ещё одни "
почему так, почему не шестнадцатеричное число?

Войдите или зарегистрируйтесь, чтобы ответить.