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
1
LAN/Switching / Re: Bulk Disabling of certain ports (NeDi 1.9.100)
« on: September 27, 2021, 11:36:05 am »
well i'm not sure if NeDi can do it.

i normaly get all the devices from NeDi and than use the list as in input for a shell script which  is running on the NeDi host.
you would need to modify the attached scripts a bit to fit your needs.
you will also need to have expect installed

basicly you will have a start script that reads the list line per line.
calls the actual ssh script with the parameters.
these parameters can be used in the script to connect to a switch and run predefined commands.

in this script i'm changing the network part of the IP and move it to a new subnet. so it will extract the  the last octet of the ip and send as parameter D to the actual changing script.
you would need to read the IP and port from your input file and hand it over.


in order to get the list try this under device -> interface

Last change <= 09/13/21 00:00


2
GUI / Re: Active Directory authentication
« on: April 14, 2021, 09:16:58 am »
i assume you set the local flag for the account.
last icon on the user page

3
Installation / rember: usersec hash on upgrade
« on: March 18, 2021, 12:12:02 pm »
i just wanted to share it with you.

if you do change the hashing string in inc/libmisc.pm  in the XORpass function.
remember to also change it after the upgrade.
the upgrades overwrites the file and NeDi will send the wrong password.
i ended up with a locked AD account for my backup and was wondering how that could happen.

4
Discovery / Re: Unknown column 'aname' after update to 2.0
« on: March 18, 2021, 06:55:31 am »
did you do the dbupdate?
a part of the upgrade is this
Code: [Select]
ALTER TABLE nodarp ADD COLUMN aname
so my guess is you did not upgrade.
since you are already on 2.0 go to System -> Nedi  and hit Update on right under Database

5
i had/have the same issue.

it looks like the new pictos with a u.png at the end. these are not present in /var/nedi/html/img/dev
i just copied a couple of the missing once .
eg.
cp /var/nedi/html/img/dev/w3bn.png /var/nedi/html/img/dev/w3bu.png
cp /var/nedi/html/img/dev/w2bn.png /var/nedi/html/img/dev/w2bu.png
...

i guess that could a be workaround for now.

6
Discovery / Re: Cisco WLCs
« on: February 22, 2021, 01:06:47 pm »
the WLC are a pain in the ass when it comes to saving configs for a backup.
you can also use
show run-config commands
and
show run-config startup-commands

you could also use the
transfer upload
commands. but that won't work out of Nedi. you would need to create a script and run it via cronjob.

sadly the configs are not complete. i have no clue why cisco does that. But it is better than nothing

7
GUI / Re: invoice after login
« on: December 15, 2020, 10:49:54 am »
it's december.

if i remember correct, once the year is over its time for the yearly renewel. so you get redirectet to the invoice page.

8
Installation / Re: Nodes without Hostname and IP
« on: August 24, 2020, 12:00:19 pm »
ich würde mal vermuten Nedi hat das Layer3 Device nicht gescannt bzw. es gibt keinen ARP Eintrag für die MACs

9
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

10
Definition Files / Re: N9K-C92160YC-X
« on: June 26, 2020, 09:51:01 am »
i use a little different version

Code: [Select]
# Definition for 1.3.6.1.4.1.9.12.3.1.3.1744 created by Defed 1.9 on 1.Jun 2020 (ascii)
 
# Main
SNMPv   2HC
Type    N9K-C92160YC-X
TypOID
NamOID
DesOID
OS      NXOS
Icon    w3bn
Size    1
Uptime  S
Bridge  VLX
ArpND   phy
Dispro  CDP|LLDPXN
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
VLnams  1.3.6.1.4.1.9.9.46.1.3.1.1.4
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.2.0
FTPConf
Fanstat 1.3.6.1.4.1.9.9.117.1.4.1.1.1   2

# 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
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  6|7|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  1.3.6.1.2.1.47.1.1.1.1.14
Mostat  1.3.6.1.4.1.9.9.117.1.1.2.1.2
Mostok  2

# 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.109.1.1.1.1.13.1
Custom                 

sadly QSFP-40G-CR4 do not report a module name in SNMP and will show up only with the eg. "Transceiver(slot:1-port:49)"

11
Discovery / Re: Cisco EoL information upload
« on: June 25, 2020, 06:51:55 am »
well i haven't testet it. NeDi is not our asset tool :(

in the Guide it is listed. https://www.nedi.ch/pub/The NeDi Guide.pdf Page 20
Quote
If you use System-Files with "update-replace config" and select "ciscoeol.tgz", it'll essentially unpack a file called
"ciscoeol.csv" in the nedi root folder. If nedi.pl is called with -Y options, all device types and module models are compared
against that file for EoL information, which will be added to the asset record.

If i screen to the code:
Code: [Select]
/var/nedi/html/languages/english/gen-Assets.html:               A file called ciscoeol.tgz can be uploaded with <a href="#System-Files">System-Files</a>.
/var/nedi/html/languages/english/gen-MAssets.html:              A file called ciscoeol.tgz can be uploaded with System-Files.
/var/nedi/html/languages/deutsch/gen-MAssets.html:              Das Archiv ciscoeol.tgz kann auf der Seite System-Files hochgeladen werden.
/var/nedi/inc/libmisc.pm: E.g. Cisco products are read from ciscoeol.csv (in the nedi directory):
/var/nedi/inc/libmisc.pm:       if($_[0] eq 'Cisco' and -e "$main::p/ciscoeol.csv"){
/var/nedi/inc/libmisc.pm:               my @l = `egrep -hi '^$_[1](\/K9)?;' $main::p/ciscoeol.csv`;
/var/nedi/inc/libmisc.pm:                       Prt("CHKP:".scalar @l." matches found with $_[1] in ciscoeol.csv\n");

12
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

13
Discovery / Re: Event table blowing up
« on: May 07, 2020, 09:04:04 am »
i added the l again to the notify part in the nedi.conf

i'm running 1.9C for a couple of days now.
i will see how it is going and report back.

14
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.

15
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

Pages: [1] 2 3