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]
31
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      

32
Installation / Re: Public-key authentication with ssh
« on: June 07, 2018, 08:23:53 am »
i'm not using key files.
but i looked in the inc/libcli.pm

i found these line arround 664 depending on your version of nedi
Code: [Select]
}elsif($po == 22){
                 my $known = "-o 'StrictHostKeyChecking no'";

i guess you can try to set the keyfile there.

maybe you need to set a dummy password in the nedi config.

33
Discovery / Re: Discovery ignoring netfilter?
« on: April 24, 2018, 09:25:56 am »
i*m quite sure.
i keep forgetting to add new subnets to the filter and NeDi will not discover them since they are out the netfilter range.
after i add them than the discovery works

34
Discovery / Re: Discovery ignoring netfilter?
« on: April 23, 2018, 11:53:36 am »
i'm not sure if you realy need to escape the dots.

i use these filter and it works perfect.

Code: [Select]
netfilter 10.68.255.23[3-8]|10.68.16.8$|10.68.18.100|10.68.52.{1,3}|10.68.53.{1,3}|10.68.84.22[5-6]|10.68.14[4-7].[5-9]$|10.68.144.10$|10.72.3.{1,3}|10.72.15.{1,3}|10.72.49.1[5-8]$|10.72.99.[2,3]|10.72.4.[4,7]$|10.81.105.1[1-9]$|10.81.105.1$|10.81.220.15[1-4]|10.81.223.229|10.81.223.230|10.81.223.24[3-6]|10.81.223.254|10.81.223.16[1-9]|10.82.23.254|10.82.23.7[0-9]|10.81.64.241|10.81.64.225|10.81.64.235|10.81.92.{1,3}|10.81.172.10$|10.81.175.{1,3}|10.81.175.1[3-5][0-9]|10.81.192.1|10.81.194.73|10.81.175.[6-9][0-9]|10.81.175.1[0-2][0-9]|10.80.146.254|10.81.132.[1-5]$|10.81.134.[6-9][0-9]|10.81.134.1[0-2][0-9]|10.81.179.[6-9][0-9]|10.81.179.1[0-2][0-9]|10.80.140.[1-5]$|10.80.142.[6-9][0-9]|10.80.142.1[0-2][0-9]|10.80.148.[1-5]$|10.80.150.[6-9][0-9]|10.80.150.1[0-2][0-9]|10.81.128.[1-5]$|10.81.130.[6-9][0-9]|10.81.130.1[0-2][0-9]|10.80.49.[1-5]$|10.80.51.[6-9][0-9]|10.80.51.1[0-2][0-9]|10.80.105.[6-9][0-9]|10.80.105.1[0-2][0-9]|10.81.177.5$|10.80.100.[1-5]$|10.80.102.[6-9][0-9]|10.80.102.1[0-2][0-9]|10.80.136.[1-5]$|10.80.138.[6-9][0-9]|10.80.138.1[0-2][0-9]|10.80.39.[1-5]$|10.80.41.[6-9][0-9]|10.80.41.1[0-2][0-9]|10.80.108.[1-5]$|10.80.110.[6-9][0-9]|10.81.116.[1-5]$|10.81.118.[6-9][0-9]|10.81.118.1[0-2][0-9]|10.80.60.[1-5]$|10.80.62.[6-9][0-9]|10.80.62.1[0-2][0-9]|10.81.111.[1-5]$|10.81.113.[6-9][0-9]|10.81.113.1[0-2][0-9]|10.81.121.[1-5]$|10.81.123.[6-9][0-9]|10.81.123.1[0-2][0-9]|10.80.54.[1-5]$|10.80.56.[60-99]|10.80.56.1[0-29]|10.240.16.62$|10.80.254.249|10.80.254.245|10.72.243.246|10.72.129.20$|10.80.99.121|10.80.23.19[3-9]|10.80.23.2[0-29]|10.80.3.190|10.80.3.13[0-9]|10.80.181.19[3-9]|10.80.181.20[0-9]|10.80.17.[1-9]$|10.80.17.1[0-9]$|10.81.215.254|10.96.1.[0-99]|10.96.1.1[0-27]|10.80.167.[0-99]|10.80.167.1[0-27]|10.80.159.[0-99]|10.80.159.1[0-27]|10.80.32.254|10.81.240.5$|10.81.240.9$|10.80.202.254|10.80.202.66|10.81.191.254|10.81.191.7[0-9]|10.80.47.66|10.80.47.254|10.34.60.20$|10.34.94.10$|149.216.32.176|10.80.27.254|10.80.15.17[1-4]|10.80.22.4$|10.80.15.206|10.80.98.254|10.80.97.254

35
Discovery / Re: Normal Poll fails, but Inventory Poll is successful
« on: January 04, 2018, 10:50:26 am »
it might be a neighbour problem.
-p discovers the next neighbours
-A all discovers every device in the database

check if the missing devices have a neighbour

36
i had the same issues.

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

37
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

38
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

39
Hello together,

i'm working on a def file for the Brocade SAN Switch within a Bladecenter
https://ssl.www8.hp.com/lamerica_nsc_carib/en/products/interconnects/product-detail.html?oid=5294051
Here what i got so far
Code: [Select]
# Definition for 1.3.6.1.4.1.1588.2.1.1.72 created by Defgen 1.8 on 7.May 2014 (ascii)
 
# General
SNMPv 2
Type HP AJ822B
Typoid
Sysdes
OS SROS
Icon fcgn
Size 1
Bridge normal
ArpND
Dispro
Serial 1.3.6.1.4.1.1588.2.1.1.1.1.10.0
Bimage 1.3.6.1.4.1.1588.2.1.1.1.1.6.0
CfgChg
CfgWrt
VLnams
VLnamx
Group
Mode
 
# Interfaces
StartX
EndX
IFname 1.3.6.1.2.1.31.1.1.1.1
IFaddr old
IFalia 1.3.6.1.4.1.1588.2.1.1.1.6.2.1.36
IFalix
InBcast 1.3.6.1.2.1.2.2.1.12
InDisc 1.3.6.1.2.1.2.2.1.13
OutDisc 1.3.6.1.2.1.2.2.1.19
IFvlan
IFvlix
IFpowr
IFpwix
IFdupl
IFduix
Halfdp
Fulldp
 
# Modules
Modesc
Moclas
Movalu
Moslot
Modhw
Modsw
Modfw
Modser
Momodl
 
# RRD Graphing
CPUutl 1.3.6.1.4.1.1588.2.1.1.1.1.22.1.3.1
Temp 1.3.6.1.4.1.1588.2.1.1.1.1.22.1.4.1
MemCPU
Custom Temp2;G;C 1.3.6.1.4.1.1588.2.1.1.1.1.22.1.4.2

i use 1.3.6.1.2.1.31.1.1.1.1
for the interfaces Names. these gives me the Firechannel and internal ethernet interface
Code: [Select]
1.3.6.1.2.1.2.2.1.1.805306371 = INTEGER: 805306371
1.3.6.1.2.1.2.2.1.1.805306372 = INTEGER: 805306372
1.3.6.1.2.1.2.2.1.1.805306373 = INTEGER: 805306373
1.3.6.1.2.1.2.2.1.1.805306374 = INTEGER: 805306374
1.3.6.1.2.1.2.2.1.1.1073741824 = INTEGER: 1073741824
1.3.6.1.2.1.2.2.1.1.1073741825 = INTEGER: 1073741825
1.3.6.1.2.1.2.2.1.1.1073741826 = INTEGER: 1073741826
1.3.6.1.2.1.2.2.1.1.1073741827 = INTEGER: 1073741827
1.3.6.1.2.1.2.2.1.1.1073741828 = INTEGER: 1073741828
1.3.6.1.2.1.2.2.1.1.1073741829 = INTEGER: 1073741829
1.3.6.1.2.1.2.2.1.1.1073741830 = INTEGER: 1073741830
1.3.6.1.2.1.2.2.1.1.1073741831 = INTEGER: 1073741831
1.3.6.1.2.1.2.2.1.1.1073741832 = INTEGER: 1073741832
1.3.6.1.2.1.2.2.1.1.1073741833 = INTEGER: 1073741833
.......
1.3.6.1.2.1.2.2.1.2.805306369 = STRING: "eth0"
1.3.6.1.2.1.2.2.1.2.805306370 = STRING: "lo"
1.3.6.1.2.1.2.2.1.2.805306371 = STRING: "sit0"
1.3.6.1.2.1.2.2.1.2.805306372 = STRING: "ip6tnl0"
1.3.6.1.2.1.2.2.1.2.805306373 = STRING: "fc0"
1.3.6.1.2.1.2.2.1.2.805306374 = STRING: "port0"
1.3.6.1.2.1.2.2.1.2.1073741824 = STRING: "FC port 0/0"
1.3.6.1.2.1.2.2.1.2.1073741825 = STRING: "FC port 0/1"
1.3.6.1.2.1.2.2.1.2.1073741826 = STRING: "FC port 0/2"
1.3.6.1.2.1.2.2.1.2.1073741827 = STRING: "FC port 0/3"
1.3.6.1.2.1.2.2.1.2.1073741828 = STRING: "FC port 0/4"
1.3.6.1.2.1.2.2.1.2.1073741829 = STRING: "FC port 0/5"
1.3.6.1.2.1.2.2.1.2.1073741830 = STRING: "FC port 0/6"
1.3.6.1.2.1.2.2.1.2.1073741831 = STRING: "FC port 0/7"
1.3.6.1.2.1.2.2.1.2.1073741832 = STRING: "FC port 0/8"
1.3.6.1.2.1.2.2.1.2.1073741833 = STRING: "FC port 0/9"
.....

In 1.3.6.1.4.1.1588.2.1.1.1.6.2.1.36  i have the aliases for the FC interfaces
Code: [Select]
1.3.6.1.4.1.1588.2.1.1.1.6.2.1.36.1 = STRING: "port0"
1.3.6.1.4.1.1588.2.1.1.1.6.2.1.36.2 = STRING: "port1"
1.3.6.1.4.1.1588.2.1.1.1.6.2.1.36.3 = STRING: "port2"
1.3.6.1.4.1.1588.2.1.1.1.6.2.1.36.4 = STRING: "port3"
1.3.6.1.4.1.1588.2.1.1.1.6.2.1.36.5 = STRING: "port4"
1.3.6.1.4.1.1588.2.1.1.1.6.2.1.36.6 = STRING: "xxxBCSQL01"
1.3.6.1.4.1.1588.2.1.1.1.6.2.1.36.7 = STRING: "xxxBCSQL02"
1.3.6.1.4.1.1588.2.1.1.1.6.2.1.36.8 = STRING: "xxxBCFS13"
1.3.6.1.4.1.1588.2.1.1.1.6.2.1.36.9 = STRING: "xxxBCFS14"
1.3.6.1.4.1.1588.2.1.1.1.6.2.1.36.10 = STRING: "port9"
.....

now i have the the IFAlias index.
Sadly i didn't find a guide in the Defgen Howto
maybe someone has an idea how to fix ist

40
Discovery / Re: DNS update for existing nodes
« on: January 20, 2014, 07:36:41 am »
thx that worked

i added these lines at System-Export.php Line 61
Code: [Select]
else if(document.forms['export'].exptbl.options[document.forms['export'].exptbl.selectedIndex].value=='noderet') {
document.forms['export'].query.value='UPDATE nodes set ipupdate=0 WHERE lastseen > <?= (time() - 2419200) ?>';
}

and at line 100
Code: [Select]
echo "<option value=\"noderet\"".($exptbl=="noderet"?" selected":"").">$reslbl DNS for active Nodes > 4Weeks</option>\n";
EDIT:
maybe it be a good idea to have a button in the Node-Status.php to reset the DNS
So that a single host can be resolved again

41
Discovery / Re: DNS update for existing nodes
« on: January 17, 2014, 07:15:40 am »
crap, i still need the "old" nodes.
once in a while they are looking for old devices that are offline but lost somewhere.
so deleting old nodes is not a option.

42
Discovery / DNS update for existing nodes
« on: January 16, 2014, 01:46:31 pm »
Hello together,

we recently changed our naming concept.
so now a lot of my nodes have a new DNS/Hostname.
Is there a way to force NeDi to update these Nodes.

the MAC und IP of the host is still the same so it's not a new/changed node for NeDi

best regards
ascii

Pages: 1 2 [3]