[lib/impression] impression_canon
Ignore-this: 511660bb2b8806739014ed150276994f darcs-hash:20090515135635-bd074-867c19053c701920543f6b8a1fc8d70c92d5ba01.gz
This commit is contained in:
parent
5eba5336fb
commit
5f5b832609
4 changed files with 449 additions and 10 deletions
|
@ -26,7 +26,7 @@ def etat_canon():
|
|||
try:
|
||||
liste_msg = []
|
||||
comm = hptools.snmp(host="imprimante.adm.crans.org", version="1", community="public")
|
||||
for i in [".hrPrinterStatus.1"; ".hrPrinterDetectedErrorState.1"]:
|
||||
for oid in [".hrPrinterStatus.1", ".hrPrinterDetectedErrorState.1"]:
|
||||
msg = comm.get_string(oid)
|
||||
msg = dico.get(msg, msg)
|
||||
if msg: liste_msg.append(msg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue