Welcome, Guest. Please login or register.

Author Topic: Mediatrix Interface Alias/Mapping  (Read 449 times)

fredhead

  • Newbie
  • *
  • Posts: 2
    • View Profile
Mediatrix Interface Alias/Mapping
« on: March 07, 2019, 04:28:08 PM »
Hi,

i'm trying to map interface descriptions to the right physical interfaces. The device is an analoge gateway.

I have startet with this degen: https://forum.nedi.ch/index.php?topic=2083.0

But i have found out that some OIDs were not correct so i modified it:

# Definition for 1.3.6.1.4.1.4935.1000.100.100.300 created by Defgen 2.0 on 7.Mar 2019 (admin)
 
# Main
SNMPv   2
Type   
Typoid   1.3.6.1.4.1.4935.1000.100.200.100.2000.1.100.100.0
Sysdes   
OS   other
Icon   lbbn
Size   1
TempAlert   
Bridge   
ArpND   
Dispro   
Serial   1.3.6.1.4.1.4935.1000.100.200.100.2000.1.100.200.0
Bimage   1.3.6.1.4.1.4935.1000.100.200.100.1300.1.100.1.200.0
CfgChg   
CfgWrt   
FTPConf   
VLnams   
VLnamx   
Group   
Mode   
 
# Interfaces
StartX   
EndX   
IFname   1.3.6.1.2.1.2.2.1.2
IFaddr   old   
IFalia   1.3.6.1.4.1.4935.1000.100.200.100.1400.1.700.100.1.500
IFalix   
InBcast   
InDisc   1.3.6.1.2.1.2.2.1.2.1
OutDisc   1.3.6.1.2.1.2.2.1.19
IFvlan   
IFvlix   
IFpowr      
IFpwix   
IFdupl   
IFduix   
Halfdp   
Fulldp   
 
# Modules
Modesc   
Moclas   
Movalu   
Moslot   
Modhw   
Modsw   
Modfw   
Modser   
Momodl   
Modloc   
Mostat   
Mostok   
 
# RRD Graphing
CPUutl      
Temp      
MemCPU      
Custom      


The problem is the alias are mapped to the wrong physical interfaces as you can see in the attached picture.

The alias that you can see on "lo" must be on Port01, the alias on "Et1" on Port02 and so on.

I think IFalix could help in this case but all i have tried had no success.
I have attached the whole snmpwalk it would be nice if some have a look at it to find a solution for the problem.

Thanks!


rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2711
    • View Profile
    • NeDi
Re: Mediatrix Interface Alias/Mapping
« Reply #1 on: March 11, 2019, 08:04:08 PM »
How good is your connection to the vendor? If you can push an FR through, they could fix it :-)

I couldn't find a proper IFalix OID either. If those devices always use an offset of 2, you could hack libnsmp.pm...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

fredhead

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Mediatrix Interface Alias/Mapping
« Reply #2 on: March 12, 2019, 02:58:24 PM »
Thanks for your reply!

To be honest i have no idea how to hack the libsnmp.pm. There are different hardware revisions and some of them have an offset of 3.

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2711
    • View Profile
    • NeDi
Re: Mediatrix Interface Alias/Mapping
« Reply #3 on: March 20, 2019, 12:02:00 PM »
Oh, different offsets won't make it easier  ::)

Are those HW revisions shown in the description? If so, you could use it to shift the $alias hash on line 1149...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo