etat_imprimante: executable (pour tests)
This commit is contained in:
parent
a7d75b8f6e
commit
86b85d619d
1 changed files with 5 additions and 2 deletions
7
impression/etat_imprimante.py
Normal file → Executable file
7
impression/etat_imprimante.py
Normal file → Executable file
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/bin/bash /usr/scripts/python.sh
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
etat_imprimante.py
|
||||
|
@ -13,7 +13,7 @@ import BeautifulSoup
|
|||
import requests
|
||||
import HTMLParser
|
||||
import sys
|
||||
from hptools import snmp
|
||||
from gestion.hptools import snmp
|
||||
|
||||
STATUS_URL = 'https://imprimante.adm.crans.org/hp/device/DeviceStatus/Index'
|
||||
CA = '/etc/ssl/certs/cacert.org.pem'
|
||||
|
@ -38,3 +38,6 @@ def _http_status():
|
|||
except:
|
||||
raise ErreurCommunication()
|
||||
|
||||
if __name__ == '__main__':
|
||||
for x in etat():
|
||||
print x
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue