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.


Messages - ascii

Pages: 1 2 [3] 4 5 ... 7
31
i had the same issues.

i added the diffie-hellman-group1-sha1 to my /etc/ssh/ssh_config config

32
Discovery / Re: No login on Device-Write
« on: May 23, 2017, 08:46:26 AM »
there is no vaild login for the switch in the Nedi Database.
it should look like in the screenshot below.

hit the red power button to reset the cli and than discover it again.

33
Discovery / Re: VLANS?
« on: February 17, 2017, 02:09:13 PM »
what kind of switches do you have?
is there a .def file for the type?

34
Discovery / Re: Config Backup of Cisco Nexus
« on: February 16, 2017, 08:08:45 AM »
my N5K with NXOS 7 works with nexus OS in the .def

libcli
Code: [Select]
$cmd{'NXOS'}{'ropr'} = '[\w+().-]+>\s?$';
$cmd{'NXOS'}{'enpr'} = '[\w+().-]+#\s?$';
$cmd{'NXOS'}{'enab'} = 'enable';
$cmd{'NXOS'}{'page'} = 'terminal length 0';
$cmd{'NXOS'}{'dfwd'} = 'sh mac address-table dyn';
$cmd{'NXOS'}{'shcf'} = 'show running-config';
$cmd{'NXOS'}{'cfst'} = '^begin|running-config';
$cmd{'NXOS'}{'arp'} = 'sh ip arp vrf all';

35
GUI / Re: NeDi 1.5 Device-status CDP Neigbohr port
« on: January 09, 2017, 01:13:04 PM »
ok i see.
i used to like.
we or shall i say my apprentice had the job of going thru the devices and correct the interface alias.
We are currently replacing a lot of switches and this was an easy and save way to change the description

36
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

37
Installation / Re: Missing dependencies on "Install" instructions for Ubuntu
« on: September 21, 2016, 09:32:56 AM »
maybe you should/could mention that nedi 1.4 is not compatible with php7 which might be pushed from same distributions as default by now.

38
Discovery / Re: netfilter over multiple lines
« on: July 08, 2016, 08:50:37 AM »
so i did a little bit of scripting.
not nice but works at least on linux.

create 2 files in /var/nedi/inc

netfilter.sh
Code: [Select]
#!/bin/bash

# grep all location and paste at end without linefeed
grep netfilter netfilter-location.txt | tr -d '\n' >> netfilter-location.txt

# replace all netfilter word with the regex or |
sed -i -e '$s/netfilter /|/g' netfilter-location.txt

# insert keyword netfilter on first position on last line
sed -i -e '$s/^./netfilter /g' netfilter-location.txt

# variable for NeDi replace string
netfill=`tail -n 1 netfilter-location.txt`

# replace netfilter string in NeDi conf with new generated one
sed -i '/^netfilter /c\'"$netfill"'' /var/nedi/nedi.conf

# Delete temp inlput
sed -i '$ d' netfilter-location.txt

and the second one is netfilter-location.txt with your location like these
Code: [Select]
#Location A
netfilter 10.68.1.{1,3}|10.68.16.8$|10.68.18.100|10.68.52.{1,3}|10.68.53.{1,3}|10.68.84.22[5-6]
#Location A-1
netfilter 10.68.14[4-7].[5-9]$|10.68.144.10$

#Location B
netfilter 10.72.3.{1,3}|10.72.15.{1,3}|10.72.99.[2,3]|

#Location C
netfilter 10.81.105.1[1-9]$|10.81.105.1$

#Location D
netfilter 10.81.220.15[1-4]|10.81.223.229|10.81.223.230|10.81.223.24[3-6]|10.81.223.254

#Location E
netfilter 10.83.126.2$|10.83.126.20$

#Location F
netfilter 10.81.64.241|10.81.92.{1,3}|10.81.172.10$
#Location F-1
netfilter 10.81.175.[129-158]

#Location G
netfilter 10.81.192.1|10.81.194.73|10.81.175.[65-99]

and so on

than edit the netfilter-location.txt to your need.
once done call the netfilter.sh

it will replace the netfilter string in your nedi.conf
always backup your nedi.conf
test it before you use it.

the downside is, that if you edit your netfilter in the nedi conf directly without the netfilter-location.txt it will be replaced once you generate the new string

39
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

40
Discovery / Re: Log in to switch every hour
« on: June 08, 2016, 08:56:30 AM »
i don't think it will effect the health monitor.

fwd ist forwarding database
it's more ore less the table with all the MAC Adresses on the network. so the switch knows where to send the packet

my crontab looks like these
Code: [Select]
#  over the day
15,45 1-23 * * *    perl /var/nedi/nedi.pl -Smv -P 2 -r -u /var/nedi/seedlist.core > /tmp/nedi-seedlist.core.log 2>&1

0,30 1-23 * * *         perl /var/nedi/nedi.pl -Smv -A 'RIGHT(INET_NTOA(devip), 1) IN (1, 5)'  > /tmp/nedi-seedlist.ip.1u5.log 2>&1
1,31 1-23 * * *         perl /var/nedi/nedi.pl -Smv -A 'RIGHT(INET_NTOA(devip), 1) IN (0, 6)'  > /tmp/nedi-seedlist.ip.0u6.log 2>&1
2,32 1-23 * * *         perl /var/nedi/nedi.pl -Smv -A 'RIGHT(INET_NTOA(devip), 1) IN (2, 7)'  > /tmp/nedi-seedlist.ip.2u7.log 2>&1
3,33 1-23 * * *         perl /var/nedi/nedi.pl -Smv -A 'RIGHT(INET_NTOA(devip), 1) IN (3, 8)'  > /tmp/nedi-seedlist.ip.3u8.log 2>&1
4,34 1-23 * * *         perl /var/nedi/nedi.pl -Smv -A 'RIGHT(INET_NTOA(devip), 1) IN (4, 9)'  > /tmp/nedi-seedlist.ip.4u9.log 2>&1

#nightly
5 0 * * *   perl /var/nedi/nedi.pl -SAF -p -u /var/nedi/seedlist.kre > /tmp/nedi-seedlist.night.kre.log  2>&1
10 0 * * *   perl /var/nedi/nedi.pl -SAF -p -u /var/nedi/seedlist.ess > /tmp/nedi-seedlist.night.ess.log 2>&1
54 0 * * *      perl /var/nedi/nedi.pl -SafsgmijtedbpowAO -b -A 'devos ="IOS-asa"' > /tmp/nedi-logfile-backup-fws
56 0 * * *      perl /var/nedi/nedi.pl -SafsgmijtedbpowAO -b -A 'devos ="NXOS"'  > /tmp/nedi-logfile-backup
45 0 * * *      perl /var/nedi/nedi.pl -SafsgmijtedbpowAO -b -A 'devos ="IOS"' >> /tmp/nedi-logfile-backup

0 6 * * 1      perl /var/nedi/stati.pl

41
Discovery / Re: Log in to switch every hour
« on: June 07, 2016, 10:40:40 AM »
how does your cronjob looks like?

42
i tired the update on VM a couple month ago.
had the same problem.

from now on debian stretch (Testing tree) pushes PHP 7 as default.
so on debian testing you have to mark php7 with hold if you want to use NeDi

43
Discovery / Re: Config Backup Cisco ASA55xx - Cisco WLC
« on: April 20, 2016, 06:41:44 AM »
my ASA 5555-X and my WLC CT5505 work fine.
but i'm not sure if i tweaked somethink somewhere.

attached are both of my def files

my nedi/inc/libcli.pm looks like these
Code: [Select]
$cmd{'IOS-wlc'}{'ropr'} = '\(Cisco Controller\) >$';
$cmd{'IOS-wlc'}{'enpr'} = $cmd{'IOS-wlc'}{'ropr'};
$cmd{'IOS-wlc'}{'conf'} = 'show run-config commands';
$cmd{'IOS-wlc'}{'strt'} = '.';
$cmd{'IOS-wlc'}{'page'} = 'config paging disable';

...

$cmd{'IOS-asa'}{'ropr'} = '[\w+().-]+>\s?$';
$cmd{'IOS-asa'}{'enpr'} = '[\w+().-]+#\s?$';
$cmd{'IOS-asa'}{'enab'} = 'enable';
#$cmd{'IOS-asa'}{'conf'} = 'show run';
$cmd{'IOS-asa'}{'conf'} = 'more system:running-config';                                                 # displays plain-text keys, tx uestueno
$cmd{'IOS-asa'}{'strt'} = '^PIX|ASA';
$cmd{'IOS-asa'}{'end'}  = '^: end$';
$cmd{'IOS-asa'}{'page'} = 'no terminal pager';                                                          # PIX 8.0.3, ASA 8.2
$cmd{'IOS-asa'}{'arp'} = 'show arp';

44
Definition Files / Re: looking for .def files cat4500e / nexus 5548UP
« on: November 27, 2015, 07:01:34 AM »
for the nexus i'm useing

Code: [Select]
# Main
SNMPv   2HC
Type    N5K-C5548UP
Typoid
Sysdes
OS      NXOS
Icon    w3bd
Size    1
Bridge  VXP
ArpND   phy
Dispro  CDP
Serial  1.3.6.1.2.1.47.1.1.1.1.11.10
Bimage  1.3.6.1.2.1.47.1.1.1.1.9.22
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
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.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|6|9|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.91.1.1.1.1.4N
MemCPU  1.3.6.1.4.1.9.9.305.1.1.2.0     -%
Custom         

45
News / Re: Test NeDi 1.4 Patch5
« on: August 04, 2015, 09:25:26 AM »
everythink is working for me.
devices can be added to monitoring again

Pages: 1 2 [3] 4 5 ... 7