dell-switch
2 years agoreally working, simpler, mac2name
Dobrica Pavlinusic [Mon, 4 Apr 2022 17:38:36 +0000 (19:38 +0200)]
really working, simpler, mac2name

2 years agogenerate mac addresses from snmpbulkwalk
Dobrica Pavlinusic [Mon, 4 Apr 2022 16:53:34 +0000 (18:53 +0200)]
generate mac addresses from snmpbulkwalk

2 years agobetter lowercase mac2name
Dobrica Pavlinusic [Mon, 4 Apr 2022 15:17:12 +0000 (17:17 +0200)]
better lowercase mac2name

2 years agoparse MikroTik /ip neighbor print detail terse
Dobrica Pavlinusic [Mon, 4 Apr 2022 12:52:24 +0000 (14:52 +0200)]
parse MikroTik /ip neighbor print detail terse

2 years agoparse show lldp remote-device all
Dobrica Pavlinusic [Mon, 4 Apr 2022 11:46:01 +0000 (13:46 +0200)]
parse show lldp remote-device all

2 years agotry show lldp remote-device all
Dobrica Pavlinusic [Mon, 4 Apr 2022 10:07:21 +0000 (12:07 +0200)]
try show lldp remote-device all

2 years agoread switch mac list and show names using it
Dobrica Pavlinusic [Mon, 4 Apr 2022 08:40:17 +0000 (10:40 +0200)]
read switch mac list and show names using it

2 years agoremove empty last command
Dobrica Pavlinusic [Sun, 3 Apr 2022 19:45:56 +0000 (21:45 +0200)]
remove empty last command

2 years agogenerate /dev/shm/sw-ip-name-mac
Dobrica Pavlinusic [Sun, 3 Apr 2022 19:05:21 +0000 (21:05 +0200)]
generate /dev/shm/sw-ip-name-mac

2 years agoparse show lldp neighbors
Dobrica Pavlinusic [Sun, 3 Apr 2022 19:03:49 +0000 (21:03 +0200)]
parse show lldp neighbors

2 years agofix hostname extraction
Dobrica Pavlinusic [Sun, 3 Apr 2022 18:44:53 +0000 (20:44 +0200)]
fix hostname extraction

2 years agomake it work with hostnames
Dobrica Pavlinusic [Sun, 3 Apr 2022 12:51:21 +0000 (14:51 +0200)]
make it work with hostnames

2 years agoshow port-status for found port
Dobrica Pavlinusic [Sun, 3 Apr 2022 12:28:12 +0000 (14:28 +0200)]
show port-status for found port

2 years agoemit mac to stdout for ip (ping output to stderr)
Dobrica Pavlinusic [Sun, 3 Apr 2022 12:27:32 +0000 (14:27 +0200)]
emit mac to stdout for ip (ping output to stderr)

2 years agofetch all switches in parallel
Dobrica Pavlinusic [Sun, 20 Mar 2022 11:27:27 +0000 (12:27 +0100)]
fetch all switches in parallel

2 years agorefresh just single switch with param
Dobrica Pavlinusic [Wed, 16 Mar 2022 09:07:07 +0000 (10:07 +0100)]
refresh just single switch with param

3 years agogrep bro conn.log with switch mac addresses on port
Dobrica Pavlinusic [Mon, 6 Jul 2020 11:53:29 +0000 (13:53 +0200)]
grep bro conn.log with switch mac addresses on port

4 years agocopy config to mikrotik directory if run with just switch name
Luka Blaskovic [Sun, 8 Mar 2020 16:58:03 +0000 (17:58 +0100)]
copy config to mikrotik directory if run with just switch name

4 years agosend commands to mikrotik switch
Dobrica Pavlinusic [Sun, 8 Mar 2020 16:14:03 +0000 (17:14 +0100)]
send commands to mikrotik switch

4 years agocount mac usage by vlans from snmp data
Dobrica Pavlinusic [Fri, 24 Jan 2020 19:07:47 +0000 (20:07 +0100)]
count mac usage by vlans from snmp data

4 years agoall ports with more than 10 macs are probably trunks
Dobrica Pavlinusic [Wed, 11 Sep 2019 05:32:36 +0000 (07:32 +0200)]
all ports with more than 10 macs are probably trunks

4 years agoremoved obsolete mac grep
Dobrica Pavlinusic [Wed, 11 Sep 2019 05:15:17 +0000 (07:15 +0200)]
removed obsolete mac grep

4 years agopush custom ssh config for ssh1
Dobrica Pavlinusic [Fri, 12 Jul 2019 12:42:17 +0000 (14:42 +0200)]
push custom ssh config for ssh1

4 years agouse openssh-client-ssh1 for legacy ssh1
Dobrica Pavlinusic [Fri, 12 Jul 2019 08:07:26 +0000 (10:07 +0200)]
use openssh-client-ssh1 for legacy ssh1

4 years agocreate svg using graphviz
Dobrica Pavlinusic [Fri, 12 Jul 2019 08:07:06 +0000 (10:07 +0200)]
create svg using graphviz

4 years agocount mac addresses
Dobrica Pavlinusic [Fri, 12 Jul 2019 08:05:54 +0000 (10:05 +0200)]
count mac addresses

4 years agocreate /dev/shm/dead with list of switches with no ping
Dobrica Pavlinusic [Fri, 12 Jul 2019 08:05:13 +0000 (10:05 +0200)]
create /dev/shm/dead with list of switches with no ping

5 years agoread commands from STDIN if used as pipe
Dobrica Pavlinusic [Tue, 8 Jan 2019 10:42:23 +0000 (11:42 +0100)]
read commands from STDIN if used as pipe

5 years agofind-port-for-* /dev/shm/trunk.regex auto generation
Dobrica Pavlinusic [Wed, 26 Dec 2018 11:35:03 +0000 (12:35 +0100)]
find-port-for-* /dev/shm/trunk.regex auto generation

5 years agohow to get additional OID from switches using snmp
Dobrica Pavlinusic [Mon, 30 Jul 2018 09:12:41 +0000 (11:12 +0200)]
how to get additional OID from switches using snmp

5 years agoadded ifAdminStatus
Dobrica Pavlinusic [Tue, 17 Jul 2018 12:31:29 +0000 (14:31 +0200)]
added ifAdminStatus

5 years agocollect switches vlan count
Dobrica Pavlinusic [Tue, 17 Jul 2018 08:31:00 +0000 (10:31 +0200)]
collect switches vlan count

5 years agodump switch mac address in snmp format (without leading 0)
Dobrica Pavlinusic [Tue, 17 Jul 2018 08:30:19 +0000 (10:30 +0200)]
dump switch mac address in snmp format (without leading 0)

5 years agosymlink .git reposotory from persistant storage to /dev/shm on start
Dobrica Pavlinusic [Fri, 13 Jul 2018 15:18:05 +0000 (17:18 +0200)]
symlink .git reposotory from persistant storage to /dev/shm on start

5 years agonew better resolving of ports using single_sw_port_visible
Dobrica Pavlinusic [Fri, 13 Jul 2018 09:59:47 +0000 (11:59 +0200)]
new better resolving of ports using single_sw_port_visible

5 years agosupport reload answer
Dobrica Pavlinusic [Fri, 13 Jul 2018 09:59:41 +0000 (11:59 +0200)]
support reload answer

5 years agosmall fixes and silent unuseful warnings
Dobrica Pavlinusic [Tue, 10 Jul 2018 16:50:17 +0000 (18:50 +0200)]
small fixes and silent unuseful warnings

5 years agoresolve first halting case
Dobrica Pavlinusic [Tue, 10 Jul 2018 16:47:37 +0000 (18:47 +0200)]
resolve first halting case

5 years agofaster snmpbulkget for topology
Dobrica Pavlinusic [Tue, 10 Jul 2018 16:47:19 +0000 (18:47 +0200)]
faster snmpbulkget for topology

5 years agobetter ports layout, now by default
Dobrica Pavlinusic [Tue, 10 Jul 2018 12:30:13 +0000 (14:30 +0200)]
better ports layout, now by default

5 years agogenerate mac list of all wifi devices
Dobrica Pavlinusic [Tue, 10 Jul 2018 09:41:45 +0000 (11:41 +0200)]
generate mac list of all wifi devices

5 years agoextract wap names from munin
Dobrica Pavlinusic [Tue, 10 Jul 2018 09:37:34 +0000 (11:37 +0200)]
extract wap names from munin

5 years agofix /dev/shm/mac2switch mac formatting
Dobrica Pavlinusic [Tue, 10 Jul 2018 09:32:20 +0000 (11:32 +0200)]
fix /dev/shm/mac2switch mac formatting

5 years agowith PORTS=1 generate alternative layout
Dobrica Pavlinusic [Tue, 10 Jul 2018 09:27:33 +0000 (11:27 +0200)]
with PORTS=1 generate alternative layout

5 years agoremove -x output
Dobrica Pavlinusic [Tue, 10 Jul 2018 06:06:17 +0000 (08:06 +0200)]
remove -x output

5 years agouse ifPhysAddress and dot1dTpFdbPort or dot1qTpFdbPort to find topology
Dobrica Pavlinusic [Mon, 9 Jul 2018 15:27:11 +0000 (17:27 +0200)]
use ifPhysAddress and dot1dTpFdbPort or dot1qTpFdbPort to find topology

5 years agodocument manual topology extraction and sw-dpc problem fixed by reboot
Dobrica Pavlinusic [Mon, 9 Jul 2018 15:26:05 +0000 (17:26 +0200)]
document manual topology extraction and sw-dpc problem fixed by reboot

5 years agofix commit message
Dobrica Pavlinusic [Mon, 9 Jul 2018 15:25:54 +0000 (17:25 +0200)]
fix commit message

5 years agodon't commit specific OID dumps
Dobrica Pavlinusic [Mon, 9 Jul 2018 14:19:36 +0000 (16:19 +0200)]
don't commit specific OID dumps

5 years agotrack snmpbulk in git, allow argumets: [sw [oib]]
Dobrica Pavlinusic [Mon, 9 Jul 2018 10:39:13 +0000 (12:39 +0200)]
track snmpbulk in git, allow argumets: [sw [oib]]

5 years agofind on which port is which switch connected
Dobrica Pavlinusic [Sun, 8 Jul 2018 13:00:06 +0000 (15:00 +0200)]
find on which port is which switch connected

5 years agocollect snmpbulkwalk from all switches
Dobrica Pavlinusic [Sun, 8 Jul 2018 12:26:27 +0000 (14:26 +0200)]
collect snmpbulkwalk from all switches

5 years agogenerate /tmp/topology.svg from descriptions
Dobrica Pavlinusic [Sun, 8 Jul 2018 11:06:32 +0000 (13:06 +0200)]
generate /tmp/topology.svg from descriptions

5 years agodocument /dev/shm/port-status
Dobrica Pavlinusic [Sun, 8 Jul 2018 09:12:32 +0000 (11:12 +0200)]
document /dev/shm/port-status

5 years agomanage running-config in git
Dobrica Pavlinusic [Sun, 8 Jul 2018 08:12:47 +0000 (10:12 +0200)]
manage running-config in git

5 years agoexit 0 on MikroTik RouterOS
Dobrica Pavlinusic [Sat, 7 Jul 2018 17:15:45 +0000 (19:15 +0200)]
exit 0 on MikroTik RouterOS

5 years agodocument ssh-* helpers
Dobrica Pavlinusic [Sat, 7 Jul 2018 15:39:44 +0000 (17:39 +0200)]
document ssh-* helpers

5 years agomake community rw for hard-coded black ip
Dobrica Pavlinusic [Sat, 7 Jul 2018 15:39:15 +0000 (17:39 +0200)]
make community rw for hard-coded black ip

5 years agoshutdown port, add no at end to revert it
Dobrica Pavlinusic [Sat, 7 Jul 2018 15:32:56 +0000 (17:32 +0200)]
shutdown port, add no at end to revert it

ssh-switch-port-shutdown sw-b200-2 2 no

will bring port up

5 years agodocument solution
Dobrica Pavlinusic [Sat, 7 Jul 2018 11:08:49 +0000 (13:08 +0200)]
document solution

5 years agouse mib for dot1qTpFdbPort
Dobrica Pavlinusic [Sat, 7 Jul 2018 10:37:29 +0000 (12:37 +0200)]
use mib for dot1qTpFdbPort

5 years agodocument SNMP MIB installation
Dobrica Pavlinusic [Sat, 7 Jul 2018 08:26:35 +0000 (10:26 +0200)]
document SNMP MIB installation

5 years agoconfigure snmp on switches
Dobrica Pavlinusic [Sat, 7 Jul 2018 06:56:25 +0000 (08:56 +0200)]
configure snmp on switches

5 years agomove documentation into doc folder
Dobrica Pavlinusic [Sat, 7 Jul 2018 06:46:43 +0000 (08:46 +0200)]
move documentation into doc folder

5 years agoconfigure interface switchport access vlan 42
Dobrica Pavlinusic [Fri, 6 Jul 2018 18:54:40 +0000 (20:54 +0200)]
configure interface switchport access vlan 42

5 years agodocument vlan change
Dobrica Pavlinusic [Fri, 6 Jul 2018 18:52:54 +0000 (20:52 +0200)]
document vlan change

5 years agodocument how to use tools to debug packet problems
Dobrica Pavlinusic [Fri, 6 Jul 2018 17:34:46 +0000 (19:34 +0200)]
document how to use tools to debug packet problems

5 years agocomment out debug
Dobrica Pavlinusic [Fri, 6 Jul 2018 16:56:48 +0000 (18:56 +0200)]
comment out debug

5 years agotoggle switch port using snmp
Dobrica Pavlinusic [Fri, 6 Jul 2018 16:25:58 +0000 (18:25 +0200)]
toggle switch port using snmp

5 years agoprint all ports and vlans in table
Dobrica Pavlinusic [Fri, 6 Jul 2018 07:18:36 +0000 (09:18 +0200)]
print all ports and vlans in table

5 years agocollect vlans configured for ports from show vlan
Dobrica Pavlinusic [Thu, 5 Jul 2018 09:34:30 +0000 (11:34 +0200)]
collect vlans configured for ports from show vlan

5 years agoadded fping and collect /dev/shm/dead switches
Dobrica Pavlinusic [Wed, 4 Jul 2018 16:38:16 +0000 (18:38 +0200)]
added fping and collect /dev/shm/dead switches

5 years agodocument finding mac adress from snmp dumps
Dobrica Pavlinusic [Wed, 4 Jul 2018 16:33:51 +0000 (18:33 +0200)]
document finding mac adress from snmp dumps

5 years agocleanup code, more examples
Dobrica Pavlinusic [Fri, 29 Jun 2018 15:10:59 +0000 (17:10 +0200)]
cleanup code, more examples

5 years agouse snmpwalk - faster and gets us virtual interfaces
Dobrica Pavlinusic [Fri, 29 Jun 2018 09:41:32 +0000 (11:41 +0200)]
use snmpwalk - faster and gets us virtual interfaces

5 years agoshow type and description to get switch model number
Dobrica Pavlinusic [Fri, 29 Jun 2018 08:20:39 +0000 (10:20 +0200)]
show type and description to get switch model number

5 years agocommit file state with "switch : port port" in message
Dobrica Pavlinusic [Fri, 29 Jun 2018 08:18:25 +0000 (10:18 +0200)]
commit file state with "switch : port port" in message

5 years agosingle snmpget invocation per port, much faster
Dobrica Pavlinusic [Fri, 29 Jun 2018 07:22:31 +0000 (09:22 +0200)]
single snmpget invocation per port, much faster

5 years agoStrictHostKeyChecking=no, decrease timeout for speedup
Dobrica Pavlinusic [Thu, 28 Jun 2018 21:07:17 +0000 (23:07 +0200)]
StrictHostKeyChecking=no, decrease timeout for speedup

5 years agotoggle port up/down (with ENTER confirmation)
Dobrica Pavlinusic [Thu, 28 Jun 2018 21:06:45 +0000 (23:06 +0200)]
toggle port up/down (with ENTER confirmation)

5 years agoresolve hostname as argument
Dobrica Pavlinusic [Thu, 28 Jun 2018 18:08:29 +0000 (20:08 +0200)]
resolve hostname as argument

5 years agofallback to BRIDGE-MIB::dot1dTpFdbPort
Dobrica Pavlinusic [Sat, 23 Jun 2018 12:22:38 +0000 (14:22 +0200)]
fallback to BRIDGE-MIB::dot1dTpFdbPort

5 years agosupport IP address as argument
Dobrica Pavlinusic [Sat, 23 Jun 2018 09:11:31 +0000 (11:11 +0200)]
support IP address as argument

5 years agouse bro if mac is not found in local arp
Dobrica Pavlinusic [Fri, 22 Jun 2018 14:27:22 +0000 (16:27 +0200)]
use bro if mac is not found in local arp

5 years agogrep bro conn.log for ip vlan and mac
Dobrica Pavlinusic [Fri, 22 Jun 2018 14:26:05 +0000 (16:26 +0200)]
grep bro conn.log for ip vlan and mac

5 years agoautomacially find trunk ports and exclude them
Dobrica Pavlinusic [Fri, 22 Jun 2018 13:53:36 +0000 (15:53 +0200)]
automacially find trunk ports and exclude them

5 years agoresolve hostname so we can query right name and ip
Dobrica Pavlinusic [Fri, 22 Jun 2018 10:36:16 +0000 (12:36 +0200)]
resolve hostname so we can query right name and ip

5 years agofind switch port for specified hostname
Dobrica Pavlinusic [Fri, 22 Jun 2018 10:17:19 +0000 (12:17 +0200)]
find switch port for specified hostname

5 years agoMerge branch 'master' of github.com:ffzg/dell-switch
Dobrica Pavlinusic [Fri, 22 Jun 2018 09:07:25 +0000 (11:07 +0200)]
Merge branch 'master' of github.com:ffzg/dell-switch

5 years agohow blocked port state as B
Dobrica Pavlinusic [Wed, 20 Jun 2018 08:31:36 +0000 (10:31 +0200)]
how blocked port state as B

5 years agopass dump param using enviroment
Dobrica Pavlinusic [Wed, 20 Jun 2018 06:41:15 +0000 (08:41 +0200)]
pass dump param using enviroment

5 years agoexample script to tail switch logs
Dobrica Pavlinusic [Wed, 20 Jun 2018 06:36:12 +0000 (08:36 +0200)]
example script to tail switch logs

5 years agotrack spanning tree topology changes
Dobrica Pavlinusic [Tue, 19 Jun 2018 14:50:16 +0000 (16:50 +0200)]
track spanning tree topology changes

5 years agoadded 60 s timeout for host/port to show only live ones
Dobrica Pavlinusic [Tue, 19 Jun 2018 13:10:42 +0000 (15:10 +0200)]
added 60 s timeout for host/port to show only live ones

5 years agoadded mikrotik parsing
Dobrica Pavlinusic [Tue, 19 Jun 2018 11:48:39 +0000 (13:48 +0200)]
added mikrotik parsing

5 years agoreset stats when file is present and kill -HUP is sent
Dobrica Pavlinusic [Tue, 19 Jun 2018 11:43:41 +0000 (13:43 +0200)]
reset stats when file is present and kill -HUP is sent

5 years agoignore PIX log entries
Dobrica Pavlinusic [Tue, 19 Jun 2018 10:58:17 +0000 (12:58 +0200)]
ignore PIX log entries

5 years agoadded reset and dump control files
Dobrica Pavlinusic [Tue, 19 Jun 2018 10:20:36 +0000 (12:20 +0200)]
added reset and dump control files

5 years agodump pid and stats into /dev/shm
Dobrica Pavlinusic [Tue, 19 Jun 2018 09:00:52 +0000 (11:00 +0200)]
dump pid and stats into /dev/shm

5 years agodump stats on HUP signal
Dobrica Pavlinusic [Tue, 19 Jun 2018 08:42:25 +0000 (10:42 +0200)]
dump stats on HUP signal