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

2 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

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

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

2 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

3 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

3 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

3 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

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

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

3 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)

3 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

3 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

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

3 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

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

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

3 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

3 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

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

3 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

3 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

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

3 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

3 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

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

3 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

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

3 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

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

3 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

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

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

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

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

3 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

3 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

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

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

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

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

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

4 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

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

4 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

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

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

4 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

4 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

4 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

4 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

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

4 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

4 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

4 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

4 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

4 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

4 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)

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

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

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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

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

4 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

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

4 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

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

4 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

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

4 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

4 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

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

4 years agocount Dell and Microtick syslog port and stp changes
Dobrica Pavlinusic [Tue, 19 Jun 2018 08:29:53 +0000 (10:29 +0200)]
count Dell and Microtick syslog port and stp changes

4 years agouse just right part of table
Dobrica Pavlinusic [Tue, 24 Apr 2018 17:15:16 +0000 (19:15 +0200)]
use just right part of table

4 years agosort frequencies to local and external
Dobrica Pavlinusic [Tue, 24 Apr 2018 17:14:36 +0000 (19:14 +0200)]
sort frequencies to local and external

4 years agocreate dump files in /dev/shm/snmp-mac
Dobrica Pavlinusic [Tue, 24 Apr 2018 17:13:50 +0000 (19:13 +0200)]
create dump files in /dev/shm/snmp-mac

4 years agogenerate graphviz dot
Dobrica Pavlinusic [Mon, 23 Apr 2018 06:21:11 +0000 (08:21 +0200)]
generate graphviz dot

4 years agogenerate graphviz dot
Dobrica Pavlinusic [Sun, 22 Apr 2018 12:11:14 +0000 (14:11 +0200)]
generate graphviz dot

4 years agoparse ip link and iw dev scan and show visibility
Dobrica Pavlinusic [Sun, 22 Apr 2018 11:25:15 +0000 (13:25 +0200)]
parse ip link and iw dev scan and show visibility

4 years agoexecute command on wifi nodes and generate /dev/shm/wap
Dobrica Pavlinusic [Sun, 22 Apr 2018 08:54:04 +0000 (10:54 +0200)]
execute command on wifi nodes and generate /dev/shm/wap

4 years agouse ifHighSpeed instead of calculation
Dobrica Pavlinusic [Fri, 13 Apr 2018 13:14:21 +0000 (15:14 +0200)]
use ifHighSpeed instead of calculation

4 years agospecify extra arguments after switch name
Dobrica Pavlinusic [Fri, 13 Apr 2018 13:02:08 +0000 (15:02 +0200)]
specify extra arguments after switch name

4 years agouse dot1qFdbTable to also get vlan
Dobrica Pavlinusic [Wed, 11 Apr 2018 17:54:04 +0000 (19:54 +0200)]
use dot1qFdbTable to also get vlan

4 years agodisplay switch name for port
Dobrica Pavlinusic [Wed, 11 Apr 2018 17:00:17 +0000 (19:00 +0200)]
display switch name for port

4 years agofix path to grep in /dev/shm/
Dobrica Pavlinusic [Wed, 11 Apr 2018 16:59:54 +0000 (18:59 +0200)]
fix path to grep in /dev/shm/

4 years agodon't chop last octet of mac
Dobrica Pavlinusic [Wed, 11 Apr 2018 16:59:30 +0000 (18:59 +0200)]
don't chop last octet of mac

4 years agorename script to snmp-mac-port and create same /dev/shm files
Dobrica Pavlinusic [Wed, 11 Apr 2018 14:47:06 +0000 (16:47 +0200)]
rename script to snmp-mac-port and create same /dev/shm files

moved filtering of snmpwalk output into script itself

4 years agogenerate files in /dev/shm/port-status/
Dobrica Pavlinusic [Wed, 11 Apr 2018 14:28:55 +0000 (16:28 +0200)]
generate files in /dev/shm/port-status/

4 years agoextract switch name generation into own script
Dobrica Pavlinusic [Wed, 11 Apr 2018 14:17:09 +0000 (16:17 +0200)]
extract switch name generation into own script

4 years agosnmp-walk is much better name for this tool
Dobrica Pavlinusic [Wed, 11 Apr 2018 14:13:38 +0000 (16:13 +0200)]
snmp-walk is much better name for this tool

Since it doesn't fetch arp, but mac bridge table

4 years agodisplay status of all switch ports
Dobrica Pavlinusic [Wed, 11 Apr 2018 14:12:44 +0000 (16:12 +0200)]
display status of all switch ports

4 years agoget switch arp table
Dobrica Pavlinusic [Wed, 11 Apr 2018 14:12:01 +0000 (16:12 +0200)]
get switch arp table

4 years agogrep through dumps in /dev/shm/sw.mac.port
Dobrica Pavlinusic [Wed, 11 Apr 2018 13:35:37 +0000 (15:35 +0200)]
grep through dumps in /dev/shm/sw.mac.port

4 years agogenerate new snmp dumps in /dev/shm/sw.mac.port
Dobrica Pavlinusic [Wed, 11 Apr 2018 13:34:39 +0000 (15:34 +0200)]
generate new snmp dumps in /dev/shm/sw.mac.port