Welcome, Guest. Please login or register.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - leckermojito

Pages: [1]
1
GUI / Dlink 3100 and 1510 CLI access and config backup
« on: January 30, 2019, 10:16:13 PM »
Hi Remo,

could you please add this to your next version of Nedi:

Other-Defgen:
<option value="DLINK3100"<?= ($os == "DLiNK3100")?" selected":"" ?>>DLINK3100
<option value="DLINK1510"<?= ($os == "DLINK1510")?" selected":"" ?>>DLINK1510

libcli:
# DLINK3100
$cmd{'DLINK3100'}{'ropr'} = '(.+?)>\s?$';
$cmd{'DLINK3100'}{'enpr'} = '(.+?)#\s?$';
$cmd{'DLINK3100'}{'page'} = 'disable clipaging';
$cmd{'DLINK3100'}{'shcf'} = 'show configuration running';
$cmd{'DLINK3100'}{'cfst'} = '!-';

# DLINK1510
$cmd{'DLINK1510'}{'ropr'} = '(.+?)>\s?$';
$cmd{'DLINK1510'}{'enpr'} = '(.+?)#\s?$';
#$cmd{'DLINK1510'}{'enab'} = 'enable';
$cmd{'DLINK1510'}{'page'} = 'terminal length 0';
$cmd{'DLINK1510'}{'shcf'} = 'show running-config';
$cmd{'DLINK1510'}{'cfst'} = '#--';

libmisc:
        }elsif( $_[0] =~ /^1.3.6.1.4.1.(171)\./ ){
                return'D-Link';

I will post the defgen of the switches soon in the definitions section

@Remo: Thanks for your great tool!

2
Discovery / multiple Errors on Switch Discovery
« on: July 10, 2018, 03:01:05 PM »
Hi all,

with our new D-Link Switch model DGS-1510-28P i can see some strange behaviors in Nedi Discovery and many differences between stacking enabled and disabled.
This switch can be stacked with max 6 other units via its 10G SFP+ Ports. After enabling physical Stacking the 2 10G Ports became Stack-Ports ant the Switch shows 26 instead of 28 ports.

In short: when i enable stacking everything will be fine but when i disable stacking, NeDi shows a lot of errors during discovery.

The errors appear when NeDi is discovering the Switchports / Descriptions and due to that error NeDi doesnt show any Ports.

Example Errors during discovery:

Code: [Select]
Interfaces   ------------------------------------------------------------------
RIF :0 IF read (WHERE device = 'xxxxxxxx') from nedi.interfaces
SNMP:Connect xxxxxxxx public v2 Tout:11s MaxMS:1472 Retry:1 NB:0
IF  :Walking speed
IF  :Walking 32bit counters
IF  :Walking errors
IF  :Walking discards
IF  :Walking in-broadcasts
IF  :Walking name
IF  :Walking description
ERR :IF Desc The message size exceeded the buffer maxMsgSize of 1472
IF  :Walking vlan
IF  :Walking duplex
IF  :Walking duplex index
IF  :Walking admin status
IF  :Walking oper status
IF  :Index Name          Spd Dup St Pvid Description     Alias             PoE

IfAddresses  ------------------------------------------------------------------
IFIP:No useip policy set, always using discovered IPs
SNMP:Connect xxxxxxxx public v2 Tout:8s MaxMS:1472 Retry:1 NB:0
IFIP:Walking old address table

DisProtocol  ------------------------------------------------------------------
SNMP:Connect xxxxxxxx public v2 Tout:13s MaxMS:4095 Retry:1 NB:0
ERR :LLDP Inventory The requested table is empty or does not exist
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 24 delivering 15400mW
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 19 delivering 15400mW
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 23 delivering 15400mW
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 16 delivering 15400mW
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 7 delivering 15400mW
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 9 delivering 15400mW
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 10 delivering 15400mW
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 8 delivering 15400mW
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 20 delivering 15400mW
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 12 delivering 15400mW
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 18 delivering 15400mW
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 5 delivering 15400mW
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 17 delivering 15400mW
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 6 delivering 15400mW
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 21 delivering 15400mW
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 15 delivering 15400mW
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 3 delivering 15400mW
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 13 delivering 15400mW
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 2 delivering 15400mW
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 14 delivering 15400mW
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 1 delivering 15400mW
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 22 delivering 15400mW
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 11 delivering 15400mW
Use of uninitialized value in hash element at /opt/nedi/inc/libsnmp.pm line 2028.
LLDP:IF index 4 delivering 15400mW
Use of uninitialized value $lif in concatenation (.) or string at /opt/nedi/inc/libsnmp.pm line 2239.
DIPR:14.1 on
DIPR:No IP found for xxxxxxxx
Use of uninitialized value $lif in hash element at /opt/nedi/inc/libsnmp.pm line 2271.
Use of uninitialized value $lif in concatenation (.) or string at /opt/nedi/inc/libsnmp.pm line 2291.
LLDP:xxxxxxxx,Et1/0/1  on
Use of uninitialized value $lif in hash element at /opt/nedi/inc/libsnmp.pm line 2293.
Use of uninitialized value in string eq at /opt/nedi/inc/libsnmp.pm line 2293.
Use of uninitialized value $i in concatenation (.) or string at /opt/nedi/inc/libdb.pm line 1586.
Use of uninitialized value $lif in hash element at /opt/nedi/inc/libsnmp.pm line 2505.
Use of uninitialized value $lif in hash element at /opt/nedi/inc/libsnmp.pm line 2506.
Use of uninitialized value $lif in hash element at /opt/nedi/inc/libsnmp.pm line 2507.
Use of uninitialized value $lif in concatenation (.) or string at /opt/nedi/inc/libsnmp.pm line 2523.
EVNT:MOD=d/1 L=100 CL=nedq TGT=xxxxxxxx MSG=LLDP sees xxxxxxxx,Et1/0/1 with unusable IP  on
Use of uninitialized value $lif in hash element at /opt/nedi/inc/libsnmp.pm line 2526.
Use of uninitialized value $lif in concatenation (.) or string at /opt/nedi/inc/libsnmp.pm line 2239.
DIPR:4.2 on
Use of uninitialized value $lif in hash element at /opt/nedi/inc/libsnmp.pm line 2271.
Use of uninitialized value $lif in hash element at /opt/nedi/inc/libsnmp.pm line 2271.
LLDP:Ignoring duplicate neighbor xxxxxxxx (set MACflood threshold to allow)
Use of uninitialized value $lif in concatenation (.) or string at /opt/nedi/inc/libsnmp.pm line 2239.
DIPR:6.2 on
Use of uninitialized value $lif in hash element at /opt/nedi/inc/libsnmp.pm line 2271.
Use of uninitialized value $lif in hash element at /opt/nedi/inc/libsnmp.pm line 2271.
LLDP:Ignoring duplicate neighbor xxxxxxxx (set MACflood threshold to allow)
Use of uninitialized value $lif in concatenation (.) or string at /opt/nedi/inc/libsnmp.pm line 2239.
DIPR:2.2 on
Use of uninitialized value $lif in hash element at /opt/nedi/inc/libsnmp.pm line 2271.
Use of uninitialized value $lif in hash element at /opt/nedi/inc/libsnmp.pm line 2271.
LLDP:Ignoring duplicate neighbor xxxxxxxx (set MACflood threshold to allow)
Use of uninitialized value $lif in concatenation (.) or string at /opt/nedi/inc/libsnmp.pm line 2239.
DIPR:12.2 on
Use of uninitialized value $lif in hash element at /opt/nedi/inc/libsnmp.pm line 2271.
Use of uninitialized value $lif in hash element at /opt/nedi/inc/libsnmp.pm line 2271.
LLDP:Ignoring duplicate neighbor xxxxxxxx (set MACflood threshold to allow)
Use of uninitialized value $lif in concatenation (.) or string at /opt/nedi/inc/libsnmp.pm line 2239.
DIPR:10.2 on
Use of uninitialized value $lif in hash element at /opt/nedi/inc/libsnmp.pm line 2271.
Use of uninitialized value $lif in hash element at /opt/nedi/inc/libsnmp.pm line 2271.
LLDP:Ignoring duplicate neighbor xxxxxxxx (set MACflood threshold to allow)
Use of uninitialized value $lif in concatenation (.) or string at /opt/nedi/inc/libsnmp.pm line 2239.
DIPR:13.1 on
DIPR:No IP found for xxxxxxxx
Use of uninitialized value $lif in hash element at /opt/nedi/inc/libsnmp.pm line 2271.
Use of uninitialized value $lif in hash element at /opt/nedi/inc/libsnmp.pm line 2271.
LLDP:Ignoring duplicate neighbor xxxxxxxxxx (set MACflood threshold to allow)

I have already checked twice, i can reproduce the error when i disable Stacking.

By the way, we are using NeDi 1.6.100

Any Ideas?

Thanks in advance

cheers
Ben

3
Definition Files / Dlink DGS-1510 def files and some questions
« on: August 29, 2017, 09:34:23 AM »
Hi all,

here is my def File for the D-Link DGS-1510 Series. It is working but i see 2 Problems with it:

1. Free Memory Graph: The switch is providing the total amount and the used but not the available memory. And ideas?
2. Custom "Fan OK" Graph: Doesnt work. The OID isthe right one and goes to 0 when a fan error occours. But the RRD Graph always shows error.

Code: [Select]
# Definition for 1.3.6.1.4.1.171.10.137.2.1 created by Defgen 2.0 on 29.Aug 2017
 
# Main
SNMPv 2
Type SWITCH;D-Link;DGS-1510-28
Typoid
Sysdes 1.3.6.1.4.1.171.14.5.1.8.1.3.1
OS DLINK1510
Icon w2an
Size 1
Bridge qbri
ArpND phy
Dispro LLDPX
Serial 1.3.6.1.2.1.47.1.1.1.1.11.1
Bimage 1.3.6.1.2.1.47.1.1.1.1.10.1
CfgChg
CfgWrt 1.3.6.1.4.1.171.12.1.2.6.0
VLnams 1.3.6.1.2.1.17.7.1.4.3.1.1
VLnamx
Group
Mode
 
# Interfaces
StartX
EndX
IFname 1.3.6.1.2.1.31.1.1.1.1
IFaddr adr
IFalia 1.3.6.1.2.1.31.1.1.1.18
IFalix
InBcast 1.3.6.1.2.1.31.1.1.1.9
InDisc 1.3.6.1.2.1.2.2.1.13
OutDisc 1.3.6.1.2.1.2.2.1.19
IFvlan 1.3.6.1.2.1.17.7.1.4.5.1.1
IFvlix
IFpowr
IFpwix
IFdupl 1.3.6.1.2.1.10.7.2.1.19
IFduix 1.3.6.1.2.1.10.7.2.1.1
Halfdp 2
Fulldp 3
 
# Modules
Modesc 1.3.6.1.2.1.47.1.1.1.1.2
Moclas 1.3.6.1.2.1.47.1.1.1.1.5
Movalu 3
Moslot 1.3.6.1.2.1.47.1.1.1.1.6
Mostat
Mostok
Modhw 1.3.6.1.2.1.47.1.1.1.1.8
Modsw 1.3.6.1.2.1.47.1.1.1.1.9
Modfw 1.3.6.1.2.1.47.1.1.1.1.10
Modser 1.3.6.1.2.1.47.1.1.1.1.11
Momodl 1.3.6.1.2.1.47.1.1.1.1.13
Modloc
 
# RRD Graphing
CPUutl 1.3.6.1.4.1.171.14.5.1.7.1.5.1.1
Temp 1.3.6.1.4.1.171.14.5.1.1.1.1.4.1.1
MemCPU
Custom Fan OK 1.3.6.1.4.1.171.14.5.1.1.2.1.4.1.7



4
Discovery / maploc for subnets
« on: April 07, 2014, 04:38:03 PM »
Is it possible to use the maploc feature for whole subnets and add the snmp-based location afterwards?

Example:
Network 10.108.123.0 is via maploc rewritten to D;Frankfurt;FRATST and on the device itselve the location string is "ServerraumA2" to get it shown as "D;Frankfurt;FRATST;ServerraumA2" ?

That would be a very cool feature because some devices are limited to 31 characters in the location field.

5
Discovery / NEDI 1.0.9 DLink Switch config backup possible
« on: April 07, 2014, 04:08:17 PM »
Im trying to backup the Config fom out Dlink DGS-3100 Switches but NEDI only shows a dark lightbulp and no key ore anything else in this line.
Backup of our Cisco 870 Routers are working fine.

How can i configure that NEDI does also backup the config from the D-Link devices and also from our Bintec Routers?

cheers

Benjamin

6
Discovery / netfilter regular expression problem
« on: March 28, 2014, 08:33:04 AM »
Hi.

Im trying to use NEDI to manage about 500 D-Link DGS-3100 switches and some Cisco 800 Series Router in about 90 different networks whicht i can reach via VPN.
One of my problems is to configure the netfilter to only send credentials to devices which are only in the ranges 10.xxx.yyy.1-99

Can anyone help me with that?
Ive abloutly no cloue how to do that in a regex :(

7
Other / NEDI Manual anywere?
« on: March 20, 2014, 02:55:47 PM »
Hi everybody.

Im new to nedi and im searching for an generall manual for setting up and discovery.
Ive found none :'(. Can someone give me a hint?

cheers from Frankfrut

Ben

Pages: [1]