This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (C) 2015 Nippon Telegraph and Telephone Corporation. | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Highlighting Cisco keywords/output on Linux | |
====================================================== | |
As you might know, one of the most favorite tools of sysadmins and netadmins around the world, SecureCRT, does not work that well on Linux (sadly). | |
The most powerful feature (in my opinion), keyword highlighting, does not work on the Linux version. | |
So, I made my own hacked-together version of SecureCRT, with blackjack and hookers. | |
**UPDATE 2018/07/15** *Saria Hajjar* has rewritten ChromaTerm to be faster, better, more stable and generally maintained - meet [**ChromaTerm--**](https://github.com/hSaria/ChromaTerm--)! | |
The guide has been updated to use his tool instead of the old ChromaTerm. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HIGHLIGHT {^([^$#(]+)(\$|#|\([^)]+\)#)} {bold white} | |
HIGHLIGHT {(?<=[\W\s]|^)([0-9a-f]{4}\.){2}[0-9a-f]{4}(?=[\W\s]|$)} {bold light jade} | |
HIGHLIGHT {(?<=[\W\s]|^)((::FFFF)?::?(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]))(?=[\W\s]|$)} {bold cyan} | |
HIGHLIGHT {(?<=[\W\s]|^)(\[\d{1,10}:\d{1,10}\](?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?=(?:[0-9A-Fa-f]{0,4}:){0,7}[0-9A-Fa-f]{0,4}(?![:.\w]))(([0-9A-Fa-f]{1,4}:){1,7}|:)((:[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){7}:|:(:[0-9A-Fa-f]{1,4}){7})(?![:.\w]))(?=[\W\s]|$)} {bold cyan} | |
HIGHLIGHT {(?<=[\W\s]|^)(\[\d{1,3}(\.\d{1,3}){3}:\d{1,10}\](?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?=(?:[0-9A-Fa-f]{0,4}:){0,7}[0-9A-Fa-f]{0,4}(?![:.\w]))(([0-9A-Fa-f]{1,4}:){1,7}|:)((:[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){7}:|:(:[0-9A-Fa-f]{1,4}){7})(?![:.\w]))(?=[\W\s]|$)} {bold cyan} | |
HIGHLIGHT {(?<=[\W\s]|^)((\d{1,10}:){2}(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#config regex on | |
#event {SESSION DISCONNECTED} {#end} | |
#highlight {{^([^$#(]+)(\$|#|\([^)]+\)#)}} {bold white} | |
#highlight {{(?:[\W\s]|^)([0-9a-f]{4}\.){2}[0-9a-f]{4}(?=[\W\s]|$)}} {bold light jade} | |
#highlight {{(?:[\W\s]|^)((::FFFF)?::?(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]))(?=[\W\s]|$)}} {bold cyan} | |
#highlight {{(?:[\W\s]|^)(\[\d{1,10}:\d{1,10}\](?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?=(?:[0-9A-Fa-f]{0,4}:){0,7}[0-9A-Fa-f]{0,4}(?![:.\w]))(([0-9A-Fa-f]{1,4}:){1,7}|:)((:[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){7}:|:(:[0-9A-Fa-f]{1,4}){7})(?![:.\w]))(?=[\W\s]|$)}} {bold cyan} | |
#highlight {{(?:[\W\s]|^)(\[\d{1,3}(\.\d{1,3}){3}:\d{1,10}\](?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?=(?:[0-9A-Fa-f]{0,4}:){0,7}[0-9A-Fa-f]{0,4}(?![:.\w]))(([0-9A-Fa-f]{1,4}:){1,7}|:)((:[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){7}:|:(:[0-9A-Fa-f]{1,4}){7})(?![:.\w]))(?=[\W\s]|$)}} {bold cyan} | |
#highlight {{(?:[\W\s]|^)((\d{1,10}:){2}(?:(?:25[0-5]|2[0-4] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
limit per ring = 150: | |
avg packets per batch: 102.300615 | |
570.381395 main_thread [2407] 995.613 Kpps [avg/std 988.750 K/5.887 K pps](996.640 Kpkts 510.280 Mbps in 1001032 usec) 56.02 avg_batch 391 min_space | |
571.382428 main_thread [2407] 993.820 Kpps [avg/std 989.949 K/4.879 K pps](994.848 Kpkts 509.362 Mbps in 1001034 usec) 56.77 avg_batch 389 min_space | |
572.383460 main_thread [2407] 988.765 Kpps [avg/std 989.931 K/4.883 K pps](989.784 Kpkts 506.769 Mbps in 1001031 usec) 56.22 avg_batch 376 min_space | |
573.384493 main_thread [2407] 990.409 Kpps [avg/std 990.430 K/4.509 K pps](991.432 Kpkts 507.613 Mbps in 1001033 usec) 56.47 avg_batch 387 min_space | |
574.385525 main_thread [2407] 991.209 Kpps [avg/std 991.433 K/2.408 K pps](992.232 Kpkts 508.023 Mbps in 1001032 usec) 56.11 avg_batch 379 min_space | |
limit per ring = 125: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rock\n=========\n | |
001._Motorhead_-_Ace_of_Spades.mp3 | |
003._Guns_and_Roses_-_Paradise_City.mp3 | |
008._Phil_Collins_-_Another_Day_in_Paradise.mp3 | |
017._Dire_Straits_-_Brothers_In_Arms.mp3 | |
023._Ozzy_Osbourne_-_Crazy_Train.mp3 | |
034._Papa_Roach_-_Getting_Away_With_Murder.mp3 | |
047._Aerosmith_-_Janie's_Got_a_Gun.mp3 | |
061._Pink_Floyd_-_Money.mp3 | |
065._Black_Sabbath_-_Paranoid.mp3 |