This commit is contained in:
2024-10-14 00:08:40 +02:00
parent dbfba56f66
commit 1462d52e13
4572 changed files with 2658864 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
In /home/rancid/lib/rancid/ios.pm
Zeile mit regex anpassen (coredumpinfo hinzufügen)
# Drop these files entirely.
/\s+(private-multiple-fs|multiple-fs|LISP-MapCache-IPv\S+|nv_hdri|coredumpinfo.*)$/ &&
next;
ProcessHistory("FLASH","","","!Flash: $_");

View File

@@ -0,0 +1,38 @@
Um Änderungen in den versendeten Emails farblich zu Kennzeichen muss das Skript /home/rancid/bin/control-rancid angepasst werden
Hier nach suchen
# Mail out the diffs (if there are any).
So anpassen
# Mail out the diffs (if there are any).
if [ -s $TMP.diff ] ; then
sed -e 's!^\+\(.*\)$!<span style=color:GREEN>+\1</span>!' $TMP.diff > /tmp/diff1
sed -e 's!^\-\(.*\)$!<span style=color:RED>-\1</span>!' /tmp/diff1 > /tmp/diff2
sed -e 's!\(.*\)$!\1<br>!' /tmp/diff2 > /tmp/diff3
cat /tmp/diff3 > $TMP.diff
MAXSZ=${MAILSPLIT:=0}
if [ $MAXSZ -ne 0 ] ; then
BLOCKSIZE=1024; export BLOCKSIZE
tmpk=`perl -e "my(@S) = stat(\"$TMP.diff\"); print int(\\$S[7] / 1024);"`
unset BLOCKSIZE
if [ $tmpk -lt $MAXSZ ] ; then
MAXSZ=0
fi
fi
if [ $MAXSZ -eq 0 ] ; then
(
echo "To: $mailrcpt"
echo "Subject: $subject"
echo "Mime-Version: 1.0"
echo "Content-type: text/html"
echo "Content-transfer-encoding: 8bit"
echo "$MAILHEADERS" | awk '{L = "";LN = $0;while (LN ~ /\\n/) { I = index(LN,"\\n");L = L substr(LN,0,I-1) "\n";LN = substr(LN,I+2,length(LN)-I-1);}print L LN;}'
echo ""
echo "<html><body>"
cat $TMP.diff
echo "</body></html>"
) | /usr/sbin/sendmail -oi -t $MAILOPTS
else
Damit wird dafür gesorgt das Neue Zeilen grün und gelöschte Zeilen rot dargestellt werden. Das erhöht die Lesbarkeit enorm.

View File

@@ -0,0 +1,5 @@
In /home/rancid/etc/rancid.types.base
Zeile anpassen
#cisco;command;ios::ShowShun;show shun;ASA/PIX