Retrieve software version for HP 1810 switch

Bug #1505524 reported by Mattias Söderholm
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Network Administration Visualized
Fix Released
Wishlist
Morten Brekkevold

Bug Description

I have been looking in the code what's getting the software version for switches and found that you take it from the System Description.

Here is a sysDesc from a HP 1810-8G switch:
OID sysDescr
1.3.6.1.2.1.1.1.0 "HP 1810-8G, PL.2.04, eCos-3.0, 1_12_8-customized-h"

PL.2.04 is the software version.

Changed in nav:
importance: Undecided → Wishlist
Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :

Does this not correspond to SEMI-MIB::hpHttpMgVersion ?

Changed in nav:
status: New → Triaged
assignee: nobody → Morten Brekkevold (mbrekkevold)
Revision history for this message
Mattias Söderholm (mattias-soderholm) wrote :

It's from the SNMPv2-MIB::sysDesc I was thinking, but you can use that one directly also.

Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :

Well, actually, there is already a framework in place in the code for "guessing" software versions from sysDescr, while there are none in place for retrieving them from a set of proprietary MIBs.

I.e. the simplest solution is to add a regular expression in the ipdevpoll `system` plugin to match and set this software version. I've opted for something that matches ' [A-Z]+\.[0-9]+\.[0-9]+'.

Fix here: https://nav.uninett.no/hg/stable/rev/a778269c5cda

Changed in nav:
status: Triaged → Fix Committed
milestone: none → 4.3.2
summary: - REQ: Retrive software version for HP 1810 switch
+ Retrieve software version for HP 1810 switch
Revision history for this message
Mattias Söderholm (mattias-soderholm) wrote :

It works =)
Thank you.

Changed in nav:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.