Apr 10, 2012 7:26 PM
Add OS Manufacturer and Model
-
Like (0)
I use Mikrotik and Routerboards. Is there a way that when I move a "device" into Mikrotik or routerboard that it would detect the OS model such as RouterOS 5.14? Right now that in the overview is unknown . I have added the mikrotik zenpacks but that didn't make a different. I am using snmp.
Thanks,
tk
Yes that should be very doable with a custom modeler (assuming the device exposes it over SNMP). I can't seem to track down which ZenPack you are referring to that you have installed. Can you provide a link to which Packs you have installed and we can possible figure out what is going on?
Thanks, not sure why, but I dont see this ZenPack listed in the zenpack index page: community/zenpacks
Can you make sure that the "MKDeviceMap" modeler plugin is assigned to the device or device class?.
Also rather than dragging the device into the device class from somewhere else, what happens if you delete it, and then re-add it, adding directly into the device class without any intermediary classes?
Not sure why you don't see it. When I click on your link I see it though the spelling is off: Microtick Router
I deleted one item and added it back in the device class and get Hardware Manufacturer and model as RouterBoard but nothing in OS Manufacturer or Model.
Modular plugins for that class is:
zenoss.snmp.NewDeviceMap
zenoss.snmp.DeviceMap
zenoss.snmp.InterfaceMap
zenoss.snmp.RouteMap
tk
edit:
Seems like I added RouterBoard into manufacturers though I don't remember. Its been awhile since I last worked on this. I do see it in manfacturers with an OID of .1.3.6.1.4.1.14988.1 which is not quite right. The OID of the OS version (model) is .1.3.6.1.4.1.14988.1.1.4.4.0
tk
Gotcha, was just copy/pasting for the find.
So it sounds like you need to add the MKDeviceMap modeler plugin to that device class, and then remodel the device.
The plugin has '.1.3.6.1.4.1.14988.1.1.4.4.0': 'setOSProductKey'
which if I recall is the attribute for what you are after. Once you get the plugin enabled, I think you will be in business.
Adding that did give me the version but not the Manufacturer. I am not to worried about that part since I know but that would be nice also.
Thanks,
tk
Yeah for some reason manufacturer is actually commented out in the modeler code:
snmpGetMap = GetMap({
# '.1.2.840.10036.3.1.2.1.2.2' : 'manufacturer',
'.1.3.6.1.4.1.14988.1.1.3.9.0' : 'setHWProductKey',
'.1.3.6.1.4.1.14988.1.1.4.1.0' : 'setHWSerialNumber',
'.1.3.6.1.4.1.14988.1.1.4.4.0': 'setOSProductKey',
})
You might get lucky enough to just uncomment that line in your file on your file system and restart, but who knows for sure
Yeah, nothing there at that OID. Closest I can find on the board is:
SNMPv2-MIB::sysDescr.0 = STRING: RouterOS RB450G
Which tells me the Board.
tk
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||