Skip to content

Commit

Permalink
Alvarion 2.4
Browse files Browse the repository at this point in the history
git-svn-id: http://zenpacks.zenoss.org/svn/zenpacks@33 db08cffe-75b9-45d1-af1a-46ad9ef135f6
  • Loading branch information
Matt Ray committed Dec 23, 2008
1 parent fd6123f commit 7370a05
Show file tree
Hide file tree
Showing 4 changed files with 534 additions and 8 deletions.
Expand Up @@ -19,9 +19,10 @@ class AlvarionDeviceMap(SnmpPlugin):
maptype = "AlvarionDeviceMap"

snmpGetMap = GetMap({
'.1.3.6.1.4.1.12394.3.2.1.13.0' : 'setHWSerialNumber',
'.1.3.6.1.4.1.12394.3.2.9.16.1.0' : 'manufacturer',
'.1.3.6.1.4.1.12394.3.2.1.2.0' : 'setHWProductKey',
'.1.3.6.1.4.1.12394.1.1.1.2.0': 'setOSProductKey',
'.1.3.6.1.4.1.12394.3.2.1.5.0': 'setOSProductKey',
})

def process(self, device, results, log):
Expand Down
@@ -0,0 +1,37 @@
#
# This program is part of Zenoss Core, an open source monitoring platform.
# Copyright (C) 2007, Zenoss Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
# For complete information please visit: http://www.zenoss.com/oss/
#
###########################################################################

from Products.DataCollector.plugins.CollectorPlugin import SnmpPlugin, GetMap

class AlvarionWI2DeviceMap(SnmpPlugin):
"""Map mib elements from Alvarion mib to get hw and os products.
"""

maptype = "AlvarionWI2DeviceMap"

snmpGetMap = GetMap({
'.1.3.6.1.4.1.12394.1.10.5.6.1.1.5.0' : 'setHWSerialNumber',
'.1.3.6.1.4.1.12394.1.10.5.4.2.1.1.8.6.0' : 'manufacturer',
'.1.3.6.1.4.1.12394.1.10.5.6.1.1.1.0 ' : 'setHWProductKey',
'.1.3.6.1.4.1.12394.1.10.5.6.1.1.2.0': 'setOSProductKey',
})

def process(self, device, results, log):
"""collect snmp information from this device"""
log.info('processing %s for device %s', self.name(), device.id)
getdata, tabledata = results
if getdata['setHWProductKey'] is None: return None
om = self.objectMap(getdata)
return om



0 comments on commit 7370a05

Please sign in to comment.