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

17
show-port-errors.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
#echo "
#
#select device_id, msg from syslog where
#timestamp like '`date +"%Y-%m-%d"%`' and
#(msg like '%collision%' or msg like '%duplex%' or msg like '%mismatch%' or msg like '%excessive%')
#order by timestamp desc;
#
#" | mysql -uroot -p\@Defender2013! -Dobservium
echo "
select s.timestamp, d.hostname, s.msg
from devices d, syslog s
where s.device_id = d.device_id and d.hostname like '%switch%' and (msg like '%collision%' or msg like '%duplex%' or msg like '%mismatch%' or msg like '%excessive%')
order by s.timestamp asc;
" | mysql -uroot -p\@Defender2013! -Dobservium