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

Pages: [1]
1
GUI / Devices-List.php is blank (debug error below)
« on: December 11, 2020, 07:21:55 pm »
Most of our Nedi is working, but for some reason the Devices-List page does not show any output below the top menu bar.  I know we have devices in the database, because they show up in the reports.

PHP Version 7.4.11
System   Linux Hostname 5.4.0-52-generic #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020 x86_64
Build Date   Oct 18 2020 19:39:42
Server API   FPM/FastCGI

Here is some of the debug output from clicking on the "bug" on the top-right corner:

Code: [Select]
Self: Devices-List
Version: 1.9.100
NeDipath: /var/nedi

Fatal error: Uncaught Error: Call to undefined function snmp_set_quick_print() in /var/nedi/html/inc/libsnmp.php:8 Stack trace: #0 /var/nedi/html/Devices-List.php(9): include_once() #1 {main} thrown in /var/nedi/html/inc/libsnmp.php on line 8

2
Definition Files / N9K-C92160YC-X
« on: June 02, 2020, 07:20:31 pm »
# Definition for 1.3.6.1.4.1.9.12.3.1.3.1744 created by Defgen 1.8 on 16.Oct 2018 (admobst)

# General
SNMPv   2HC
Type    N9K-C92160YC-X
Typoid
Sysdes
OS      NXOS
Icon    c3bn
Size    1
Bridge  VLX
ArpND   oldcie
Dispro  LLDP
Serial  1.3.6.1.2.1.47.1.1.1.1.11.10
Bimage  1.3.6.1.2.1.1.1.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  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.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  6|7|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.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

# 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.91.1.1.1.1.4.38486
MemCPU  1.3.6.1.4.1.9.9.109.1.1.1.1.13.1
Custom  MemIO;G;Bytes

3
Definition Files / N9K-C9336C-FX2
« on: June 02, 2020, 07:20:03 pm »
# Definition for 1.3.6.1.4.1.9.12.3.1.3.1955 created by Defgen 1.8 on 16.Oct 2018 (admobst)

# General
SNMPv   2HC
Type    N9K-C9336C-FX2
Typoid
Sysdes
OS      NXOS
Icon    c3bn
Size    1
Bridge  VLX
ArpND   oldcie
Dispro  LLDP
Serial  1.3.6.1.2.1.47.1.1.1.1.11.10
Bimage  1.3.6.1.2.1.1.1.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  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.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  6|7|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.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

# 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.91.1.1.1.1.4.38486
MemCPU  1.3.6.1.4.1.9.9.109.1.1.1.1.13.1
Custom  MemIO;G;Bytes

4
Discovery / Multiple errors when discovering a Cisco c9200 switch
« on: June 02, 2020, 06:45:02 pm »
Here is the output of a discovery on a Ubuntu 16.04.5 LTS server with Nedi 1.8.100:

Code: [Select]
DNS :Net::Nslookup not available
CLI :IO-Pty loaded
WEB :LWP-UserAgent loaded
RDEV:2908 devices read from nedi.devices
OUI :33329 NIC vendor entries read
RMON:0 entries (dev) read from nedi.monitoring
RMON:0 entries (node) read from nedi.monitoring
RUSR:0 entries (groups & 8 = 8 AND (phone != '' OR email != '')) read from nedi.users
TODO:1.2.3.4    1.2.3.4             added
RADR:31375 IF MAC, 735 IP and 5 IPv6 addresses read.
MAIN:-1 thread(s) error, 1st from Tue Jun  2 16:19:33 2020 make sure interval is longer than discovery takes!
Network Discovery (1.8.100) /var/nedi/nedi.pl -v -SGg -a 1.2.3.4
Started with 1 seed at Tue Jun  2 16:32:13 2020
-------------------------------------------------------------------------------
Device Status Todo/Done-Time
===============================================================================
DISC:1.2.3.4 ID 1.2.3.4

Identify 1.2.3.4 ++++++++++++++++++++++++++
SNMP:Connect 1.2.3.4 mysnmpstring v2 Tout:10s MaxMS:1472 Retry:1 NB:0
IDNT:Name=sw1
SOBJ:Reading 1.3.6.1.4.1.9.1.2695.def (1.3.6.1.4.1.9.1.2695)
Use of uninitialized value in string eq at /var/nedi/inc/libsnmp.pm line 333.
IDNT:Contact
IDNT:Location A09-002a
Use of uninitialized value in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 395.
IDNT:OS= SRV=6 TYPE=1.3.6.1.4.1.9.1.2695
DISC:no skippol, -S Gg

Enterprise   ------------------------------------------------------------------
SNMP:Connect 1.2.3.4 mysnmpstring v2 Tout:11s MaxMS:5000 Retry:1 NB:0
Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libsnmp.pm line 504.

Interfaces  -------------------------------------------------------------------- Tue Jun  2 16:32:14 2020
RIF :77 IF read (WHERE device = 'sw1') from nedi.interfaces
SNMP:Connect 1.2.3.4 mysnmpstring v2 Tout:13s MaxMS:1472 Retry:1 NB:0
Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libsnmp.pm line 959.
IF  :Walking errors
Use of uninitialized value $ifnamO in string eq at /var/nedi/inc/libsnmp.pm line 1114.
IF  :Walking description
IF  :Walking type
IF  :Walking MAC
IF  :Walking agg-sel-id
IF  :Walking admin status
IF  :Walking oper status
IF  :Index Name          Spd Dup St Pvid Description     Alias             PoE
Use of uninitialized value $ifnamO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1442.
Use of uninitialized value $ifidiO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1510.
Use of uninitialized value $ifodiO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1511.
Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libsnmp.pm line 1607.
IF  :     1 Gi0/0          0  -   0    0 GigabitEthernet                     0
Use of uninitialized value $ifnamO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1442.
Use of uninitialized value $ifidiO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1510.
Use of uninitialized value $ifodiO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1511.
Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libsnmp.pm line 1607.
IF  :     8 VLAN-1003      0  -   3    0 unrouted VLAN 1                     0
Use of uninitialized value $ifnamO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1442.
ERR :ioc overflow, not updating
ERR :ooc overflow, not updating
Use of uninitialized value $ifidiO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1510.
Use of uninitialized value $ifodiO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1511.
Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libsnmp.pm line 1607.
IF  :     9 Gi1/0/1        0  -   3    0 GigabitEthernet Phone gateway       0
Use of uninitialized value $ifnamO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1442.
ERR :ioc overflow, not updating
ERR :ooc overflow, not updating
Use of uninitialized value $ifidiO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1510.
Use of uninitialized value $ifodiO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1511.
Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libsnmp.pm line 1607.
IF  :    71 VLAN-100       0  -   3    0 unrouted VLAN 1                     0
Use of uninitialized value $ifnamO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1442.
Use of uninitialized value $ifidiO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1510.
Use of uninitialized value $ifodiO in concatenation (.) or string at /var/nedi/inc/libsnmp.pm line 1511.
Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libsnmp.pm line 1607.
IF  :    77 VLAN-999       0  -   3    0 unrouted VLAN 9                     0
Use of uninitialized value in string eq at /var/nedi/inc/libmisc.pm line 1694.
Use of uninitialized value in string eq at /var/nedi/inc/libmisc.pm line 1696.
Use of uninitialized value in string eq at /var/nedi/inc/libmisc.pm line 1698.
Use of uninitialized value in string eq at /var/nedi/inc/libmisc.pm line 1700.
Use of uninitialized value in string eq at /var/nedi/inc/libmisc.pm line 1702.
Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libmisc.pm line 1704.
Use of uninitialized value in string eq at /var/nedi/inc/libmisc.pm line 1708.
Use of uninitialized value in string eq at /var/nedi/inc/libmisc.pm line 1710.
Use of uninitialized value in string eq at /var/nedi/inc/libmisc.pm line 1712.
Use of uninitialized value in pattern match (m//) at /var/nedi/inc/libmisc.pm line 1714.

Write Device Info -------------------------------------------------------------  Tue Jun  2 16:32:14 2020
WDEV:sw1 written to nedi.devices
WIF :77 interfaces written to nedi.interfaces
WMOD:0 modules written to nedi.modules
WVLN:0 vlans with 0 egress ports written to nedi.vlans
WNET:0 networks written to nedi.networks

ProPolicy  --------------------------------------------------------------------  Tue Jun  2 16:32:14 2020
PROP:No actions triggered
DISC:ToDo/Done-Time    0/1-0s

===============================================================================
MAIN:1 (0 new) devices discovered
MAIN:1 threads running right now
ALRT:0 mails and 0 SMS sent

MacLinks  ---------------------------------------------------------------------  Tue Jun  2 16:32:19 2020
ITER:1 found 0 MAC links

MLNK:found 0 MAC links in 1 iterations, 0 seconds
Took 0 minutes

5
Installation / How to install patch 3?
« on: January 18, 2019, 05:41:56 pm »
Your recent news post mentioned that we need to upgrade to Patch 3 for Nedi 1.7 and 1.8.

https://www.nedi.ch/end-of-year-update/

What is the procedure to apply this update?

Thanks!

Tristan

6
We love being able to view a network device in Nedi and see how long each of the ports have been in their current state.   This lets us find ports that have been down for over a year so that we know that we can reuse these ports.  However, we are starting to find some models of switches do not have anything in this field, just a "-".

I assume this must be caused by a missing or wrong entry in the .DEF file.   Which one is it? 

Thanks!

Tristan

7
Discovery / Security reminder: Be sure to configure "netfilter"!
« on: July 09, 2013, 08:34:57 pm »
When Nedi discovers a CDP or LLDP neighbor, it will begin sending all your read-only SNMP strings to it.  If this device is a hacker on your network running CDPd, then the hacker can easily learn these SNMP communities.

Additionally, if the hacker can convince Nedi they are a valid device, then Nedi will also try to backup the device using SSH or Telnet.  This will enable a hacker to get full access to the usernames and passwords to all your devices.

The best protection for this attack is to configure your netfilter (found inside nedi.conf) to strictly match only your devices and never an IP that a user can be assigned.

# Only discover devices where ip address matches this regular expression.
# This way NeDi will not send any login credentials to rogue/evil devices.
netfilter       172.16|172.31

Cheers and be safe!

Tristan

Pages: [1]