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

Pages: [1]
1
Definition Files / 3650 Bootimage OID
« on: June 19, 2015, 09:55:37 AM »
Hi all,

does anyone have a better option than 1.3.6.1.4.1.9.9.249.1.1.1.1.5.1000 for the bootimage on the Cisco 3650 (1.3.6.1.4.1.9.1.1830/ 1.3.6.1.4.1.9.1.1826)?
I can't seem to find an OID showing the bin file, like 1.3.6.1.4.1.9.2.1.73.0 does e.g. on the 4500s.

Thanks.

2
Discovery / Content Switches
« on: June 27, 2013, 03:22:51 PM »
Anybody using NeDi for the discovery of content switches? I would be curious if you can get the nodes from an F5.

3
Discovery / Missing values in fields
« on: November 14, 2012, 01:32:41 PM »
Hi all,

just wanted to share some information with you, in case you have a similar issue.

I had one seedlist with about 400 devices. 250 were lacking information like the serial and bootimage. Within Defgen, I could request those fields and the requested values were correct. There were even events, telling me the serial was changed from '-' to the correct one. But still, I was missing those in the database.

The root cause? nosnmpdev contained to pipes after each other (e.g. 'Phone||Controller'). So what happened ist that NeDi accepted any device as a neighbor that needs to be written to the device list. First, devices were discovered correctly and then their values were deleted again, as the result of a neighbor entry.

Troubleshooting in this case is a bit tricky. The devices showed green lights next to SNMP, as mentioned, Defgen showed the correct values, etc. The values stayed in the database when additionally discovered with the -a flag. On the next day, they disappeared again. There was an event, saying it replaced '-' with the correct serial or bootimage, but no event, that said it replaced it again! The only thing, that caused my attention was that I found three values for "WDEV" when I logged the whole discovery and grepped for the device. That gave me the relevant hint.

Maybe this piece of information is useful for somebody.

4
GUI / Rights and reachable links
« on: August 31, 2012, 03:06:17 PM »
Just found out by accident that anybody can change a def or reset the CLI data. Should'nt that be something for the admin group?

5
Discovery / Disk space
« on: August 29, 2012, 10:55:13 AM »
Hi all,

When I compare the size of my database dump with about 400 MB and the size that NeDi uses, which is about 60 GB, I ask myself, if I will run out of disk space some time.
Question: are the rrd values deleted by NeDi sometimes? Or do I need to take care about that with a cron job?

Are there any more things, that might use a lot of disk space, except the rrds?

6
Discovery / Distributed discovery
« on: July 19, 2012, 10:42:35 AM »
Just tried to merge the data of two systems into one central NeDi installation. And it seemed to work. Just a small description of the steps, in case someone wants to try this:
  • Export data from any local agent: mysqldump nedi --compact --no-create-info --user=xxx --password=xxx > sqlfile_x
  • Transfer data to central system via scp
  • Transfer all seedlists and conf files to central system via scp
  • Clean NeDi database on central system: nedi.pl -i
  • Import all local databases: mysql nedi --batch --force --user=xxx --password < sqlfile_x
  • Enjoy all data in one system

Things that will not work:
  • Graphs (rrds missing)

7
Installation / Installation on SLES11
« on: July 16, 2012, 09:20:29 AM »
Just in case, someone could use this. OpenSuse should be working similar.

8
Discovery / Nodes table behaving crazy
« on: July 05, 2012, 09:59:25 AM »
Hi all,

how does NeDi update the nodes table? It seems, everything is removed and constantly rebuilt.
That could happen, since I am currently running a lot of jobs with very small seedlists. So every few minutes one of those jobs is accomplished.

Code: [Select]
mysql> select CURDATE(), count(*) from nodes;
+------------+----------+
| CURDATE()  | count(*) |
+------------+----------+
| 2012-07-05 |        0 |
+------------+----------+
1 row in set (0.00 sec)

mysql> select CURTIME(), count(*) from nodes;
+-----------+----------+
| CURTIME() | count(*) |
+-----------+----------+
| 09:53:06  |    33000 |
+-----------+----------+
1 row in set (0.00 sec)

mysql> select CURTIME(), count(*) from nodes;
+-----------+----------+
| CURTIME() | count(*) |
+-----------+----------+
| 09:53:07  |    38145 |
+-----------+----------+
1 row in set (0.00 sec)

mysql> select CURTIME(), count(*) from nodes;
+-----------+----------+
| CURTIME() | count(*) |
+-----------+----------+
| 09:53:09  |    45140 |
+-----------+----------+
1 row in set (0.00 sec)

mysql> select CURTIME(), count(*) from nodes;
+-----------+----------+
| CURTIME() | count(*) |
+-----------+----------+
| 09:53:11  |    50824 |
+-----------+----------+
1 row in set (0.00 sec)

mysql> select CURTIME(), count(*) from nodes;
+-----------+----------+
| CURTIME() | count(*) |
+-----------+----------+
| 09:53:13  |    56152 |
+-----------+----------+
1 row in set (0.00 sec)

mysql> select CURTIME(), count(*) from nodes;
+-----------+----------+
| CURTIME() | count(*) |
+-----------+----------+
| 09:53:19  |    75711 |
+-----------+----------+
1 row in set (0.00 sec)

mysql> select CURTIME(), count(*) from nodes;
+-----------+----------+
| CURTIME() | count(*) |
+-----------+----------+
| 09:53:28  |   105526 |
+-----------+----------+
1 row in set (0.00 sec)

mysql> select CURTIME(), count(*) from nodes;
+-----------+----------+
| CURTIME() | count(*) |
+-----------+----------+
| 09:53:55  |   190562 |
+-----------+----------+
1 row in set (0.00 sec)

mysql> select CURTIME(), count(*) from nodes;
+-----------+----------+
| CURTIME() | count(*) |
+-----------+----------+
| 09:54:18  |   250054 |
+-----------+----------+
1 row in set (0.00 sec)

mysql> select CURTIME(), count(*) from nodes;
+-----------+----------+
| CURTIME() | count(*) |
+-----------+----------+
| 09:54:53  |   250054 |
+-----------+----------+
1 row in set (0.00 sec)

mysql> select CURTIME(), count(*) from nodes;
+-----------+----------+
| CURTIME() | count(*) |
+-----------+----------+
| 09:55:42  |    44436 |
+-----------+----------+
1 row in set (0.00 sec)


Since these jobs are taking several hours, Node functionality is not usable within this time.
Is it possible to reduce this effect only to specific components (those that have been discovered within the accomplished job)?


9
Discovery / Import Nodes per SQL as Devices
« on: July 04, 2012, 01:44:30 PM »
If somebody is interested in devices that do not support CDP/ LLDP and SNMP, but appear as nodes, you can use SQL for that:
INSERT INTO devices
    (SELECT  substr(n.name, 1, 10) device, n.nodip, 'unknown', 'Lightweight AP', n.firstseen, n.lastseen, '2', 'Manually added', '-', '-', d.location, '', '', 0, 0, '', 0, '', 'waon', n.nodip, null, null, null, null, null, null, ''
    FROM    nodes n
    JOIN    devices d
    ON      n.device = d.device
    WHERE   UPPER(n.name) LIKE '<pattern>'
        AND EXISTS(
                SELECT  di.device
                FROM    devices di
                WHERE   upper(substr(n.name, 1, 10)) = upper(di.device)
                AND     di.serial = 'unknown' or di.serial is null
            )
    )
ON DUPLICATE KEY UPDATE lastdis = n.lastseen
;

INSERT INTO links
    (SELECT tmp1.id, tmp1.device, tmp1.ifname, tmp1.neighbor, tmp1.nbrifname, i.speed, tmp1.type, tmp1.description, i.duplex, tmp1.vlanid
    FROM
        (SELECT  l.id, substr(n.name, 1, 10) device, 'unknown' as ifname, n.device neighbor, n.ifname as nbrifname, 'MAC' type, 'Manually added' description, n.vlanid
        FROM    nodes n
        LEFT OUTER JOIN links l
        ON      upper(substr(n.name, 1, 10)) = upper(l.device)
            WHERE   UPPER(n.name) LIKE '<pattern>'
                AND EXISTS(
                        SELECT  di.device
                        FROM    devices di
                        WHERE   upper(substr(n.name, 1, 10)) = upper(di.device)
                        AND     di.serial = 'unknown' or di.serial is null
                    )
        ) tmp1
    LEFT OUTER JOIN interfaces i
    ON      i.device = tmp1.neighbor
        AND i.ifname = tmp1.nbrifname
    )
ON DUPLICATE KEY UPDATE neighbor = tmp1.neighbor,
                        nbrifname = tmp1.nbrifname,
                        bandwidth = i.speed,
                        nbrduplex = i.duplex,
                        nbrvlanid = tmp1.vlanid
;

I have tested this script for a few months now for Aruba Lightweight APs.
@Remo, maybe you want to add that as a command line option? Make patterns configurable and run sql as nedi.pl -sqlimport or something similar?

10
Discovery / Confib backups not working
« on: May 03, 2012, 08:11:33 AM »
Hi,

any reason why nedi.pl -v -u seedlist -B -U nedi.conf would not make a backup, but nedi.pl -v -a IP -B -U nedi.conf does?
I have tried this with several IPs and changed configs now. However I cannot run the -a thing with over 11.000 devices.

Any suggestions?

Thanks,
raider82

11
Discovery / Nexus & libcli
« on: April 05, 2012, 01:59:26 PM »
Hi all,

maybe it is just an exception, but I had to change the Nexus config in order to get the configuration in NeDi:

Code: [Select]
$cmd{'NXOS'}{'ropr'} = $cmd{'IOS'}{'ropr'};
$cmd{'NXOS'}{'enpr'} = $cmd{'IOS'}{'enpr'};
$cmd{'NXOS'}{'enab'} = 'enable';
$cmd{'NXOS'}{'dfwd'} = 'sh cam dyn';
$cmd{'NXOS'}{'conf'} = 'show running-config';
$cmd{'NXOS'}{'strt'} = '^version';
$cmd{'NXOS'}{'page'} = 'terminal length 0';
Maybe it helps someone else.

12
Discovery / Backup Aruba Config
« on: February 29, 2012, 12:32:01 PM »
If anyone is interested.

Add to inc/libcli-iopty.pm:
Code: [Select]
#Aruba
$cmd{'ArubaOS'}{'ropr'} = '(.+?)>\s?$';
$cmd{'ArubaOS'}{'enpr'} = '(.+?)#\s?$';
$cmd{'ArubaOS'}{'conf'} = 'show running-config';
$cmd{'ArubaOS'}{'strt'} = '^version';
$cmd{'ArubaOS'}{'page'} = 'no paging';
$cmd{'ArubaOS'}{'dfwd'} = 'show mac-address-table';
$cmd{'ArubaOS'}{'enab'} = 'enable';

Add to html/ Other-Defgen.php:
Code: [Select]
<option value="">--------
<option value="ArubaOS"<?=($os == "ArubaOS")?" selected":""?>>Aruba OS

13
Discovery / Re: NeDi 1.0.7 bug
« on: February 13, 2012, 05:01:15 PM »
Since the 1.0.7. thread is closed, do you want bugs in here?
Use of uninitialized value in concatenation (.) or string at ./inc/libcli-iopty.pm line 479.

The log says:
SSH :user:22 Tout:2s OS:IOS EN:(.+?)#\s?$
PTY :Forking ssh -o 'StrictHostKeyChecking no' -l user switch
CLI2:Matched Password:, sending password
CLI3:Password sent
CLI4:Matched switch> (or gen. prompt with enpass &  cmd), enabling
ERR :pattern match timed-out
DISC:Cli bridge fwd = login error

I can login with these credentials and the prompts are switch> and switch# as one would expect ... Occurs for a bunch of switches.

Pages: [1]