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 - ascii

Pages: [1] 2
1
Discovery / Moving from CDP to LLDP
« on: June 26, 2020, 10:41:08 AM »
Hello together,

we startet moving from CDP to LLDP for various reasons.
i had the problem/challange to also change the discovery for new devices.
a lot and i mean a lot of .def file have just CDP enable.
since i'm lazy not willing to spent hour of finding and changing them.

i did it via CLI
at least on linux (debian) the code works. but should work on all unix plattforms. maybe different escaping

Code: [Select]
cd /var/nedi/sysobj
mkdir back
cp * back
grep -rlZ '\CDP$' . | xargs -0 sed -i 's/CDP/CDP|LLDPXN/g

the will search for file which have a line that is ending with CDP
it will pass the file names to sed to replace CDP with CDP|LLDPXN

at least for us it didn't break anything.

i would advise test it first with a couple of switches.
LLDP will most likely give you more Neighbor than CDP.
Would be grade if Nedi would only insert actual network devices.
eg. based on LLDP flags/Capability

2
Definition Files / Cisco IE-1000-6T2T-LM 1.3.6.1.4.1.9.1.2331
« on: May 26, 2020, 11:45:26 AM »
not complete but better than nothing.

Code: [Select]
# Definition for 1.3.6.1.4.1.9.1.2331 created by Defed 1.9 on 26.May 2020 (ascii)
 
# Main
SNMPv 2HC
Type IE-1000-6T2T-LM
TypOID 1.3.6.1.4.1.9.9.832.1.24.1.3.5.4.0
NamOID
DesOID
OS IOS
Icon w2bp
Size 1
Uptime S
Bridge qbriV
ArpND old
Dispro
Serial 1.3.6.1.4.1.9.9.832.1.24.1.3.5.3.0
Bimage 1.3.6.1.4.1.9.9.832.1.28.1.3.3.1.6.1
VLnams 1.3.6.1.2.1.17.7.1.4.3.1.1
VLnamx
Group
Mode
CfgChg
CfgWrt
FTPConf
Fanstat
 
# Interfaces
StartX
EndX
IFname 1.3.6.1.2.1.31.1.1.1.1
IFaddr oldcie
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.4.1.9.9.832.1.13.1.2.2.1.1.3
IFvlix
IFpowr
IFpwix
IFdupl 1.3.6.1.2.1.10.7.2.1.19
IFduix
Halfdp 2
Fulldp 3
 
# Modules
Modom
Moslot
Moclas 1.3.6.1.2.1.47.1.1.1.1.5
Movalu 3|6
Modesc 1.3.6.1.2.1.47.1.1.1.1.2
Modhw
Modfw
Modsw
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.7
Modloc 1.3.6.1.2.1.47.1.1.1.1.2
Mostat
Mostok
 
# RRD Graphing
CPUutl
Temp
MemCPU
Custom

3
Discovery / Event table blowing up
« on: April 27, 2020, 02:59:57 PM »
Hello together,

for same reason my event table is blowing up. (grow to 20GB not sure in which timeframe)
I found the cause to be link change event.
on every discovery for every active port this message is written to the event table

Code: [Select]
WDEV:dekrXYZ written to nedi.devices
EVNT:MOD=1/1 L=150 CL=lnc TGT=dekrXYZ MSG=Gi0/10 (blabla) was      link changed type  from     
EVNT:MOD=1/1 L=150 CL=lnc TGT=dekrXYZ MSG=Nu0 was      link changed type  from      did not receive any traffic did not send any traffic
EVNT:MOD=1/1 L=150 CL=lnc TGT=dekrXYZ MSG=Vl410 was      link changed type  from     
WIF :19 interfaces written to nedi.interfaces

does anyone know what that could be?

for now i removed the l from the notify part in the nedi conf.

4
Definition Files / Def Cisco C9200L-24P-4G
« on: March 05, 2020, 09:48:27 AM »
here is the def file i use for my C9200L-24P-4G with the correct PoE values shown.

Code: [Select]
# Definition for 1.3.6.1.4.1.9.1.2694 created by Defed 1.0 on 5.Mar 2020 (ascii)
 
# Main
SNMPv 2HC
Type C9200L-24P-4G
Typoid 1.3.6.1.2.1.47.1.1.1.1.2.1000
Sysdes
OS IOS
Icon skbn
Size 1
Uptime S
Bridge VLX
ArpND oldcie
Dispro CDP
Serial 1.3.6.1.4.1.9.3.6.3.0
Bimage 1.3.6.1.4.1.9.2.1.73.0
VLnams 1.3.6.1.4.1.9.9.46.1.3.1.1.4.1
VLnamx
Group 1.3.6.1.4.1.9.9.46.1.2.1.1.2.1
Mode 1.3.6.1.4.1.9.9.46.1.2.1.1.3.1
CfgChg 1.3.6.1.4.1.9.9.43.1.1.1.0
CfgWrt 1.3.6.1.4.1.9.9.43.1.1.3.0
FTPConf
Fanstat 1.3.6.1.4.1.9.9.13.1.4.1.3 1
 
# Interfaces
StartX
EndX
IFname 1.3.6.1.2.1.31.1.1.1.1
IFaddr old
IFalia 1.3.6.1.2.1.31.1.1.1.18
IFalix
InBcast 1.3.6.1.2.1.31.1.1.1.3
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.4.1.9.9.68.1.2.2.1.2
IFvlix
IFpowr 1.3.6.1.4.1.9.9.402.1.2.1.8 N
IFpwix ifnx
IFdupl 1.3.6.1.2.1.10.7.2.1.19
IFduix
Halfdp 2
Fulldp 3
 
# Modules
Modom
Moslot 1.3.6.1.2.1.47.1.1.1.1.7
Moclas 1.3.6.1.2.1.47.1.1.1.1.5
Movalu 3|6|9|10
Modesc 1.3.6.1.2.1.47.1.1.1.1.2
Modhw 1.3.6.1.2.1.47.1.1.1.1.8
Modfw 1.3.6.1.2.1.47.1.1.1.1.9
Modsw 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
Mostat 1.3.6.1.4.1.9.9.13.1.5.1.3
Mostok 1
 
# RRD Graphing
CPUutl 1.3.6.1.4.1.9.9.109.1.1.1.1.8N
Temp 1.3.6.1.4.1.9.9.13.1.3.1.3N
MemCPU 1.3.6.1.4.1.9.9.109.1.1.1.1.13N 1024
Custom

5
Database / PostgreSQL query problem
« on: January 07, 2020, 10:10:56 AM »
Hello together,

i just finished my migartion from mySQL to postgreSQL
everythink is workint so far.

Only downside is my paralell discovery. I is made for mysql and not working in postgresql.
I tried to alter it but no luck.
In mysql i used this
Code: [Select]
####  over the day  ####
#4,30 2-23 * * *        perl /var/nedi/nedi.pl -SWGflms -A 'RIGHT(INET_NTOA(devip), 1) IN (0, 6)' > /tmp/nedi-seedlist.ip.0u6.log 2>&1
#1,31 2-23 * * *        perl /var/nedi/nedi.pl -SWGflms -A 'RIGHT(INET_NTOA(devip), 1) IN (1, 5)' > /tmp/nedi-seedlist.ip.1u5.log 2>&1
#2,32 2-23 * * *        perl /var/nedi/nedi.pl -SWGflms -A 'RIGHT(INET_NTOA(devip), 1) IN (2, 7)' > /tmp/nedi-seedlist.ip.2u7.log 2>&1
#3,33 2-23 * * *        perl /var/nedi/nedi.pl -SWGflms -A 'RIGHT(INET_NTOA(devip), 1) IN (3, 8)' > /tmp/nedi-seedlist.ip.3u8.log 2>&1
#0,34 2-23 * * *        perl /var/nedi/nedi.pl -SWGflms -A 'RIGHT(INET_NTOA(devip), 1) IN (4, 9)' > /tmp/nedi-seedlist.ip.4u9.log 2>&1

the right to cutof the IPs is not working in postgresql
Code: [Select]
$ perl /var/nedi/nedi.pl -SWGflms -v -d d -A 'RIGHT(INET_NTOA(devip), 1) IN (0, 6)'
RDEV:2227 devices read from nedi.devices
DBG :SELECT device,inet_ntoa(devip),readcomm,snmpversion & 3 FROM devices LEFT JOIN configs USING (device) WHERE snmpversion > 0 AND RIGHT(INET_NTOA(devip), 1) IN (0, 6) key=
DBD::Pg::db selectall_arrayref failed: FEHLER:  Funktion right(inet, integer) existiert nicht
ZEILE 1: ... configs USING (device) WHERE snmpversion > 0 AND RIGHT(INET...

i tired is also with cast to convert but it's also not working
Code: [Select]
$ perl nedi.pl -SWGflms -v -d d -A "RIGHT(CAST(inet_ntoa(devip) AS text),1) IN (0, 6)"
RDEV:2227 devices read from nedi.devices
DBG :SELECT device,inet_ntoa(devip),readcomm,snmpversion & 3 FROM devices LEFT JOIN configs USING (device) WHERE snmpversion > 0 AND RIGHT(CAST(inet_ntoa(devip) AS text),1) IN (0, 6) key=
DBD::Pg::db selectall_arrayref failed: FEHLER:  Operator existiert nicht: text = integer
ZEILE 1: ...on > 0 AND RIGHT(CAST(inet_ntoa(devip) AS text),1) IN (0, 6)

maybe same SQL/Database expert is with us and could help me out


EDIT:
As a workaround for now i moved to
Code: [Select]
####  over the day  ####   PostgreSQL #######
1,31 2-23 * * * perl /var/nedi/nedi.pl -P 2 -Smv -A "CAST(inet_ntoa(devip) AS text) ~~* '\%.\%.\%.10\%'" > /tmp/nedi-seedlist.ip.10.log 2>&1
2,32 2-23 * * * perl /var/nedi/nedi.pl -P 2 -Smv -A "CAST(inet_ntoa(devip) AS text) ~~* '\%.\%.\%.20\%'" > /tmp/nedi-seedlist.ip.20.log 2>&1
3,33 2-23 * * * perl /var/nedi/nedi.pl -P 2 -Smv -A "CAST(inet_ntoa(devip) AS text) ~~* '\%.\%.\%.3_\%'" > /tmp/nedi-seedlist.ip.3.log 2>&1
4,34 2-23 * * * perl /var/nedi/nedi.pl -P 2 -Smv -A "CAST(inet_ntoa(devip) AS text) ~~* '\%.\%.\%.4_\%'" > /tmp/nedi-seedlist.ip.4.log 2>&1
5,35 2-23 * * * perl /var/nedi/nedi.pl -P 2 -Smv -A "CAST(inet_ntoa(devip) AS text) ~~* '\%.\%.\%.5_\%'" > /tmp/nedi-seedlist.ip.5.log 2>&1
6,36 2-23 * * * perl /var/nedi/nedi.pl -P 2 -Smv -A "CAST(inet_ntoa(devip) AS text) ~~* '\%.\%.\%.6_\%'" > /tmp/nedi-seedlist.ip.6.log 2>&1
7,37 2-23 * * * perl /var/nedi/nedi.pl -P 2 -Smv -A "CAST(inet_ntoa(devip) AS text) ~~* '\%.\%.\%.7_\%'" > /tmp/nedi-seedlist.ip.7.log 2>&1
8,38 2-23 * * * perl /var/nedi/nedi.pl -P 2 -Smv -A "CAST(inet_ntoa(devip) AS text) ~~* '\%.\%.\%.8_\%'" > /tmp/nedi-seedlist.ip.8.log 2>&1
9,39 2-23 * * * perl /var/nedi/nedi.pl -P 2 -Smv -A "CAST(inet_ntoa(devip) AS text) ~~* '\%.\%.\%.9_\%'" > /tmp/nedi-seedlist.ip.9.log 2>&1

11,41 2-23 * * * perl /var/nedi/nedi.pl -P 2 -Smv -A "CAST(inet_ntoa(devip) AS text) ~~* '\%.\%.\%.11\%'" > /tmp/nedi-seedlist.ip.11.log 2>&1
21,41 2-23 * * * perl /var/nedi/nedi.pl -P 2 -Smv -A "CAST(inet_ntoa(devip) AS text) ~~* '\%.\%.\%.21\%'" > /tmp/nedi-seedlist.ip.21.log 2>&1
12,42 2-23 * * * perl /var/nedi/nedi.pl -P 2 -Smv -A "CAST(inet_ntoa(devip) AS text) ~~* '\%.\%.\%.12\%'" > /tmp/nedi-seedlist.ip.12.log 2>&1
22,42 2-23 * * * perl /var/nedi/nedi.pl -P 2 -Smv -A "CAST(inet_ntoa(devip) AS text) ~~* '\%.\%.\%.22\%'" > /tmp/nedi-seedlist.ip.22.log 2>&1
13,43 2-23 * * * perl /var/nedi/nedi.pl -P 2 -Smv -A "CAST(inet_ntoa(devip) AS text) ~~* '\%.\%.\%.13\%'" > /tmp/nedi-seedlist.ip.13.log 2>&1
23,43 2-23 * * * perl /var/nedi/nedi.pl -P 2 -Smv -A "CAST(inet_ntoa(devip) AS text) ~~* '\%.\%.\%.23\%'" > /tmp/nedi-seedlist.ip.23.log 2>&1
14,44 2-23 * * * perl /var/nedi/nedi.pl -P 2 -Smv -A "CAST(inet_ntoa(devip) AS text) ~~* '\%.\%.\%.14\%'" > /tmp/nedi-seedlist.ip.14.log 2>&1
24,44 2-23 * * * perl /var/nedi/nedi.pl -P 2 -Smv -A "CAST(inet_ntoa(devip) AS text) ~~* '\%.\%.\%.24\%'" > /tmp/nedi-seedlist.ip.24.log 2>&1
15,45 2-23 * * * perl /var/nedi/nedi.pl -P 2 -Smv -A "CAST(inet_ntoa(devip) AS text) ~~* '\%.\%.\%.15\%'" > /tmp/nedi-seedlist.ip.15.log 2>&1
25,45 2-23 * * * perl /var/nedi/nedi.pl -P 2 -Smv -A "CAST(inet_ntoa(devip) AS text) ~~* '\%.\%.\%.25\%'" > /tmp/nedi-seedlist.ip.25.log 2>&1
16,46 2-23 * * * perl /var/nedi/nedi.pl -P 2 -Smv -A "CAST(inet_ntoa(devip) AS text) ~~* '\%.\%.\%.16\%'" > /tmp/nedi-seedlist.ip.16.log 2>&1
17,47 2-23 * * * perl /var/nedi/nedi.pl -P 2 -Smv -A "CAST(inet_ntoa(devip) AS text) ~~* '\%.\%.\%.17\%'" > /tmp/nedi-seedlist.ip.17.log 2>&1
18,48 2-23 * * * perl /var/nedi/nedi.pl -P 2 -Smv -A "CAST(inet_ntoa(devip) AS text) ~~* '\%.\%.\%.18\%'" > /tmp/nedi-seedlist.ip.18.log 2>&1
19,49 2-23 * * * perl /var/nedi/nedi.pl -P 2 -Smv -A "CAST(inet_ntoa(devip) AS text) ~~* '\%.\%.\%.19\%'" > /tmp/nedi-seedlist.ip.19.log 2>&1

6
Definition Files / Cisco IE-4000-8GS4G-E
« on: September 10, 2018, 09:01:52 AM »
# Definition for 1.3.6.1.4.1.9.1.2076 created by Defgen 2.0 on 10.Sep 2018 (ascii)
 
# Main
SNMPv   2HC
Type   IE-4000-8GS4G-E
Typoid   
Sysdes   
OS   IOS
Icon   w2bp
Size   1
TempAlert   
Bridge   VLX
ArpND   oldphy
Dispro   LLDPXN|CDP
Serial   1.3.6.1.2.1.47.1.1.1.1.11.1001
Bimage   1.3.6.1.4.1.9.2.1.73.0
CfgChg   1.3.6.1.4.1.9.9.43.1.1.1.0
CfgWrt   1.3.6.1.4.1.9.9.43.1.1.3.0
FTPConf   
VLnams   1.3.6.1.4.1.9.9.46.1.3.1.1.4.1
VLnamx   
Group   1.3.6.1.4.1.9.9.46.1.2.1.1.2.1
Mode   1.3.6.1.4.1.9.9.46.1.2.1.1.3.1
 
# Interfaces
StartX   
EndX   
IFname   1.3.6.1.2.1.31.1.1.1.1
IFaddr   oldcie   
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.4.1.9.9.68.1.2.2.1.2
IFvlix   
IFpowr      
IFpwix   
IFdupl   1.3.6.1.2.1.10.7.2.1.19
IFduix   
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   9
Moslot   1.3.6.1.2.1.47.1.1.1.1.7
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   
Mostat   
Mostok   
 
# RRD Graphing
CPUutl   1.3.6.1.4.1.9.9.109.1.1.1.1.8.1   
Temp   1.3.6.1.4.1.9.9.13.1.3.1.3.1006   
MemCPU   1.3.6.1.4.1.9.9.48.1.1.1.6.1   
Custom      

7
GUI / NeDi 1.5 Device-status CDP Neigbohr port
« on: December 13, 2016, 12:14:38 PM »
i just saw the if a port is connected to a switch the neigbhor is shown but not the port.
these used to be different in 1.4

8
Discovery / netfilter over multiple lines
« on: July 05, 2016, 09:55:35 AM »
Hello together,

i was wondering if it is possible to write the netfilter over multiple lines.
I have multiple location (20+) in my nedi.

my netfilter statement is getting really long and messy.

i is possible to have multiple netfilter statements in the config?

like
Code: [Select]
#location A
netfilter a.b.c.d

#location b
netfilter e.f.g.h

location c
netfilter i.j.k.l

and so on

9
Definition Files / WS-C2960CX-8TC-L
« on: March 26, 2015, 03:36:31 PM »
Code: [Select]
# Definition for 1.3.6.1.4.1.9.1.2137 created by Defgen 2.0 on 20.Mar 2015 (ascii)

# Main
SNMPv   2HC
Type    WS-C2960CX-8TC-L
Typoid  1.3.6.1.2.1.47.1.1.1.1.13.1001
Sysdes
OS      IOS
Icon    w2bp
Size    1
Bridge  VLX
ArpND   phy
Dispro  CDP
Serial  1.3.6.1.4.1.9.5.1.2.19.0
Bimage  1.3.6.1.4.1.9.2.1.73.0
CfgChg  1.3.6.1.4.1.9.9.43.1.1.1.0
CfgWrt  1.3.6.1.4.1.9.9.43.1.1.3.0
VLnams  1.3.6.1.4.1.9.9.46.1.3.1.1.4.1
VLnamx
Group   1.3.6.1.4.1.9.9.46.1.2.1.1.2.1
Mode    1.3.6.1.4.1.9.9.46.1.2.1.1.3.1

# Interfaces
StartX
EndX
IFname  1.3.6.1.2.1.31.1.1.1.1
IFaddr  old
IFalia  1.3.6.1.2.1.31.1.1.1.18
IFalix
InBcast 1.3.6.1.2.1.31.1.1.1.3
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.4.1.9.9.68.1.2.2.1.2
IFvlix
IFpowr
IFpwix
IFdupl  1.3.6.1.2.1.10.7.2.1.19
IFduix
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|10
Moslot  1.3.6.1.2.1.47.1.1.1.1.7
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.10
Modfw   1.3.6.1.2.1.47.1.1.1.1.9
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

# RRD Graphing
CPUutl  1.3.6.1.4.1.9.9.109.1.1.1.1.8.1
Temp    1.3.6.1.4.1.9.9.13.1.3.1.3.1004
MemCPU  1.3.6.1.4.1.9.9.48.1.1.1.6.1
Custom  Mem IO;G;Bytes free     1.3.6.1.4.1.9.9.48.1.1.1.6.2

10
Definition Files / WS-C2960X-24TS-L
« on: March 26, 2015, 03:35:37 PM »
Code: [Select]
# Definition for 1.3.6.1.4.1.9.1.1208 created by Defgen 2.0 on 18.Mar 2015 (ascii)

# Main
SNMPv   2HC
Type    WS-C2960X-24TS-L
Typoid  1.3.6.1.2.1.47.1.1.1.1.13.1001
Sysdes
OS      IOS
Icon    w2bn
Size    1
Bridge  VLX
ArpND
Dispro  CDP
Serial  1.3.6.1.4.1.9.5.1.2.19.0
Bimage  1.3.6.1.4.1.9.2.1.73.0
CfgChg  1.3.6.1.4.1.9.9.43.1.1.1.0
CfgWrt  1.3.6.1.4.1.9.9.43.1.1.3.0
VLnams  1.3.6.1.4.1.9.9.46.1.3.1.1.4.1
VLnamx
Group   1.3.6.1.4.1.9.9.46.1.2.1.1.2.1
Mode    1.3.6.1.4.1.9.9.46.1.2.1.1.3.1

# Interfaces
StartX
EndX
IFname  1.3.6.1.2.1.31.1.1.1.1
IFaddr  old
IFalia  1.3.6.1.2.1.31.1.1.1.18
IFalix
InBcast 1.3.6.1.2.1.31.1.1.1.3
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.4.1.9.9.68.1.2.2.1.2
IFvlix
IFpowr
IFpwix
IFdupl  1.3.6.1.2.1.10.7.2.1.19
IFduix
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|10
Moslot  1.3.6.1.2.1.47.1.1.1.1.7
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.10
Modfw   1.3.6.1.2.1.47.1.1.1.1.9
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

# RRD Graphing
CPUutl  1.3.6.1.4.1.9.9.109.1.1.1.1.8.1
Temp    1.3.6.1.4.1.9.9.13.1.3.1.3.1008
MemCPU  1.3.6.1.4.1.9.9.48.1.1.1.6.1
Custom  Mem IO;G;Bytes free     1.3.6.1.4.1.9.9.48.1.1.1.6.2

11
GUI / node oui
« on: February 11, 2015, 09:47:33 AM »
i just added a couple oui pics and MAC vendor to our NeDi install
it is for version 1.4

attached the icon which go to %nedi%/html/img/oui/
libnod.php goes to %nedi%/html/inc/

12
Discovery / perl error on config backup on nedi 1.1 beta
« on: September 15, 2014, 08:52:43 AM »
Hello together,

not sure if this is the right place.

i have a cron job backing up the devices

Code: [Select]
51 5 * * *      /var/nedi/nedi.pl -SafsgmijtedbpowAO -b -A 'devos ="IOS"' > /tmp/nedi-logfile-backup
also when i run it manually

Code: [Select]
/var/nedi/nedi.pl -b -A 'devos ="IOS"' >  /tmp/nedi-logfile-backup
the discovery stops with a perl error
Code: [Select]
error: must pass array or hash references to Algorithm::Diff::traverse_sequences at /usr/share/perl5/Algorithm/Diff.pm line 145.

Code: [Select]
nedi@krenoc /var/nedi $ tail /tmp/nedi-logfile-backup
10.68.53.170    kre-p06-sw-0  v81 i33   Jc j1 p0  m3   Ac a3|o0|b0|f0  f497   57/23-2s
10.68.53.89     kre-f07-sw-0  v81 i62   Jc j1 p0  m5   Ac a3|o0|b0|f0  f492   56/24-2s
10.81.223.254   LINN-HRL-SW-  v18 i234    j8   p0  m10    a88|o0|b0|f0    f110   55/25-11s
10.68.53.99     kre-f100-sw-  v81 i33   Jc j1 p0  m3   Ac a3|o0|b0|f0  f564   54/26-2s
10.68.53.251    kreF1K2-bb    v81 i251    j1   p0  m11    a88|o0|b0|f0    f1018   53/27-3s
10.68.53.51     kre-t03-sw-0  v81 i61   Jc j1 p0  m4   Ac a3|o0|b0|f0  f511   52/28-3s
10.68.53.252    kreF1K1-bb    v81 i300    j1   p0  m27    a3|o0|b0|f0    f1076   51/29-4s
10.68.53.199    kre-p14-sw-0  v81 i33   Jc j1 p0  m3   Ac a3|o0|b0|f0  f482   50/30-2s
10.68.53.125    kre-f01-sw-0  v81 i33   Jc j1 p0  m3   Ac a3|o0|b0|f0  f538   49/31-2s
10.68.53.56     kre-m04-sw-0  v81 i33   Jc j1 p0  m3   Ac a3|o0|b0|f0  f521 c734

running just the device gives

Code: [Select]
/var/nedi/nedi.pl -v -B0 -SWOAjedibatflowg -a 10.68.53.56
.......
CONF:ntp server 10.68.8.19 prefer
CONF:ntp server 10.72.16.22
CONF:ntp server 149.216.41.61
CONF:end
WAIT:
CONF:734 lines read
error: must pass array or hash references to Algorithm::Diff::traverse_sequences at /usr/share/perl5/Algorithm/Diff.pm line 145.

Code: [Select]
nedi@krenoc /var/nedi $ perl -v

This is perl 5, version 20, subversion 0 (v5.20.0) built for x86_64-linux-gnu-thread-multi
(with 35 registered patches, see perl -V for more detail)

Code: [Select]
from inside /usr/share/perl5/Algorithm/Diff.pm

 126 sub _longestCommonSubsequence
 127 {
....
 140
 141     # Check for bogus (non-ref) argument values
 142     if ( !ref($a) || !ref($b) )
 143     {
 144         my @callerInfo = caller(1);
 145         die 'error: must pass array or hash references to ' . $callerInfo[3];
 146     }
 147

13
Discovery / uptime in device status wrong
« on: August 26, 2014, 07:09:47 AM »
i'm useing the 155 Beta
the NeDi log gives me
Code: [Select]
Was up for 497 days, 02:27:04.71, ignoring uptime due to potential overflowthe device shows a uptime of 1 Day in NeDi

on the switch itself
Code: [Select]
switch0815 uptime is 1 year, 19 weeks, 18 hours, 1 minute
System returned to ROM by power-on
System restarted at 13:04:20 mesz Sun Apr 14 2013


14
Discovery / 99 CPU Load due to moni on NeDi 1.1 beta
« on: June 05, 2014, 01:13:15 PM »
moni is running on 99 CPU on my debian

Code: [Select]
4588 www-data  20   0  152m  23m 3396 R  98,6  2,3   1:40.04 moni.pl
Code: [Select]
cat debian_version
7.5

looks like moni is still running but died
Code: [Select]
5.Jun 14 13:15 NeDi [Monitoring, NeDi Configuration] Last successful check on Thu Jun 5 12:59:04 2014, is moni running?
EDIT
i think i found the problem.
in the monitoring setup i used the auto dependency.
i have a couple switches still with spanningtree in a ring
nedi set all the dependency.
Moni than ran into a Dependency Loop and dies

15
Discovery / Cisco Nexus dual homed fex
« on: May 27, 2014, 08:40:25 AM »
Hello together,

i have a setup with dual homed fex fabrics.
the module discovery is going nuts since it finds the fex on both Nexus 5k

Quote
27.May 14 8:05   kre-f01-n5ks    New Fex-102 Nexus2200HP Chassis module with SN:FOC174XXXXX found in Fex-102 Nexus2200HP Chassis
27.May 14 8:05   kre-f01-n5ks    New Fex-101 Nexus2200HP Chassis module with SN:FOC174YYYYYY found in Fex-101 Nexus2200HP Chassis
27.May 14 8:05   kre-f01-n5ks    New Fex-102 Fabric Extender Module: 16x10GE, 8x10GE in FixedModule-1 module with SN:FOC17386XXX found in Fex-102 Fabric Extender Module: 16x10GE, 8x10GE in FixedModule-
27.May 14 8:05   kre-f01-n5ks    New Fex-101 Fabric Extender Module: 16x10GE, 8x10GE in FixedModule-1 module with SN:FOC17386YYY found in Fex-101 Fabric Extender Module: 16x10GE, 8x10GE in FixedModule-
27.May 14 8:05   kre-f01-n5ks    Module Fex-102 Nexus2200HP Chassis SN:FOC174XXXXX in Fex-102 Nexus2200HP Chassis has been removed
27.May 14 8:05   kre-f01-n5ks    Module Fex-101 Nexus2200HP Chassis SN:FOC174YYYYYY in Fex-101 Nexus2200HP Chassis has been removed
27.May 14 8:05   kre-f01-n5ks    Module Fex-102 Fabric Extender Module: 16x10GE, 8x10GE in FixedModule-1 SN:FOC17386XXX in Fex-102 Fabric Extender Module: 16x10GE, 8x10GE in FixedModule- has been removed
27.May 14 8:05   kre-f01-n5ks    Module Fex-101 Fabric Extender Module: 16x10GE, 8x10GE in FixedModule-1 SN:FOC17386YYY in Fex-101 Fabric Extender Module: 16x10GE, 8x10GE in FixedModule- has been removed
27.May 14 8:05   kre-f01-n5k    New Fex-102 Nexus2200HP Chassis module with SN:FOC174XXXXX found in Fex-102 Nexus2200HP Chassis
27.May 14 8:05   kre-f01-n5k    New Fex-101 Nexus2200HP Chassis module with SN:FOC174YYYYYY found in Fex-101 Nexus2200HP Chassis
27.May 14 8:05   kre-f01-n5k    New Fex-102 Fabric Extender Module: 16x10GE, 8x10GE in FixedModule-1 module with SN:FOC17386XXX found in Fex-102 Fabric Extender Module: 16x10GE, 8x10GE in FixedModule-
27.May 14 8:05   kre-f01-n5k    New Fex-101 Fabric Extender Module: 16x10GE, 8x10GE in FixedModule-1 module with SN:FOC17386YYY found in Fex-101 Fabric Extender Module: 16x10GE, 8x10GE in FixedModule-
27.May 14 8:05   kre-f01-n5k    Module Fex-102 Nexus2200HP Chassis SN:FOC174XXXXX in Fex-102 Nexus2200HP Chassis has been removed
27.May 14 8:05   kre-f01-n5k    Module Fex-101 Nexus2200HP Chassis SN:FOC174YYYYYY in Fex-101 Nexus2200HP Chassis has been removed
27.May 14 8:05   kre-f01-n5k    Module Fex-102 Fabric Extender Module: 16x10GE, 8x10GE in FixedModule-1 SN:FOC17386XXX in Fex-102 Fabric Extender Module: 16x10GE, 8x10GE in FixedModule- has been removed
27.May 14 8:05   kre-f01-n5k    Module Fex-101 Fabric Extender Module: 16x10GE, 8x10GE in FixedModule-1 SN:FOC17386YYY in Fex-101 Fabric Extender Module: 16x10GE, 8x10GE in FixedModule- has been removed
27.May 14 7:05   kre-f01-n5ks    New Fex-102 Nexus2200HP Chassis module with SN:FOC174XXXXX found in Fex-102 Nexus2200HP Chassis
27.May 14 7:05   kre-f01-n5ks    New Fex-101 Nexus2200HP Chassis module with SN:FOC174YYYYYY found in Fex-101 Nexus2200HP Chassis
27.May 14 7:05   kre-f01-n5ks    New Fex-102 Fabric Extender Module: 16x10GE, 8x10GE in FixedModule-1 module with SN:FOC17386XXX found in Fex-102 Fabric Extender Module: 16x10GE, 8x10GE in FixedModule-
27.May 14 7:05   kre-f01-n5ks    New Fex-101 Fabric Extender Module: 16x10GE, 8x10GE in FixedModule-1 module with SN:FOC17386YYY found in Fex-101 Fabric Extender Module: 16x10GE, 8x10GE in FixedModule-

Pages: [1] 2