You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

30 lines
627 B

# -*- coding: utf-8 -*-
from base_intr import DevBase, SNMPBaseWorker
class DLinkDevice(DevBase):
@staticmethod
def description():
return u"Свич D'Link"
def reboot(self):
pass
DEVICE_TYPES = (
('Dl', DLinkDevice),
)
class SNMPDlinkWorker(SNMPBaseWorker):
oids = {
'reboot': '.1.3.6.1.4.1.2021.8.1.101.1',
'get_ports': {
'names': 'IF-MIB::ifDescr',
'stats': 'IF-MIB::ifAdminStatus',
'macs': 'IF-MIB::ifPhysAddress',
'speeds': 'IF-MIB::ifHighSpeed'
},
'name': 'SNMPv2-SMI::mib-2.47.1.1.1.1.7.1'
}