Welcome, Guest. Please login or register.

Author Topic: serial number = MAC-address  (Read 4740 times)

SteffenS

  • Guest
serial number = MAC-address
« on: April 30, 2010, 04:12:24 PM »
Hello!

We have a large network with many many satellite stations.
Historical grown - there are many types of switches from different producers.

Some of this send only a base-mac-address instead of a real serial number - in different format.
(separator is blank space, colon or minus sign - depending on model and manufacturer.)
But NeDi can not save this right (only mac's with "-"-separator - but the serials-report-module do not detect changes of ip-address or hostname like with REAL serial numbers).

How can I convert this to a uniform value in the discovery-process?

Thanks for helping.

Steffen

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2780
    • View Profile
    • NeDi
Re: serial number = MAC-address
« Reply #1 on: May 03, 2010, 11:24:32 PM »
Thought SN# is treated as string. what exactly do you see in the dev table?
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

SteffenS

  • Guest
Re: serial number = MAC-address
« Reply #2 on: May 04, 2010, 03:48:26 PM »
first sample:
Netgear FSM726
OSysID=1.3.6.1.4.1.4526.1.10

At the Web-Interface of the Switch itself show only his MAC-Address as unique Ident.

So if I snmpget for the ifPhysAddress.27 (Interface 27= "FSM726 Management Switch CPU Ethernet Network Interface") I got this:
Code: [Select]
nedio45:/var/nedi#snmpget -v 2c -c public 10.68.5.19 1.3.6.1.2.1.2.2.1.6.27
IF-MIB::ifPhysAddress.27 = STRING: 0:18:4d:31:c3:c9
nedio45:/var/nedi#

If I snmpget for the 2. location in snmpwalk which tell me this mac-address, I got this:

Code: [Select]
nedio45:/var/nedi#snmpget -v 2c -c public 10.68.5.19  1.3.6.1.2.1.17.1.1.0
SNMPv2-SMI::mib-2.17.1.1.0 = Hex-STRING: 00 18 4D 31 C3 C9
nedio45:/var/nedi#

But with both value as Serial in the .def-file (first the one, then the other), after a new discovery the Device-Status.php tell me only this:

"Serien#   M1"

Do you know why?

SteffenS

  • Guest
Re: serial number = MAC-address
« Reply #3 on: May 04, 2010, 04:01:56 PM »
second sample:
Nortel BayStack 350-24T

OSysID=1.3.6.1.4.1.45.3.30.2

The snmpget tell me this:
Code: [Select]
nedio45:/var/nedi#snmpget -v 2c -c public 10.68.13.17 1.3.6.1.4.1.45.1.6.3.1.6.0
SNMPv2-SMI::enterprises.45.1.6.3.1.6.0 = STRING: "00-80-2d-0b-47-e1"
nedio45:/var/nedi#

At this model, this string is shown correct as Serial number.

So, now I think I can see the Problem is that Netgear-devices send the strings without quotations marks.
« Last Edit: May 04, 2010, 04:07:49 PM by SteffenS »

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2780
    • View Profile
    • NeDi
Re: serial number = MAC-address
« Reply #4 on: May 04, 2010, 06:58:43 PM »
Yepp, you definitely want a string not hex string. I can look at detecting this though...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo