From: Andy R. <ac...@gm...> - 2017-07-11 16:36:45
|
Ok, that was it. There is no version info in description(). It's in lldp_sysdesc(). The regexp you're using for description() should be moved to lldp_sysdesc(). I edited Juniper.pm and did a discovery and it worked (it populated the os_ver field), but I'm not sure if it's going to break other stuff so I changed it back. Here's the raw data: SNMP::Info::_global lldp_sysdesc : LLDP-MIB::lldpLocSysDesc.0 : .1.0.8802.1.1.2.1.3.4.0 "Juniper Networks, Inc. ex4500-40f , version 12.3R12.4 Build date: 2016-01-20 05:53:00 UTC " SNMP::Info::_global lldp_sysdesc : LLDP-MIB::lldpLocSysDesc.0 : .1.0.8802.1.1.2.1.3.4.0 "Juniper Networks, Inc. ex4500-40f Ethernet Switch, kernel JUNOS 15.1R5.5, Build date: 2016-11-25 16:33:55 UTC Copyright (c) 1996-2016 Juniper Networks, Inc." Shall I open a bug? Andy On Tue, Jul 11, 2017 at 7:20 AM, Oliver Gorwits <ol...@cp...> wrote: > Hi Andy > > I suspect that the regular expressions and assumptions in the SNMP::Info > Juniper module are not matching on your device: > > https://metacpan.org/source/OLIVER/SNMP-Info-3.36/lib/SNMP/Info/Layer3/Juniper.pm#L109 > > You could try the following Netdisco commands to get the two description > fields and make an assessment: > > ~netdisco/bin/netdisco-do show -DI -d 1.2.3.4 -e description > ~netdisco/bin/netdisco-do show -DI -d 1.2.3.4 -e lldp_sysdesc > > (this assumes the device is recognised as a Juniper, which you can confirm > in the Device Class field shown in Netdisco Device => Details tab) > > regards, > Oliver. > > > On 2017-07-11 14:34, Andy Ruhl wrote: >> >> I've been upgrading Juniper devices, and I noticed that their os_ver >> is blank in versions 14.x and higher. >> >> I'm not much of an SNMP person, so if someone could point me in the >> right direction to find out if there is something I can do, I would >> appreciate it. >> >> Stuff I've done: >> >> Used -DISQ with discover on an older and newer device and looked at >> the output but I can't find anything specific. >> >> Did snmpbulkwalk on both devices and looked in the output and I see >> different strings for the version but I don't know what this means. >> >> Found MIBs from the current version of a device and put them in >> netdisco-mibs/juniper but it didn't make any difference. >> >> If I knew what to look for maybe I could figure this out. And also >> figure out another device that has a blank os_ver that nobody cares >> about probably. >> >> Andy >> >> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Netdisco mailing list >> net...@li... >> https://lists.sourceforge.net/lists/listinfo/netdisco-users > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Netdisco mailing list > net...@li... > https://lists.sourceforge.net/lists/listinfo/netdisco-users |