This commit is contained in:
conetadm
2024-11-14 21:11:06 +01:00
commit 5718e70f15
657 changed files with 9401652 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
switch-catalyst-1 0 845 5d03h Port-channel13
switch-catalyst-1 1 388 5d03h Port-channel13
switch-catalyst-1 2 297 5d03h Port-channel13
switch-catalyst-1 4 584 5d03h GigabitEthernet1/0/34

View File

@@ -0,0 +1,4 @@
switch-catalyst-2 0 389 5d18h GigabitEthernet1/0/36
switch-catalyst-2 1 202 5d23h Port-channel23
switch-catalyst-2 2 222 5d22h Port-channel18
switch-catalyst-2 4 500 5d18h GigabitEthernet1/0/36

View File

@@ -0,0 +1,4 @@
switch-catalyst-3 0 291 17w0d Port-channel26
switch-catalyst-3 1 152 1y7w Port-channel23
switch-catalyst-3 2 238 17w0d Port-channel26
switch-catalyst-3 4 203 1y7w Port-channel23

View File

@@ -0,0 +1,4 @@
switch-catalyst-4 0 221 5d03h Port-channel14
switch-catalyst-4 1 140 5d03h Port-channel14
switch-catalyst-4 2 168 5d03h Port-channel14
switch-catalyst-4 4 53 5d05h GigabitEthernet1/0/6

View File

@@ -0,0 +1,4 @@
switch-catalyst-5 0 2513 1d05h GigabitEthernet2/0/46
switch-catalyst-5 1 290 28w5d Port-channel7
switch-catalyst-5 3 630 1d05h GigabitEthernet2/0/46
switch-catalyst-5 4 2236 9w6d GigabitEthernet2/0/46

View File

@@ -0,0 +1,4 @@
switch-catalyst-6 0 59 2w6d AppGigabitEthernet1/0/1
switch-catalyst-6 1 12 28w5d Port-channel8
switch-catalyst-6 3 17 28w5d Port-channel8
switch-catalyst-6 4 54 2w6d AppGigabitEthernet1/0/1

View File

@@ -0,0 +1,4 @@
switch-catalyst-7 0 4373 19w6d GigabitEthernet1/0/23
switch-catalyst-7 1 59 3y0w Port-channel1
switch-catalyst-7 2 66 19w6d GigabitEthernet1/0/23
switch-catalyst-7 4 1235 39w4d GigabitEthernet1/0/12

View File

@@ -0,0 +1,6 @@
switch-nexus-1 0000 3983 2:03:00 port-channel201
switch-nexus-1 0001 1781 2:02:45 port-channel201
switch-nexus-1 0002 1780 2:02:45 port-channel201
switch-nexus-1 0003 1720 2:02:44 port-channel201
switch-nexus-1 0004 3701 2:02:45 port-channel201
switch-nexus-1 0005 1713 2:02:45 port-channel201

View File

@@ -0,0 +1,6 @@
switch-nexus-2 0000 425 2:02:50 port-channel2012
switch-nexus-2 0001 185 2:02:49 port-channel2012
switch-nexus-2 0002 194 2:02:49 port-channel2012
switch-nexus-2 0003 178 2:02:49 port-channel2012
switch-nexus-2 0004 271 2:02:50 port-channel2012
switch-nexus-2 0005 173 2:02:49 port-channel2012

View File

@@ -0,0 +1,6 @@
switch-nexus-3 0000 84 2:03:08 port-channel21
switch-nexus-3 0001 53 2:02:53 port-channel21
switch-nexus-3 0002 55 2:02:53 port-channel21
switch-nexus-3 0003 48 2:02:52 port-channel21
switch-nexus-3 0004 69 2:02:53 port-channel21
switch-nexus-3 0005 47 2:02:53 port-channel21

View File

@@ -0,0 +1,6 @@
switch-nexus-4 0000 268 2:03:13 port-channel11
switch-nexus-4 0001 153 2:02:59 port-channel11
switch-nexus-4 0002 156 2:02:59 port-channel11
switch-nexus-4 0003 147 2:02:58 port-channel11
switch-nexus-4 0004 232 2:02:59 port-channel11
switch-nexus-4 0005 142 2:02:59 port-channel11

View File

View File

@@ -0,0 +1,3 @@
#!/bin/bash
touch stp_changes2.lastrun
/home/rancid/bin/clogin -c "sh spann det | i exec|occur|from" $1 | egrep "exec|occur|from"

View File

@@ -0,0 +1,104 @@
<!-- generated at Do 14. Nov 21:01:28 CET 2024 -->
<!-- rancid@conlxsyslog03:/scripts/rancid/stp_changes/stp_changes3.sh -->
<html><head><meta http-equiv='refresh' content='300; URL=stp_changes3.html'></head><body><table border=1>
<tr><td>Do 14. Nov 19:01:25 CET 2024 </td><td>STP change on switch switch-nexus-4</td><td>instance 5</td><td>count 142</td><td> 0:02:57 ago</td><td>interface port-channel11</td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-4&ifname=port-channel11 target=port_config>config</a></td></tr>
<tr><td>Do 14. Nov 19:01:25 CET 2024 </td><td>STP change on switch switch-nexus-4</td><td>instance 4</td><td>count 232</td><td> 0:02:57 ago</td><td>interface port-channel11 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-4&ifname=port-channel11 target=port_config>config</a></td></tr>
<tr><td>Do 14. Nov 19:01:25 CET 2024 </td><td>STP change on switch switch-nexus-4</td><td>instance 3</td><td>count 147</td><td> 0:02:56 ago</td><td>interface port-channel11 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-4&ifname=port-channel11 target=port_config>config</a></td></tr>
<tr><td>Do 14. Nov 19:01:25 CET 2024 </td><td>STP change on switch switch-nexus-4</td><td>instance 2</td><td>count 156</td><td> 0:02:57 ago</td><td>interface port-channel11 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-4&ifname=port-channel11 target=port_config>config</a></td></tr>
<tr><td>Do 14. Nov 19:01:25 CET 2024 </td><td>STP change on switch switch-nexus-4</td><td>instance 1</td><td>count 153</td><td> 0:02:57 ago</td><td>interface port-channel11 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-4&ifname=port-channel11 target=port_config>config</a></td></tr>
<tr><td>Do 14. Nov 19:01:25 CET 2024 </td><td>STP change on switch switch-nexus-4</td><td>instance 0</td><td>count 268</td><td> 0:03:12 ago</td><td>interface port-channel11 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-4&ifname=port-channel11 target=port_config>config</a></td></tr>
<tr><td>Do 14. Nov 19:01:21 CET 2024 </td><td>STP change on switch switch-nexus-3</td><td>instance 5</td><td>count 47</td><td> 0:02:53 ago</td><td>interface port-channel21</td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-3&ifname=port-channel21 target=port_config>config</a></td></tr>
<tr><td>Do 14. Nov 19:01:21 CET 2024 </td><td>STP change on switch switch-nexus-3</td><td>instance 4</td><td>count 69</td><td> 0:02:53 ago</td><td>interface port-channel21 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-3&ifname=port-channel21 target=port_config>config</a></td></tr>
<tr><td>Do 14. Nov 19:01:21 CET 2024 </td><td>STP change on switch switch-nexus-3</td><td>instance 3</td><td>count 48</td><td> 0:02:52 ago</td><td>interface port-channel21 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-3&ifname=port-channel21 target=port_config>config</a></td></tr>
<tr><td>Do 14. Nov 19:01:21 CET 2024 </td><td>STP change on switch switch-nexus-3</td><td>instance 2</td><td>count 55</td><td> 0:02:53 ago</td><td>interface port-channel21 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-3&ifname=port-channel21 target=port_config>config</a></td></tr>
<tr><td>Do 14. Nov 19:01:21 CET 2024 </td><td>STP change on switch switch-nexus-3</td><td>instance 1</td><td>count 53</td><td> 0:02:53 ago</td><td>interface port-channel21 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-3&ifname=port-channel21 target=port_config>config</a></td></tr>
<tr><td>Do 14. Nov 19:01:21 CET 2024 </td><td>STP change on switch switch-nexus-3</td><td>instance 0</td><td>count 84</td><td> 0:03:08 ago</td><td>interface port-channel21 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-3&ifname=port-channel21 target=port_config>config</a></td></tr>
<tr><td>Do 14. Nov 19:01:17 CET 2024 </td><td>STP change on switch switch-nexus-2</td><td>instance 5</td><td>count 173</td><td> 0:02:50 ago</td><td>interface port-channel2012</td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-2&ifname=port-channel2012 target=port_config>config</a></td></tr>
<tr><td>Do 14. Nov 19:01:17 CET 2024 </td><td>STP change on switch switch-nexus-2</td><td>instance 4</td><td>count 271</td><td> 0:02:50 ago</td><td>interface port-channel2012 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-2&ifname=port-channel2012 target=port_config>config</a></td></tr>
<tr><td>Do 14. Nov 19:01:17 CET 2024 </td><td>STP change on switch switch-nexus-2</td><td>instance 3</td><td>count 178</td><td> 0:02:49 ago</td><td>interface port-channel2012 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-2&ifname=port-channel2012 target=port_config>config</a></td></tr>
<tr><td>Do 14. Nov 19:01:17 CET 2024 </td><td>STP change on switch switch-nexus-2</td><td>instance 2</td><td>count 194</td><td> 0:02:50 ago</td><td>interface port-channel2012 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-2&ifname=port-channel2012 target=port_config>config</a></td></tr>
<tr><td>Do 14. Nov 19:01:17 CET 2024 </td><td>STP change on switch switch-nexus-2</td><td>instance 1</td><td>count 185</td><td> 0:02:50 ago</td><td>interface port-channel2012 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-2&ifname=port-channel2012 target=port_config>config</a></td></tr>
<tr><td>Do 14. Nov 19:01:17 CET 2024 </td><td>STP change on switch switch-nexus-2</td><td>instance 0</td><td>count 425</td><td> 0:02:50 ago</td><td>interface port-channel2012 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-2&ifname=port-channel2012 target=port_config>config</a></td></tr>
<tr><td>Do 14. Nov 19:01:13 CET 2024 </td><td>STP change on switch switch-nexus-1</td><td>instance 5</td><td>count 1713</td><td> 0:02:45 ago</td><td>interface port-channel201</td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-1&ifname=port-channel201 target=port_config>config</a></td></tr>
<tr><td>Do 14. Nov 19:01:13 CET 2024 </td><td>STP change on switch switch-nexus-1</td><td>instance 4</td><td>count 3701</td><td> 0:02:45 ago</td><td>interface port-channel201 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-1&ifname=port-channel201 target=port_config>config</a></td></tr>
<tr><td>Do 14. Nov 19:01:13 CET 2024 </td><td>STP change on switch switch-nexus-1</td><td>instance 3</td><td>count 1720</td><td> 0:02:44 ago</td><td>interface port-channel201 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-1&ifname=port-channel201 target=port_config>config</a></td></tr>
<tr><td>Do 14. Nov 19:01:13 CET 2024 </td><td>STP change on switch switch-nexus-1</td><td>instance 2</td><td>count 1780</td><td> 0:02:45 ago</td><td>interface port-channel201 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-1&ifname=port-channel201 target=port_config>config</a></td></tr>
<tr><td>Do 14. Nov 19:01:13 CET 2024 </td><td>STP change on switch switch-nexus-1</td><td>instance 1</td><td>count 1781</td><td> 0:02:45 ago</td><td>interface port-channel201 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-1&ifname=port-channel201 target=port_config>config</a></td></tr>
<tr><td>Do 14. Nov 19:01:12 CET 2024 </td><td>STP change on switch switch-nexus-1</td><td>instance 0</td><td>count 3983</td><td> 0:03:00 ago</td><td>interface port-channel201 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-1&ifname=port-channel201 target=port_config>config</a></td></tr>
<tr><td>Mi 13. Nov 15:30:53 CET 2024 </td><td>STP change on switch switch-catalyst-5</td><td>instance 3</td><td>count 630</td><td> 00:00:38 ago</td><td>interface GigabitEthernet2/0/46 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-5&ifname=GigabitEthernet2/0/46 target=port_config>config</a></td></tr>
<tr><td>Mi 13. Nov 15:30:53 CET 2024 </td><td>STP change on switch switch-catalyst-5</td><td>instance 0</td><td>count 2513</td><td> 00:00:38 ago</td><td>interface GigabitEthernet2/0/46 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-5&ifname=GigabitEthernet2/0/46 target=port_config>config</a></td></tr>
<tr><td>Mi 13. Nov 15:20:51 CET 2024 </td><td>STP change on switch switch-catalyst-5</td><td>instance 3</td><td>count 629</td><td> 00:05:54 ago</td><td>interface GigabitEthernet2/0/46 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-5&ifname=GigabitEthernet2/0/46 target=port_config>config</a></td></tr>
<tr><td>Mi 13. Nov 15:20:51 CET 2024 </td><td>STP change on switch switch-catalyst-5</td><td>instance 0</td><td>count 2512</td><td> 00:05:54 ago</td><td>interface GigabitEthernet2/0/46 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-5&ifname=GigabitEthernet2/0/46 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 17:50:11 CET 2024 </td><td>STP change on switch switch-catalyst-1</td><td>instance 4</td><td>count 584</td><td> 00:08:12 ago</td><td>interface GigabitEthernet1/0/34</td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-1&ifname=GigabitEthernet1/0/34 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 17:50:11 CET 2024 </td><td>STP change on switch switch-catalyst-1</td><td>instance 2</td><td>count 297</td><td> 00:08:12 ago</td><td>interface Port-channel13 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-1&ifname=Port-channel13 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 17:50:11 CET 2024 </td><td>STP change on switch switch-catalyst-1</td><td>instance 1</td><td>count 388</td><td> 00:08:12 ago</td><td>interface Port-channel13 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-1&ifname=Port-channel13 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 17:50:11 CET 2024 </td><td>STP change on switch switch-catalyst-1</td><td>instance 0</td><td>count 845</td><td> 00:08:11 ago</td><td>interface Port-channel13 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-1&ifname=Port-channel13 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 17:40:35 CET 2024 </td><td>STP change on switch switch-catalyst-4</td><td>instance 2</td><td>count 168</td><td> 00:05:27 ago</td><td>interface Port-channel14 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-4&ifname=Port-channel14 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 17:40:35 CET 2024 </td><td>STP change on switch switch-catalyst-4</td><td>instance 1</td><td>count 140</td><td> 00:05:27 ago</td><td>interface Port-channel14 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-4&ifname=Port-channel14 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 17:40:35 CET 2024 </td><td>STP change on switch switch-catalyst-4</td><td>instance 0</td><td>count 221</td><td> 00:05:27 ago</td><td>interface Port-channel14 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-4&ifname=Port-channel14 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 17:30:37 CET 2024 </td><td>STP change on switch switch-catalyst-4</td><td>instance 2</td><td>count 165</td><td> 00:06:58 ago</td><td>interface Port-channel13 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-4&ifname=Port-channel13 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 17:30:37 CET 2024 </td><td>STP change on switch switch-catalyst-4</td><td>instance 1</td><td>count 137</td><td> 00:06:58 ago</td><td>interface Port-channel13 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-4&ifname=Port-channel13 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 17:30:37 CET 2024 </td><td>STP change on switch switch-catalyst-4</td><td>instance 0</td><td>count 218</td><td> 00:06:58 ago</td><td>interface Port-channel13 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-4&ifname=Port-channel13 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:26 CET 2024 </td><td>STP change on switch switch-nexus-4</td><td>instance 5</td><td>count 141</td><td> 0:09:34 ago</td><td>interface port-channel11</td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-4&ifname=port-channel11 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:26 CET 2024 </td><td>STP change on switch switch-nexus-4</td><td>instance 4</td><td>count 231</td><td> 0:09:34 ago</td><td>interface port-channel11 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-4&ifname=port-channel11 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:26 CET 2024 </td><td>STP change on switch switch-nexus-4</td><td>instance 3</td><td>count 146</td><td> 0:09:34 ago</td><td>interface port-channel11 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-4&ifname=port-channel11 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:26 CET 2024 </td><td>STP change on switch switch-nexus-4</td><td>instance 2</td><td>count 155</td><td> 0:09:34 ago</td><td>interface port-channel11 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-4&ifname=port-channel11 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:26 CET 2024 </td><td>STP change on switch switch-nexus-4</td><td>instance 1</td><td>count 152</td><td> 0:09:34 ago</td><td>interface port-channel11 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-4&ifname=port-channel11 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:26 CET 2024 </td><td>STP change on switch switch-nexus-4</td><td>instance 0</td><td>count 267</td><td> 0:09:49 ago</td><td>interface port-channel11 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-4&ifname=port-channel11 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:22 CET 2024 </td><td>STP change on switch switch-nexus-3</td><td>instance 5</td><td>count 46</td><td> 0:09:29 ago</td><td>interface port-channel21</td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-3&ifname=port-channel21 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:22 CET 2024 </td><td>STP change on switch switch-nexus-3</td><td>instance 4</td><td>count 68</td><td> 0:09:29 ago</td><td>interface port-channel21 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-3&ifname=port-channel21 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:22 CET 2024 </td><td>STP change on switch switch-nexus-3</td><td>instance 3</td><td>count 47</td><td> 0:09:29 ago</td><td>interface port-channel21 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-3&ifname=port-channel21 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:22 CET 2024 </td><td>STP change on switch switch-nexus-3</td><td>instance 2</td><td>count 54</td><td> 0:09:29 ago</td><td>interface port-channel21 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-3&ifname=port-channel21 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:22 CET 2024 </td><td>STP change on switch switch-nexus-3</td><td>instance 1</td><td>count 52</td><td> 0:09:29 ago</td><td>interface port-channel21 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-3&ifname=port-channel21 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:22 CET 2024 </td><td>STP change on switch switch-nexus-3</td><td>instance 0</td><td>count 83</td><td> 0:09:44 ago</td><td>interface port-channel21 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-3&ifname=port-channel21 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:18 CET 2024 </td><td>STP change on switch switch-nexus-2</td><td>instance 5</td><td>count 172</td><td> 0:09:27 ago</td><td>interface port-channel6</td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-2&ifname=port-channel6 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:18 CET 2024 </td><td>STP change on switch switch-nexus-2</td><td>instance 4</td><td>count 270</td><td> 0:09:27 ago</td><td>interface port-channel6 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-2&ifname=port-channel6 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:18 CET 2024 </td><td>STP change on switch switch-nexus-2</td><td>instance 3</td><td>count 177</td><td> 0:09:26 ago</td><td>interface port-channel6 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-2&ifname=port-channel6 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:18 CET 2024 </td><td>STP change on switch switch-nexus-2</td><td>instance 2</td><td>count 193</td><td> 0:09:26 ago</td><td>interface port-channel6 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-2&ifname=port-channel6 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:18 CET 2024 </td><td>STP change on switch switch-nexus-2</td><td>instance 1</td><td>count 184</td><td> 0:09:26 ago</td><td>interface port-channel6 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-2&ifname=port-channel6 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:17 CET 2024 </td><td>STP change on switch switch-nexus-2</td><td>instance 0</td><td>count 423</td><td> 0:09:27 ago</td><td>interface port-channel6 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-2&ifname=port-channel6 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:14 CET 2024 </td><td>STP change on switch switch-nexus-1</td><td>instance 5</td><td>count 1712</td><td> 0:09:22 ago</td><td>interface port-channel201</td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-1&ifname=port-channel201 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:14 CET 2024 </td><td>STP change on switch switch-nexus-1</td><td>instance 4</td><td>count 3700</td><td> 0:09:22 ago</td><td>interface port-channel201 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-1&ifname=port-channel201 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:14 CET 2024 </td><td>STP change on switch switch-nexus-1</td><td>instance 3</td><td>count 1719</td><td> 0:09:22 ago</td><td>interface port-channel201 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-1&ifname=port-channel201 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:14 CET 2024 </td><td>STP change on switch switch-nexus-1</td><td>instance 2</td><td>count 1779</td><td> 0:09:22 ago</td><td>interface port-channel201 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-1&ifname=port-channel201 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:14 CET 2024 </td><td>STP change on switch switch-nexus-1</td><td>instance 1</td><td>count 1780</td><td> 0:09:22 ago</td><td>interface port-channel201 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-1&ifname=port-channel201 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 16:41:14 CET 2024 </td><td>STP change on switch switch-nexus-1</td><td>instance 0</td><td>count 3982</td><td> 0:09:37 ago</td><td>interface port-channel201 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-1&ifname=port-channel201 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 15:40:36 CET 2024 </td><td>STP change on switch switch-catalyst-4</td><td>instance 2</td><td>count 162</td><td> 00:06:39 ago</td><td>interface Port-channel14 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-4&ifname=Port-channel14 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 15:40:36 CET 2024 </td><td>STP change on switch switch-catalyst-4</td><td>instance 1</td><td>count 134</td><td> 00:06:39 ago</td><td>interface Port-channel14 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-4&ifname=Port-channel14 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 15:40:36 CET 2024 </td><td>STP change on switch switch-catalyst-4</td><td>instance 0</td><td>count 215</td><td> 00:06:39 ago</td><td>interface Port-channel14 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-4&ifname=Port-channel14 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 15:40:11 CET 2024 </td><td>STP change on switch switch-catalyst-1</td><td>instance 4</td><td>count 578</td><td> 00:05:50 ago</td><td>interface GigabitEthernet1/0/34</td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-1&ifname=GigabitEthernet1/0/34 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 15:40:11 CET 2024 </td><td>STP change on switch switch-catalyst-1</td><td>instance 2</td><td>count 288</td><td> 00:05:50 ago</td><td>interface GigabitEthernet1/0/34 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-1&ifname=GigabitEthernet1/0/34 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 15:40:11 CET 2024 </td><td>STP change on switch switch-catalyst-1</td><td>instance 1</td><td>count 379</td><td> 00:05:50 ago</td><td>interface GigabitEthernet1/0/34 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-1&ifname=GigabitEthernet1/0/34 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 15:40:11 CET 2024 </td><td>STP change on switch switch-catalyst-1</td><td>instance 0</td><td>count 836</td><td> 00:05:50 ago</td><td>interface GigabitEthernet1/0/34 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-1&ifname=GigabitEthernet1/0/34 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 15:20:37 CET 2024 </td><td>STP change on switch switch-catalyst-4</td><td>instance 4</td><td>count 53</td><td> 00:07:51 ago</td><td>interface GigabitEthernet1/0/6</td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-4&ifname=GigabitEthernet1/0/6 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 15:20:37 CET 2024 </td><td>STP change on switch switch-catalyst-4</td><td>instance 0</td><td>count 212</td><td> 00:07:51 ago</td><td>interface GigabitEthernet1/0/6 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-4&ifname=GigabitEthernet1/0/6 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 14:20:11 CET 2024 </td><td>STP change on switch switch-catalyst-1</td><td>instance 4</td><td>count 572</td><td> 00:04:07 ago</td><td>interface Port-channel23</td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-1&ifname=Port-channel23 target=port_config>config</a></td></tr>
<tr><td>Sa 9. Nov 14:20:11 CET 2024 </td><td>STP change on switch switch-catalyst-1</td><td>instance 0</td><td>count 827</td><td> 00:04:07 ago</td><td>interface Port-channel23 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-1&ifname=Port-channel23 target=port_config>config</a></td></tr>
<tr><td>Fr 8. Nov 09:40:09 CET 2024 </td><td>STP change on switch switch-catalyst-1</td><td>instance 4</td><td>count 571</td><td> 00:06:49 ago</td><td>interface Port-channel23</td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-1&ifname=Port-channel23 target=port_config>config</a></td></tr>
<tr><td>Fr 8. Nov 09:40:09 CET 2024 </td><td>STP change on switch switch-catalyst-1</td><td>instance 0</td><td>count 826</td><td> 00:06:49 ago</td><td>interface Port-channel23 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-1&ifname=Port-channel23 target=port_config>config</a></td></tr>
<tr><td>Fr 8. Nov 09:20:53 CET 2024 </td><td>STP change on switch switch-catalyst-5</td><td>instance 3</td><td>count 628</td><td> 00:06:23 ago</td><td>interface GigabitEthernet2/0/46 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-5&ifname=GigabitEthernet2/0/46 target=port_config>config</a></td></tr>
<tr><td>Fr 8. Nov 09:20:53 CET 2024 </td><td>STP change on switch switch-catalyst-5</td><td>instance 0</td><td>count 2511</td><td> 00:06:22 ago</td><td>interface GigabitEthernet2/0/46 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-catalyst-5&ifname=GigabitEthernet2/0/46 target=port_config>config</a></td></tr>
<tr><td>Sa 2. Nov 20:31:25 CET 2024 </td><td>STP change on switch switch-nexus-4</td><td>instance 4</td><td>count 230</td><td> 0:02:26 ago</td><td>interface Ethernet1/16 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-4&ifname=Ethernet1/16 target=port_config>config</a></td></tr>
<tr><td>Sa 2. Nov 20:31:25 CET 2024 </td><td>STP change on switch switch-nexus-4</td><td>instance 0</td><td>count 266</td><td> 0:02:26 ago</td><td>interface Ethernet1/16 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-4&ifname=Ethernet1/16 target=port_config>config</a></td></tr>
<tr><td>Sa 2. Nov 20:31:22 CET 2024 </td><td>STP change on switch switch-nexus-3</td><td>instance 4</td><td>count 67</td><td> 0:02:20 ago</td><td>interface Ethernet1/28 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-3&ifname=Ethernet1/28 target=port_config>config</a></td></tr>
<tr><td>Sa 2. Nov 20:31:22 CET 2024 </td><td>STP change on switch switch-nexus-3</td><td>instance 0</td><td>count 82</td><td> 0:02:20 ago</td><td>interface Ethernet1/28 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-3&ifname=Ethernet1/28 target=port_config>config</a></td></tr>
<tr><td>Sa 2. Nov 20:31:18 CET 2024 </td><td>STP change on switch switch-nexus-2</td><td>instance 4</td><td>count 269</td><td> 0:02:17 ago</td><td>interface port-channel11 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-2&ifname=port-channel11 target=port_config>config</a></td></tr>
<tr><td>Sa 2. Nov 20:31:18 CET 2024 </td><td>STP change on switch switch-nexus-2</td><td>instance 0</td><td>count 421</td><td> 0:02:17 ago</td><td>interface port-channel11 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-2&ifname=port-channel11 target=port_config>config</a></td></tr>
<tr><td>Sa 2. Nov 20:31:14 CET 2024 </td><td>STP change on switch switch-nexus-1</td><td>instance 4</td><td>count 3699</td><td> 0:02:13 ago</td><td>interface port-channel201 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-1&ifname=port-channel201 target=port_config>config</a></td></tr>
<tr><td>Sa 2. Nov 20:31:14 CET 2024 </td><td>STP change on switch switch-nexus-1</td><td>instance 0</td><td>count 3981</td><td> 0:02:13 ago</td><td>interface port-channel201 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-1&ifname=port-channel201 target=port_config>config</a></td></tr>
<tr><td>Di 29. Okt 21:21:25 CET 2024 </td><td>STP change on switch switch-nexus-4</td><td>instance 5</td><td>count 140</td><td> 0:09:45 ago</td><td>interface port-channel11</td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-4&ifname=port-channel11 target=port_config>config</a></td></tr>
<tr><td>Di 29. Okt 21:21:25 CET 2024 </td><td>STP change on switch switch-nexus-4</td><td>instance 4</td><td>count 229</td><td> 0:09:45 ago</td><td>interface port-channel11 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-4&ifname=port-channel11 target=port_config>config</a></td></tr>
<tr><td>Di 29. Okt 21:21:25 CET 2024 </td><td>STP change on switch switch-nexus-4</td><td>instance 3</td><td>count 145</td><td> 0:09:45 ago</td><td>interface port-channel11 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-4&ifname=port-channel11 target=port_config>config</a></td></tr>
<tr><td>Di 29. Okt 21:21:25 CET 2024 </td><td>STP change on switch switch-nexus-4</td><td>instance 2</td><td>count 154</td><td> 0:09:45 ago</td><td>interface port-channel11 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-4&ifname=port-channel11 target=port_config>config</a></td></tr>
<tr><td>Di 29. Okt 21:21:25 CET 2024 </td><td>STP change on switch switch-nexus-4</td><td>instance 1</td><td>count 151</td><td> 0:09:45 ago</td><td>interface port-channel11 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-4&ifname=port-channel11 target=port_config>config</a></td></tr>
<tr><td>Di 29. Okt 21:21:21 CET 2024 </td><td>STP change on switch switch-nexus-3</td><td>instance 5</td><td>count 45</td><td> 0:09:40 ago</td><td>interface port-channel21</td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-3&ifname=port-channel21 target=port_config>config</a></td></tr>
<tr><td>Di 29. Okt 21:21:21 CET 2024 </td><td>STP change on switch switch-nexus-3</td><td>instance 4</td><td>count 66</td><td> 0:09:40 ago</td><td>interface port-channel21 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-3&ifname=port-channel21 target=port_config>config</a></td></tr>
<tr><td>Di 29. Okt 21:21:21 CET 2024 </td><td>STP change on switch switch-nexus-3</td><td>instance 3</td><td>count 46</td><td> 0:09:40 ago</td><td>interface port-channel21 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-3&ifname=port-channel21 target=port_config>config</a></td></tr>
<tr><td>Di 29. Okt 21:21:21 CET 2024 </td><td>STP change on switch switch-nexus-3</td><td>instance 2</td><td>count 53</td><td> 0:09:40 ago</td><td>interface port-channel21 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-3&ifname=port-channel21 target=port_config>config</a></td></tr>
<tr><td>Di 29. Okt 21:21:21 CET 2024 </td><td>STP change on switch switch-nexus-3</td><td>instance 1</td><td>count 51</td><td> 0:09:40 ago</td><td>interface port-channel21 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-3&ifname=port-channel21 target=port_config>config</a></td></tr>
<tr><td>Di 29. Okt 21:21:21 CET 2024 </td><td>STP change on switch switch-nexus-3</td><td>instance 0</td><td>count 81</td><td> 0:09:56 ago</td><td>interface port-channel21 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-3&ifname=port-channel21 target=port_config>config</a></td></tr>
<tr><td>Di 29. Okt 21:21:18 CET 2024 </td><td>STP change on switch switch-nexus-2</td><td>instance 5</td><td>count 171</td><td> 0:09:38 ago</td><td>interface port-channel6</td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-2&ifname=port-channel6 target=port_config>config</a></td></tr>
<tr><td>Di 29. Okt 21:21:18 CET 2024 </td><td>STP change on switch switch-nexus-2</td><td>instance 4</td><td>count 268</td><td> 0:09:38 ago</td><td>interface port-channel6 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-2&ifname=port-channel6 target=port_config>config</a></td></tr>
<tr><td>Di 29. Okt 21:21:18 CET 2024 </td><td>STP change on switch switch-nexus-2</td><td>instance 3</td><td>count 176</td><td> 0:09:38 ago</td><td>interface port-channel6 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-2&ifname=port-channel6 target=port_config>config</a></td></tr>
<tr><td>Di 29. Okt 21:21:18 CET 2024 </td><td>STP change on switch switch-nexus-2</td><td>instance 2</td><td>count 192</td><td> 0:09:38 ago</td><td>interface port-channel6 </td><td><a href=http://10.99.0.99/port_configs.php?hostname=switch-nexus-2&ifname=port-channel6 target=port_config>config</a></td></tr>
</table></body></html>

View File

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,67 @@
#!/bin/bash
SW="switch-catalyst-1 switch-catalyst-2 switch-catalyst-3 switch-catalyst-4 switch-catalyst-5 switch-catalyst-6 switch-catalyst-7 switch-nexus-1 switch-nexus-2 switch-nexus-3 switch-nexus-4"
cd /scripts/rancid/stp_changes/
touch stp_changes3.lastrun
for I in `echo $SW`
do
./stp_changes2.sh $I | tr -d "\n\r" | perl -e '
# open file with switch stats from last run
open FILE, "<.$ARGV[0]";
@FIL=<FILE>;
close FILE;
# save values to oldres
foreach (@FIL) {
($a,$b,$c,$d,$e) = split " ", $_;
$oldres{"$a_$b"}=$c;
}
# open temp files for out from stp_changes2.sh
open FILE, ">.tmp.$ARGV[0]";
$l=<STDIN>;
$l=~s/MST/\nMST/g;
@a=split "\n", $l;
foreach (@a) {
chomp;
$sw = $ARGV[0];
if (/MST/) {
# get new values from output
($m,$c,$o,$i) = $_ =~ m/MST([0-9]*) .* changes ([0-9]*) .* occurred (.*) ago .* from (.*)/;
# if change number is higher than last time
if ($oldres{"$sw_$m"} < $c) {
$da=`date`;
chomp $da;
$url="http://10.99.0.99/port_configs.php\?hostname=" . $sw . "&ifname=" . $i;
$d="<a href=" . $url . " target=port_config>config</a>";
# $d soll port config anzeigen
open OUT, ">>stp_changes3.log";
printf OUT "%-30s\tSTP change on switch %25s\tinstance %5d\tcount %5d\t%10s ago\tinterface %s\t%s\n", $da, $sw, $m, $c, $o, $i, $d;
close OUT;
}
$oldres{"$sw_$m"}=$c;
printf FILE "$sw $m $c $o $i\n";
}
}
close FILE;
# if output of stp_changes2.sh is 0 let tmp file there to see that there has been a problem recently
# otherwise save stats to switch file and remove temp one
if ( -s ".tmp.$ARGV[0]" ) { `cp .tmp.$ARGV[0] .$ARGV[0]`; `rm .tmp.$ARGV[0]`; }
' $I
done
DAT=`date`
tac stp_changes3.log | head -n 100 > stp_changes3.temp
echo '<!-- generated at ' $DAT ' -->' > stp_changes3.html
echo '<!-- rancid@conlxsyslog03:/scripts/rancid/stp_changes/stp_changes3.sh -->' >> stp_changes3.html
echo "<html><head><meta http-equiv='refresh' content='300; URL=stp_changes3.html'></head><body><table border=1>" >> stp_changes3.html
cat stp_changes3.temp | sed "s/^/<tr><td>/g" | sed "s/\t/<\/td><td>/g" | sed "s/$/<\/td><\/tr>/" >> stp_changes3.html
echo "</table></body></html>" >> stp_changes3.html
rm stp_changes3.temp